/* =========================================================
   SAINT-LOUP-CAMMAS
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #1d2a35;
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}


/* TOPBAR */

.topbar {
  background: #17334b;
  color: #ffffff;
  font-size: 14px;
}

.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-links {
  display: flex;
  gap: 24px;
}


/* HEADER */

.main-header {
  position: relative;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e6e9eb;
}

.header-inner {
  min-height: 105px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  min-width: 0;
}
.nav-search {
  flex-shrink: 0;
}

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

.brand-logo img {
  width: 175px;
  height: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  color: #17334b;
  font-size: 18px;
  white-space: nowrap;
}

.brand-text span {
  margin-top: 3px;
  color: #63717a;
  font-size: 13px;
}


/* NAVIGATION */

.main-nav {
  display: flex;
  align-items: center;
  gap: 27px;
  font-size: 15px;
  font-weight: 600;
}

.main-nav > a,
.nav-link {
  min-height: 105px;
  display: inline-flex;
  align-items: center;
  color: #1d2a35;
}

.nav-item {
  position: relative;
  min-height: 105px;
  display: flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;

  display: none;

  min-width: 245px;

  padding: 10px 0;

  background: #ffffff;
  border-top: 3px solid #9d493d;

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);

  z-index: 1200;
}

.nav-item:hover > .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: #17334b;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: #f5f7f8;
  color: #9d493d;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #17334b;
  font-size: 30px;
  cursor: pointer;
}


/* =========================================================
   HERO DIAPORAMA
========================================================= */

.hero {
  min-height: 540px;

  position: relative;

  display: flex;
  align-items: center;

  overflow: hidden;

  background: #17334b;

  color: #ffffff;
}

.hero-slides {
  position: absolute;
  inset: 0;

  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  opacity: 0;

  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero::after {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 1;

  background: linear-gradient(
    90deg,
    rgba(10, 35, 55, 0.55) 0%,
    rgba(10, 35, 55, 0.30) 50%,
    rgba(10, 35, 55, 0.05) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;

  padding: 80px 0;
}

.hero,
.hero h1,
.hero p,
.hero span,
.hero-content {
  color: #ffffff !important;
}

.hero-kicker {
  margin: 0;

  text-transform: uppercase;

  letter-spacing: 3px;

  font-size: 14px;

  font-weight: 700;
}

.hero h1 {
  max-width: 900px;

  margin: 15px 0 25px;

  font-size: clamp(48px, 7vw, 82px);

  line-height: 1;

  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-intro {
  max-width: 620px;

  margin: 0;

  color: #ffffff !important;

  font-size: 21px;

  line-height: 1.6;

  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
}

.hero-actions {
  display: flex;

  gap: 15px;

  margin-top: 35px;
}


/* BOUTONS */

.btn {
  min-height: 52px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 26px;

  border-radius: 5px;

  font-weight: 700;
}

.btn-primary {
  background: #a94e40;
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: #17334b !important;
}

.btn-light {
  background: #ffffff;
  color: #17334b;
}

.btn-outline-light {
  border: 1px solid rgba(255,255,255,.65);
  color: #ffffff;
}


/* INFORMATION MAIRIE */

.alert-section {
  position: relative;
  z-index: 10;

  transform: translateY(-28px);
}

.municipal-alert {
  display: flex;
  align-items: center;

  gap: 20px;

  padding: 23px 28px;

  background: #ffffff;

  border-left: 4px solid #c95340;

  box-shadow: 0 10px 40px rgba(0,0,0,.13);
}

.alert-icon {
  width: 42px;
  height: 42px;

  flex: 0 0 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #c95340;
  color: #ffffff;

  font-weight: 700;
}

.alert-content {
  flex: 1;
}

.municipal-alert strong {
  display: block;
  color: #17334b;
}

.municipal-alert p {
  margin: 5px 0 0;
  color: #65727a;
}

.alert-arrow {
  margin-left: auto;

  color: #c95340;

  font-size: 22px;
}


/* SECTIONS */

.section {
  padding: 60px 0;
}

.section-heading {
  max-width: 700px;

  margin-bottom: 35px;
}

.section-heading-row {
  max-width: none;

  display: flex;

  justify-content: space-between;

  align-items: flex-end;

  gap: 25px;
}

.section-eyebrow {
  color: #9d493d;

  font-size: 13px;

  font-weight: 700;

  letter-spacing: 2px;

  text-transform: uppercase;
}

.section-eyebrow.light {
  color: #efb2a7;
}

.section-heading h2,
.life-content h2 {
  margin: 10px 0 15px;

  color: #17334b;

  font-size: clamp(32px, 5vw, 48px);
}

.section-heading p {
  color: #64727d;

  line-height: 1.7;
}

.text-link {
  color: #a34234;

  font-weight: 700;
}


/* ACCÃˆS RAPIDES */

.quick-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 20px;
}

.quick-card {
  min-height: 200px;

  display: flex;

  flex-direction: column;

  gap: 12px;

  padding: 32px;

  background: #f5f7f8;
}

.quick-card:hover {
  background: #ffffff;

  box-shadow: 0 15px 35px rgba(0,0,0,.09);
}

.quick-icon {
  font-size: 34px;
}

.quick-card strong {
  color: #17334b;

  font-size: 19px;
}


/* =========================================================
   ACTUALITÃ‰S AVEC PHOTOS
========================================================= */

.news-section {
  background: #f4f1eb;
}

.news-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 24px;
}

.news-card {
  overflow: hidden;

  background: #ffffff;

  box-shadow: 0 5px 20px rgba(0,0,0,.05);
}

.news-image {
  width: 100%;

  height: 220px;

  overflow: hidden;

  background: #f1f3f4;
}

.news-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  object-position: center;
}

.news-content {
  padding: 26px 24px;
}

.news-date {
  color: #a34234;

  font-size: 13px;

  font-weight: 700;
}

.news-content h3 {
  margin: 10px 0 14px;

  color: #17334b;

  font-size: 21px;

  line-height: 1.3;
}

.news-content p {
  margin: 0 0 20px;

  color: #65727a;

  line-height: 1.6;
}

.news-content a {
  color: #a34234;

  font-weight: 700;
}


/* VIE LOCALE */

.life-content {
  max-width: 850px;
}

.life-content p {
  color: #63717a;

  line-height: 1.8;
}

.life-links {
  display: grid;

  grid-template-columns: repeat(2,1fr);

  gap: 12px;

  margin-top: 30px;
}

.life-links a {
  padding: 18px 20px;

  background: #f5f7f8;

  border-left: 3px solid #9d493d;

  color: #17334b;

  font-weight: 700;
}


/* AGENDA */

.agenda-section {
  background: #f7f8f8;
}

.agenda-list {
  display: grid;

  grid-template-columns: repeat(2,1fr);

  gap: 25px;
}

.agenda-item {
  display: flex;

  align-items: center;

  gap: 25px;

  padding: 25px;

  background: #ffffff;

  border: 1px solid #e6e8e9;
}

.agenda-date {
  width: 82px;
  height: 82px;

  flex: 0 0 82px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  background: #173b59;

  color: #ffffff;
}

.agenda-date strong {
  font-size: 30px;
}

.agenda-date span {
  color: #ffffff;

  font-size: 11px;
}

.agenda-item h3 {
  margin: 0 0 8px;

  color: #17334b;
}


/* CONTACT */

.contact-section {
  padding: 65px 0;

  background: #17334b;

  color: #ffffff;
}

.contact-grid {
  display: grid;

  grid-template-columns: 1.4fr 1fr .8fr;

  gap: 50px;

  align-items: center;
}

.contact-section h2 {
  color: #ffffff;

  font-size: 40px;
}


/* HERO PAGES */

.page-hero {
  padding: 55px 0;

  background: linear-gradient(110deg,#17334b,#285472);

  color: #ffffff;
}

.page-hero h1 {
  margin: 10px 0 15px;

  font-size: clamp(40px,6vw,64px);
}

.page-hero p {
  color: rgba(255,255,255,.86);

  font-size: 19px;
}


/* CARTES GÃ‰NÃ‰RIQUES */

.demarches-grid {
  display: grid;

  grid-template-columns: repeat(3,minmax(0,1fr));

  gap: 22px;
}

.demarche-card {
  display: flex;

  gap: 20px;

  padding: 30px;

  background: #f5f7f8;
}

.demarche-icon {
  font-size: 36px;
}

.demarche-card h3 {
  margin: 0 0 12px;

  color: #17334b;
}

.demarche-card p {
  color: #64727d;

  line-height: 1.6;
}

.demarche-card span {
  color: #a34234;

  font-weight: 700;
}


/* BANDEAU CONTACT */

.demarches-info {
  padding: 60px 0;

  background: #17334b;

  color: #ffffff;
}

.demarches-info-grid {
  display: grid;

  grid-template-columns: 1.5fr 1fr;

  gap: 70px;

  align-items: center;
}

.demarches-contact {
  display: flex;

  flex-direction: column;

  gap: 13px;

  padding: 30px;

  background: rgba(255,255,255,.08);
}


/* PAGE AGENDA */

.agenda-page-list {
  display: grid;

  grid-template-columns: repeat(2,minmax(0,1fr));

  gap: 22px;
}

.agenda-page-item {
  display: flex;

  align-items: center;

  gap: 22px;

  padding: 24px;

  background: #f4f6f7;

  border-left: 3px solid #b54a3a;
}

.agenda-page-content h3 {
  margin: 0 0 7px;

  color: #17334b;
}

.agenda-more {
  color: #b54a3a;

  font-weight: 700;
}


/* TRAVAUX */

.travaux-list {
  display: grid;

  grid-template-columns: repeat(2,1fr);

  gap: 22px;
}

.travaux-card {
  display: grid;

  grid-template-columns: 65px 1fr;

  gap: 22px;

  padding: 28px;

  background: #ffffff;

  border-left: 4px solid #9d493d;
}


/* CONTACT PAGE */

.contact-page-grid {
  display: grid;

  grid-template-columns: repeat(2,1fr);

  gap: 30px;
}

.contact-page-card {
  padding: 38px;

  background: #f5f7f8;
}


/* LEGAL */

.legal-content {
  max-width: 950px;
}

.legal-block {
  padding: 28px 0;

  border-bottom: 1px solid #e1e5e8;
}

.legal-block h2 {
  color: #17334b;
}


/* FOOTER */

.site-footer {
  padding: 55px 0 20px;

  background: #102535;

  color: rgba(255,255,255,.72);
}

.footer-grid {
  display: grid;

  grid-template-columns: 2fr 1fr 1fr;

  gap: 40px;
}

.footer-grid > div {
  display: flex;

  flex-direction: column;

  gap: 10px;
}

.footer-grid strong {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 45px;

  padding-top: 20px;

  border-top: 1px solid rgba(255,255,255,.1);
}


/* =========================================================
   TABLETTE
========================================================= */

@media (max-width: 900px) {

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;

    position: absolute;

    top: 100%;
    left: 0;
    right: 0;

    flex-direction: column;

    align-items: stretch;

    gap: 0;

    padding: 15px 25px;

    background: #ffffff;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-item {
    min-height: auto;

    display: block;
  }

  .main-nav > a,
  .nav-link {
    min-height: auto;

    padding: 13px 0;
  }

  .dropdown-menu {
    position: static;

    box-shadow: none;

    border: 0;

    padding-left: 18px;
  }

  .quick-grid,
  .news-grid,
  .demarches-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .agenda-list,
  .agenda-page-list,
  .travaux-list {
    grid-template-columns: 1fr;
  }

  .contact-grid,
  .demarches-info-grid {
    grid-template-columns: 1fr;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

  .container {
    width: calc(100% - 28px);
  }

  .topbar-inner > span {
    display: none;
  }

  .topbar-links {
    margin-left: auto;
  }

  .header-inner {
    min-height: 85px;
  }

  .brand-logo img {
    width: 135px;
  }

  .brand-text {
    display: none;
  }

  .menu-toggle {
    display: block;

    margin-left: auto;
  }

  .hero {
    min-height: 430px;
  }

  .hero-content {
    padding: 45px 0 55px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-intro {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;

    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 48px 0;
  }

  .section-heading-row {
    flex-direction: column;

    align-items: flex-start;
  }

  .quick-grid,
  .news-grid,
  .demarches-grid,
  .life-links,
  .contact-page-grid {
    grid-template-columns: 1fr;
  }

  .news-image {
    height: 190px;
  }

  .agenda-item,
  .agenda-page-item {
    align-items: flex-start;

    padding: 18px;
  }

  .agenda-date {
    width: 68px;
    height: 68px;

    flex: 0 0 68px;
  }

  .travaux-card {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

}/* =========================================
   DETAIL ACTUALITE
========================================= */

.actualite-detail {
  background: #fff;
}

.actualite-detail-grid {
  display: grid;
  grid-template-columns: minmax(300px, 500px) 1fr;
  gap: 60px;
  align-items: start;
}

.actualite-detail-image {
  background: #f4f4f4;
  padding: 20px;
}

.actualite-detail-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.actualite-detail-content h2 {
  margin: 8px 0 20px;
  font-size: 32px;
  color: #123550;
}

.actualite-detail-content p {
  margin: 0 0 30px;
  font-size: 17px;
  line-height: 1.7;
  color: #536273;
}


/* MOBILE */

@media (max-width: 768px) {

  .actualite-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .actualite-detail-image {
    padding: 10px;
  }

  .actualite-detail-content h2 {
    font-size: 26px;
  }

}/* =========================================
   ELUS - PRESENTATION COMPLETE
========================================= */

.center-heading {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.mayor-card {
  max-width: 460px;
  margin: 0 auto;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.mayor-card img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}

.elu-info {
  padding: 20px;
  text-align: center;
}

.elu-info h3 {
  margin: 0 0 7px;
  color: #17334b;
  font-size: 18px;
  line-height: 1.3;
}

.elu-info span {
  display: block;
  color: #a34234;
  font-size: 14px;
  font-weight: 700;
}

.elu-info p {
  margin: 15px 0 0;
  color: #64727d;
  line-height: 1.6;
}


/* ADJOINTS */

.elected-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.elected-card {
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.elected-card img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}


/* CONSEILLERS */

.councillors-photo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.councillor-card {
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.councillor-card img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}


/* TABLETTE */

@media (max-width: 1000px) {

  .elected-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .councillors-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}


/* MOBILE */

@media (max-width: 600px) {

  .mayor-card img {
    height: auto;
  }

  .elected-grid,
  .councillors-photo-grid {
    grid-template-columns: 1fr;
  }

  .elected-card img,
  .councillor-card img {
    height: auto;
    max-height: 420px;
  }

}/* =========================================
   NUMEROS UTILES
========================================= */

.useful-light-section {
  background: #f5f7f8;
}

.useful-numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.useful-number-card {
  display: flex;
  align-items: center;
  gap: 20px;

  min-height: 125px;
  padding: 25px;

  background: #f5f7f8;
  border-left: 4px solid #17334b;

  transition: transform .2s ease, box-shadow .2s ease;
}

.useful-number-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.useful-number-card.emergency {
  border-left-color: #a34234;
}

.useful-number-icon {
  font-size: 32px;
}

.useful-number-card h3 {
  margin: 0 0 8px;
  color: #17334b;
  font-size: 17px;
}

.useful-number-card strong {
  color: #a34234;
  font-size: 27px;
}

.useful-contact-list {
  display: grid;
  gap: 15px;
}

.useful-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  padding: 22px 25px;

  background: #ffffff;
  border: 1px solid #e3e7e9;
}

.useful-contact-row h3 {
  margin: 0 0 5px;
  color: #17334b;
}

.useful-contact-row p {
  margin: 0;
  color: #64727d;
}

.useful-contact-row > a {
  flex-shrink: 0;
  color: #a34234;
  font-size: 18px;
  font-weight: 700;
}


/* MOBILE */

@media (max-width: 700px) {

  .useful-numbers-grid {
    grid-template-columns: 1fr;
  }

  .useful-contact-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

}/* =========================================
   COMMUNE & PATRIMOINE
========================================= */

.heritage-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 45px;
  align-items: center;
}

.heritage-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.heritage-content h3 {
  margin-top: 0;
  color: #17334b;
  font-size: 28px;
}

.heritage-content p,
.heritage-text p {
  color: #64727d;
  line-height: 1.8;
}

.heritage-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.heritage-gallery img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

@media (max-width: 800px) {

  .heritage-grid {
    grid-template-columns: 1fr;
  }

  .heritage-gallery {
    grid-template-columns: 1fr;
  }

  .heritage-image img,
  .heritage-gallery img {
    height: auto;
  }

}/* =========================================
   ACTUALITÃ‰S ACCUEIL - ICÃ”NES
========================================= */

.home-news-icon {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 82px;

  background: #f7f3ec;
  border-bottom: 1px solid #eee8df;
}

.home-news-card {
  overflow: hidden;
}

@media (max-width: 800px) {

  .home-news-icon {
    height: 160px;
    font-size: 68px;
  }

}/* =========================================
   PAGE ACTUALITÃ‰S
========================================= */

/* =========================================
   MOT DU MAIRE
========================================= */

.mayor-message-section {
  background: #ffffff;
}

.mayor-message-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

.mayor-message-photo {
  text-align: left;
}

.mayor-message-photo img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin-bottom: 18px;
}

.mayor-message-identity {
  padding: 0;
}

.mayor-message-identity strong {
  display: block;
  color: #123955;
  font-size: 18px;
  margin-bottom: 4px;
}

.mayor-message-identity span {
  display: block;
  color: #647582;
  font-size: 14px;
  line-height: 1.4;
}

.mayor-message-content {
  max-width: 820px;
}

.mayor-message-content h2 {
  margin: 10px 0 28px;
  color: #123955;
  font-size: 38px;
  line-height: 1.15;
}

.mayor-message-content p {
  color: #526b7d;
  font-size: 17px;
  line-height: 1.75;
  margin: 0 0 22px;
}

.mayor-message-signature {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid #dfe5e8;
}

.mayor-message-signature strong {
  display: block;
  color: #123955;
  font-size: 18px;
}

.mayor-message-signature span {
  display: block;
  margin-top: 4px;
  color: #647582;
  font-size: 14px;
}

@media (max-width: 800px) {
  .mayor-message-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .mayor-message-photo {
    max-width: 260px;
  }

  .mayor-message-content h2 {
    font-size: 30px;
  }
}
.documents-year + .municipal-alert {
  margin-top: 35px;
  
}/* =========================================
   BLASON
========================================= */

.blason-image {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.blason-image img {
  width: min(260px, 100%);
  height: auto;
  object-fit: contain;
}/* =========================================
   LOGO 2018
========================================= */

.logo-2018-image {
  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;
  padding: 28px;

  border-radius: 8px;
}

.logo-2018-image img {
  display: block;
  width: min(300px, 100%);
  height: auto;
  object-fit: contain;
}

.logo-2018-image + .heritage-content {
  align-self: center;
}

@media (max-width: 800px) {

  .logo-2018-image {
    max-width: 360px;
    margin: 0 auto;
  }

  .logo-2018-image img {
    width: min(260px, 100%);
  }

}.logo-2018-image
  ~ .heritage-content {
  max-width: 620px;
}/* =========================================
   BLASON - MISE EN PAGE IMAGES + TEXTE
========================================= */

.heritage-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 55px;
  align-items: center;
  margin-top: 35px;
}


/* BLASON HISTORIQUE */

.blason-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.blason-image img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}


/* LOGO 2018 */

.logo-2018-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.logo-2018-image img {
  display: block;
  width: 280px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}


/* TEXTE */

.heritage-content {
  max-width: 700px;
}

.heritage-content p:first-child {
  margin-top: 0;
}

.heritage-content p {
  line-height: 1.8;
}


/* MOBILE */

@media (max-width: 800px) {

  .heritage-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .blason-image img {
    width: 200px;
  }

  .logo-2018-image img {
    width: 260px;
  }

  .heritage-content {
    max-width: none;
  }

}.postcard-item {
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
}

.postcard-title {
  display: block;
  padding: 14px 12px 16px;

  color: #1f1f1f;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.postcard-lightbox-title {
  margin: 15px 0 5px;

  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
}/* =========================================
   LIGHTBOX CARTES POSTALES - CORRECTION
========================================= */

.postcard-lightbox {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;

  display: none !important;
  align-items: center !important;
  justify-content: center !important;

  background: rgba(0, 0, 0, 0.92) !important;
  z-index: 999999 !important;
}

.postcard-lightbox.open {
  display: flex !important;
}

.postcard-lightbox-content {
  position: relative;
  max-width: 85vw;
  max-height: 90vh;
  text-align: center;
}

.postcard-lightbox-content img {
  display: block;
  max-width: 85vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

.postcard-lightbox-title {
  margin: 14px 0 4px;
  color: white !important;
  font-size: 20px;
}

.postcard-counter {
  color: white !important;
  margin-top: 5px;
}

.postcard-close,
.postcard-prev,
.postcard-next {
  position: absolute;
  z-index: 1000000;

  border: 0;
  color: white;
  background: rgba(255, 255, 255, 0.15);

  cursor: pointer;
}

.postcard-close {
  top: 20px;
  right: 25px;

  width: 50px;
  height: 50px;
  border-radius: 50%;

  font-size: 34px;
}

.postcard-prev,
.postcard-next {
  top: 50%;
  transform: translateY(-50%);

  width: 55px;
  height: 75px;

  font-size: 48px;
}

.postcard-prev {
  left: 25px;
}

.postcard-next {
  right: 25px;
}/* =========================================
   SALLE DES FÊTES
========================================= */

.salle-photos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
}

.salle-photos-grid figure {
  margin: 0;
}

.salle-photos-grid img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.salle-photos-grid figcaption {
  margin-top: 12px;
  font-weight: 600;
  color: #123955;
}

@media (max-width: 700px) {

  .salle-photos-grid {
    grid-template-columns: 1fr;
  }

  .salle-photos-grid img {
    height: auto;
  }

}/* =========================================
   PHOTOS CRÈCHE
========================================= */

.creche-photos {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 30px !important;
  margin-top: 30px !important;
  width: 100% !important;
}

.creche-photos figure {
  display: block !important;
  margin: 0 !important;
  width: 100% !important;
}

.creche-photos img {
  display: block !important;
  width: 100% !important;
  height: 360px !important;
  object-fit: cover !important;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .creche-photos {
    grid-template-columns: 1fr !important;
  }

  .creche-photos img {
    height: auto !important;
  }
}/* =====================================
   INFORMATION MAIRIE - ACCUEIL
===================================== */

.home-info-bar {
  background: #f2f5f7;
  border-top: 1px solid #e1e6e9;
  border-bottom: 1px solid #e1e6e9;
}

.home-info-bar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.home-info-label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;

  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b8432e;
}

.home-info-icon {
  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #b8432e;
  color: #fff;

  font-size: 18px;
  font-weight: 700;
}

.home-info-content {
  display: flex;
  align-items: center;
  gap: 18px;

  flex: 1;

  color: #173752;
}

.home-info-content strong {
  font-size: 17px;
  white-space: nowrap;
}

.home-info-content span {
  color: #52687a;
  font-size: 15px;
}

.home-info-link {
  flex-shrink: 0;

  font-weight: 700;
  text-decoration: none;
  color: #173752;
}

.home-info-link:hover {
  text-decoration: underline;
}


/* MOBILE */

@media (max-width: 768px) {

  .home-info-bar-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;

    padding-top: 18px;
    padding-bottom: 18px;
  }

  .home-info-content {
    display: block;
  }

  .home-info-content strong {
    display: block;
    margin-bottom: 5px;
  }

}/* =========================================
   SLIDER ACCUEIL
========================================= */

.home-hero-slider {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.home-hero-slide {
  position: absolute;
  inset: 0;

  background-size: cover;
  background-position: center;

  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.home-hero-slide.active {
  opacity: 1;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.25);

  z-index: 1;
}

.home-hero-content {
  position: relative;
  z-index: 2;

  min-height: 520px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  color: white;
}

.home-hero-content h1,
.home-hero-content p,
.home-hero-content .section-eyebrow {
  color: white;
}


/* MOBILE */

@media (max-width: 768px) {

  .home-hero-slider,
  .home-hero-content {
    min-height: 430px;
  }

}/* =========================================
   COMMISSIONS MUNICIPALES
========================================= */

.commissions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.commission-card {
  background: #fff;
  border: 1px solid #e3e8ec;
  border-radius: 10px;
  padding: 28px;
}

.commission-card h3 {
  margin-top: 0;
  color: #173752;
}

.commission-card p {
  line-height: 1.65;
}

.commission-members {
  margin-bottom: 8px;
}

@media (max-width: 800px) {
  .commissions-grid {
    grid-template-columns: 1fr;
  }
}/* =========================================
   SOUS-MENU CONSEIL MUNICIPAL
========================================= */

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu-link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.dropdown-submenu-link span {
  font-size: 22px;
  line-height: 1;
}

.dropdown-submenu-menu {
  position: absolute;
  top: 0;
  left: 100%;

  min-width: 260px;

  background: white;
  border-radius: 8px;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);

  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;

  z-index: 1000;
}

.dropdown-submenu:hover .dropdown-submenu-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.dropdown-submenu-menu a {
  display: block;
  padding: 12px 18px;
  white-space: nowrap;
  text-decoration: none;
}

.dropdown-submenu-menu a:hover {
  background: #f3f6f8;
}


/* =========================================
   COMPTES RENDUS CONSEIL MUNICIPAL
========================================= */

.council-documents {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.council-document-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;

  padding: 18px 22px;

  background: #fff;
  border: 1px solid #e3e8ec;
  border-radius: 8px;
}

.council-document-date {
  display: flex;
  align-items: center;
  gap: 15px;
}

.council-document-icon {
  font-size: 25px;
}

.council-document-date strong {
  display: block;
  color: #173752;
}

.council-document-date span {
  display: block;
  margin-top: 4px;
}

.document-pending {
  flex-shrink: 0;

  padding: 7px 12px;

  background: #f1f3f5;
  border-radius: 20px;

  color: #667681;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 650px) {

  .council-document-row {
    align-items: flex-start;
    flex-direction: column;
  }

}/* =========================================
   PUBLICATIONS MUNICIPALES
========================================= */

.publication-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.publication-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;

  padding: 20px 22px;

  background: #fff;
  border: 1px solid #e3e8ec;
  border-radius: 8px;
}

.publication-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.publication-icon {
  font-size: 28px;
}

.publication-info strong {
  display: block;
  color: #173752;
  font-size: 17px;
}

.publication-info span {
  display: block;
  margin-top: 5px;
  color: #5e7180;
}

@media (max-width: 650px) {

  .publication-row {
    align-items: flex-start;
    flex-direction: column;
  }

}/* =====================================
   LIGHTBOX SAINT-LOUP
===================================== */

.saint-loup-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.saint-loup-lightbox img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.saint-loup-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 1000000;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  font-size: 48px;
  line-height: 50px;
  cursor: pointer;
}

.saint-loup-photo {
  cursor: pointer;
}/* =====================================
   NAVIGATION LIGHTBOX
===================================== */

.saint-loup-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  z-index: 1000000;

  width: 58px;
  height: 70px;

  border: 0;
  border-radius: 8px;

  background: rgba(0, 0, 0, 0.45);
  color: white;

  font-size: 54px;
  line-height: 60px;

  cursor: pointer;
}

.saint-loup-lightbox-prev {
  left: 25px;
}

.saint-loup-lightbox-next {
  right: 25px;
}

.saint-loup-lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.75);
}

@media (max-width: 700px) {

  .saint-loup-lightbox-nav {
    width: 44px;
    height: 58px;
    font-size: 40px;
  }

  .saint-loup-lightbox-prev {
    left: 8px;
  }

  .saint-loup-lightbox-next {
    right: 8px;
  }

}

/* =========================================================
   GALERIE SAINT-LOUP
========================================================= */

.saint-loup-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 35px;
}

.saint-loup-photo {
  display: block;
  width: 100%;
  height: 220px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #eeeeee;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}

.saint-loup-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.saint-loup-photo:hover img {
  transform: scale(1.06);
}

@media (max-width: 1000px) {
  .saint-loup-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .saint-loup-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .saint-loup-photo {
    height: 160px;
  }
}

@media (max-width: 450px) {
  .saint-loup-gallery {
    grid-template-columns: 1fr;
  }

  .saint-loup-photo {
    height: 220px;
  }
}


/* =========================================================
   NAVIGATION MOBILE — VERSION CONSOLIDÉE
   Les sous-menus s'ouvrent avec la classe .submenu-open.
========================================================= */

@media (max-width: 900px) {
  .main-header {
    position: relative;
  }

  .main-nav {
    max-height: calc(100vh - 123px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item > .nav-link,
  .dropdown-submenu-link {
    width: 100%;
    min-height: auto;
    padding: 13px 0;
  }

  /* Neutralise le hover desktop sur écran tactile. */
  .nav-item:hover > .dropdown-menu {
    display: none;
  }

  .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    padding: 0 0 8px 18px;
    border: 0;
    box-shadow: none;
  }

  .nav-item.submenu-open > .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    white-space: normal;
  }

  .dropdown-submenu {
    width: 100%;
  }

  .dropdown-submenu-menu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    padding: 0 0 6px 18px;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .dropdown-submenu:hover .dropdown-submenu-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dropdown-submenu.submenu-open > .dropdown-submenu-menu {
    display: block;
  }

  .dropdown-submenu-link span {
    display: inline-block;
    transition: transform 0.2s ease;
  }

  .dropdown-submenu.submenu-open > .dropdown-submenu-link span {
    transform: rotate(90deg);
  }
}
/* =========================================================
   RECHERCHE
========================================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* HEADER */

.nav-search {
  display: flex;
  align-items: center;
}

.header-search-form {
  display: flex;
  align-items: center;

  border: 1px solid #d8e0e6;
  border-radius: 8px;

  background: #fff;

  overflow: hidden;
}

.header-search-form input {
  width: 110px;

  padding: 9px 8px 9px 12px;

  border: 0;
  outline: 0;

  font: inherit;
  font-size: 13px;

  background: transparent;
}

.header-search-form input:focus {
  width: 190px;
}

.header-search-button {
  width: 40px;
  height: 38px;

  border: 0;

  cursor: pointer;

  background: transparent;

  font-size: 17px;
}


/* PAGE RECHERCHE */

.site-search-page {
  display: flex;
  gap: 12px;

  max-width: 850px;

  margin: 0 auto 50px;
}

.site-search-page input {
  flex: 1;

  min-width: 0;

  padding: 16px 18px;

  border: 1px solid #ccd6dd;
  border-radius: 8px;

  font: inherit;
  font-size: 17px;

  outline: none;
}

.site-search-page input:focus {
  border-color: #173752;
}


.search-results-heading {
  margin-bottom: 25px;
}


.search-results {
  display: grid;
  gap: 14px;
}


.search-result {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 25px;

  padding: 22px 24px;

  border: 1px solid #e0e5e9;
  border-radius: 10px;

  background: #fff;

  color: inherit;
  text-decoration: none;

  transition:
    transform .2s ease,
    box-shadow .2s ease;
}


.search-result:hover {
  transform: translateY(-2px);

  box-shadow:
    0 8px 24px rgba(0, 0, 0, .08);
}


.search-result-type {
  display: inline-block;

  margin-bottom: 5px;

  color: #b8432e;

  font-size: 12px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: .06em;
}


.search-result h3 {
  margin: 0 0 7px;

  color: #173752;
}


.search-result p {
  margin: 0;

  color: #52687a;
}


.search-result-arrow {
  flex-shrink: 0;

  color: #173752;

  font-size: 24px;
}


.search-empty {
  padding: 35px;

  border-radius: 10px;

  background: #f4f6f8;

  text-align: center;
}


/* MOBILE */

@media (max-width: 900px) {

  .nav-search {
    width: 100%;

    padding: 12px 0;
  }

  .header-search-form {
    width: 100%;
  }

  .header-search-form input,
  .header-search-form input:focus {
    width: 150%;
    flex: 1;
  }

}


@media (max-width: 600px) {

  .site-search-page {
    flex-direction: column;
  }

  .site-search-page .btn {
    width: 100%;
  }

  .search-result {
    padding: 18px;
  }

}/* =========================================
   BANDEAU INFORMATIONS DÉFILANTES
========================================= */

.info-ticker {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  background: #a8c900;
  color: #fff;
  overflow: hidden;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.info-ticker-label {
  flex-shrink: 0;
  padding: 8px 14px;
  background: #a8c900;
  z-index: 1;
}

.info-ticker-window {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.info-ticker-text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: infoTicker 22s linear infinite;
}

@keyframes infoTicker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

.info-ticker:hover .info-ticker-text {
  animation-play-state: paused;
}

@media (max-width: 768px) {
  .info-ticker {
    font-size: 12px;
  }

  .info-ticker-label {
    padding: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .info-ticker-text {
    animation: none;
    padding-left: 0;
    white-space: normal;
  }
}/* =========================================
   ACTUALITÉS - AFFICHES ENTIÈRES
========================================= */

.actualite-detail img,
.actualite-image img,
.actualite-photo img {
  width: 100%;
  height: auto;
  max-height: 550px;
  object-fit: contain;
  object-position: center;
}/* =========================================
   CORRECTION DEFINITIVE DES IMAGES ACTUALITES
========================================= */
/* =========================================
   CADRE DORE DIRECTEMENT SUR LES AFFICHES
========================================= */

/* Conteneur sans cadre ni espace superflu */
.actualite-detail .actualite-detail-image,
.actualite-detail-image {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;

  width: fit-content !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;

  padding: 0 !important;
  margin: 0 !important;

  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* Cadre directement autour de l'image */
.actualite-detail .actualite-detail-image img,
.actualite-detail-image img {
  display: block !important;

  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;

  object-fit: contain !important;
  position: static !important;
  transform: none !important;

  padding: 0 !important;
  border: 1px solid #d9a000 !important;
  border-radius: 4px !important;
  background: white !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12) !important;

  box-sizing: border-box !important;
}
/* ACCUEIL - ESPACES REDUITS */

.section {
  padding-top: 25px;
  padding-bottom: 25px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin-top: 5px;
  margin-bottom: 8px;
}

.section-heading p {
  margin-top: 0;
  margin-bottom: 10px;
}

.quick-card {
  padding: 20px;
  gap: 8px;
}

@media (max-width: 600px) {
  .section {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

/* UNIFORMISATION DES PHOTOS EVENEMENTS */

.event-card img,
.event-image img,
.agenda-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Conteneur des photos */
.event-image {
  height: 150px;
  overflow: hidden;
}

/* Alignement du contenu des cartes */
.event-card {
  display: flex;
  flex-direction: column;
}/* Correction du champ de recherche */

.header-search-form {
  display: flex;
  align-items: center;
  width: 220px;
}

.header-search-form input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
}

.header-search-button {
  flex-shrink: 0;
}/* Alignement téléphone et contact dans le bandeau supérieur */
.topbar .container {
  display: flex;
  align-items: center;
}

.topbar a,
.topbar button {
  vertical-align: middle;
}


/* =========================================================
   NAVIGATION — RAFRAÎCHISSEMENT VISUEL OCTOBRE 2026
   Conserve la structure EJS et les interactions existantes.
========================================================= */
@media (min-width: 901px) {
  .main-header { background: #fcfdfb; border-bottom: 1px solid #e2e9e3; box-shadow: 0 5px 18px rgba(22, 48, 39, .06); }
  .header-inner { min-height: 100px; gap: 16px; }
  .brand { gap: 10px; }
  .brand-logo img { width: 132px; }
  .brand-text strong { font-size: 16px; color: #214c3c; }
  .brand-text span { font-size: 11px; color: #66786d; }
  .main-nav { gap: clamp(7px, .8vw, 15px); font-size: 13px; font-weight: 600; }
  .main-nav > a, .nav-link { min-height: 100px; color: #244438; line-height: 1.3; transition: color .2s ease; }
  .nav-item { min-height: 100px; }
  .main-nav > a:hover, .nav-link:hover, .nav-item:hover > .nav-link { color: #568a39; }
  .dropdown-menu { left: -14px; min-width: 230px; padding: 9px; border: 1px solid #e2e9e3; border-top: 3px solid #83a832; border-radius: 0 0 10px 10px; box-shadow: 0 18px 35px rgba(22, 48, 39, .13); }
  .dropdown-menu a { padding: 11px 13px; border-radius: 5px; color: #244438; font-size: 13px; }
  .dropdown-menu a:hover, .dropdown-menu a:focus-visible { background: #eff5e9; color: #286346; }
  .dropdown-submenu-menu { border: 1px solid #e2e9e3; box-shadow: 0 15px 28px rgba(22, 48, 39, .13); }
  .header-search-form { border-color: #dce6dc; background: #fff; }
  .header-search-form input { width: 85px; }
  .header-search-form input:focus { width: 120px; }
}
.topbar { background: #214c3c; }
.main-nav a:focus-visible, .nav-link:focus-visible, .menu-toggle:focus-visible, .header-search-button:focus-visible { outline: 2px solid #83a832; outline-offset: 3px; }
@media (max-width: 900px) {
  .main-header { background: #fcfdfb; }
  .main-nav { border-top: 1px solid #e3ebe4; box-shadow: 0 12px 22px rgba(22,48,39,.12); }
  .main-nav > a, .nav-link { color: #244438; }
  .dropdown-menu a { color: #244438; }
  .menu-toggle { color: #214c3c; }
}


/* =========================================================
   MENU SUR DEUX NIVEAUX — SAINT-LOUP-CAMMAS
   Identité et recherche / barre de navigation
   ========================================================= */
.main-header { background: #fcfdfb; }
.header-inner { min-height: 96px; justify-content: space-between; gap: 20px; }
.header-tools { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header-tools .nav-search { display: block; }
.navigation-row { border-top: 1px solid #e5ebe5; background: #fff; }
.navigation-inner { display: flex; justify-content: center; }
.navigation-row .main-nav { margin-left: 0; width: 100%; justify-content: space-between; gap: 10px; }
.navigation-row .nav-item { min-height: 57px; }
.navigation-row .nav-link,
.navigation-row .main-nav > a { min-height: 57px; padding: 0 10px; white-space: nowrap; font-size: 14px; line-height: 1.3; }
.navigation-row .nav-item:hover > .nav-link,
.navigation-row .nav-link:focus-visible { color: #286346; }
.navigation-row .nav-item:hover > .nav-link::after { transform: scaleX(1); }
.navigation-row .nav-link { position: relative; }
.navigation-row .nav-link::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; background: #83a832; transform: scaleX(0); transition: transform .2s ease; }
.navigation-row .dropdown-menu { top: 100%; }
@media (max-width: 1100px) and (min-width: 901px) {
  .navigation-row .main-nav { gap: 1px; }
  .navigation-row .nav-link { padding: 0 5px; font-size: 12px; }
}
@media (max-width: 900px) {
  .header-inner { min-height: 85px; }
  .header-tools { gap: 12px; }
  .header-tools .menu-toggle { display: block; margin-left: 0; }
  .header-tools .nav-search { display: none; }
  .navigation-row { border-top: 0; }
  .navigation-inner { display: block; }
  .navigation-row .main-nav { position: absolute; top: 100%; left: 0; right: 0; width: 100%; max-height: calc(100vh - 85px); overflow-y: auto; display: none; padding: 12px 24px 24px; flex-direction: column; align-items: stretch; background: #fff; z-index: 1300; }
  .navigation-row .main-nav.open { display: flex; }
  .navigation-row .nav-item { min-height: auto; display: block; }
  .navigation-row .nav-link { min-height: auto; display: flex; width: 100%; padding: 14px 4px; font-size: 15px; white-space: normal; }
  .navigation-row .nav-link::after { display: none; }
  .navigation-row .dropdown-menu { position: static; display: none; padding: 0 0 8px 12px; border: 0; box-shadow: none; border-radius: 0; }
  .navigation-row .nav-item.submenu-open > .dropdown-menu { display: block; }
  .navigation-row .dropdown-submenu-menu { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 12px; }
  .navigation-row .dropdown-submenu.submenu-open > .dropdown-submenu-menu { display: block; }
}
@media (max-width: 600px) {
  .header-inner { min-height: 80px; }
  .brand-logo img { width: 125px; }
  .brand-text { display: none; }
}


/* SLC : 3 cartes entières pour Actualités et Prochains événements */
.actus-marquee, .home-agenda-marquee { width:100%; overflow:hidden; }
.actus-marquee-track, .home-agenda-track { animation:none !important; width:100%; transform:none !important; display:block; }
.actus-marquee-group, .home-agenda-group { width:100%; padding:0; gap:18px; display:flex; flex-wrap:nowrap; }
.actus-marquee-group[aria-hidden="true"], .home-agenda-group[aria-hidden="true"] { display:none !important; }
.actus-marquee-group .actus-marquee-card,
.home-agenda-group .home-agenda-card {
  display:none; box-sizing:border-box; flex:0 0 calc((100% - 36px) / 3);
  width:calc((100% - 36px) / 3); min-width:0;
}
.actus-marquee-group .actus-marquee-card.slc-carousel-visible,
.home-agenda-group .home-agenda-card.slc-carousel-visible { display:flex; }
.actus-marquee-photo { height:210px; }
.home-agenda-image { height:190px; }
@media (max-width:900px) {
  .actus-marquee-group .actus-marquee-card,
  .home-agenda-group .home-agenda-card { flex-basis:calc((100% - 18px) / 2); width:calc((100% - 18px) / 2); }
}
@media (max-width:600px) {
  .actus-marquee-group .actus-marquee-card,
  .home-agenda-group .home-agenda-card { flex-basis:100%; width:100%; }
}


/* SLC : 3 cartes entières — Saint-Loup-Cammas au quotidien */
.daily-marquee { width:100%; overflow:hidden; }
.daily-track { animation:none !important; width:100%; transform:none !important; display:block; }
.daily-group { width:100%; padding:0; gap:18px; display:flex; flex-wrap:nowrap; }
.daily-group[aria-hidden="true"] { display:none !important; }
.daily-group:first-child > .demarche-card {
  display:none; box-sizing:border-box; flex:0 0 calc((100% - 36px) / 3);
  width:calc((100% - 36px) / 3); min-width:0; max-width:none;
  flex-direction:column; align-items:flex-start; gap:10px; padding:22px;
}
.daily-group:first-child > .demarche-card.slc-daily-visible { display:flex !important; }
.daily-group:first-child > .demarche-card > div:last-child { width:100%; min-width:0; }
.daily-group:first-child > .demarche-card h3 { margin:0 0 8px; }
.daily-group:first-child > .demarche-card p { margin:0 0 12px; }
@media (max-width:900px) {
 .daily-group:first-child > .demarche-card { flex-basis:calc((100% - 18px) / 2); width:calc((100% - 18px) / 2); }
}
@media (max-width:600px) {
 .daily-group:first-child > .demarche-card { flex-basis:100%; width:100%; }
}

/* Rubrique Au quotidien : trois cartes fixes, sans défilement */
.daily-static-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.daily-static-grid .demarche-card {
  width: 100%;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px;
}
.daily-static-grid .demarche-card > div:last-child {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.daily-static-grid .demarche-card h3 { margin: 0 0 8px; }
.daily-static-grid .demarche-card p { margin: 0 0 14px; }
.daily-static-grid .demarche-card span { margin-top: auto; }
@media (max-width: 900px) {
  .daily-static-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .daily-static-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Saint-Loup-Cammas — harmonisation des cartes et icônes SVG
   Ajout non destructif : navigation, carrousels et JS inchangés.
   ============================================================ */
.demarches-grid > .demarche-card {
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #e1e8ed;
  border-radius: 12px;
  gap: 18px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.demarches-grid > a.demarche-card:hover,
.demarches-grid > a.demarche-card:focus-visible {
  border-color: #9bb3c2;
  box-shadow: 0 5px 16px rgba(23, 51, 75, .10);
}
.demarches-grid > a.demarche-card:focus-visible {
  outline: 2px solid #47647b;
  outline-offset: 3px;
}
.demarches-grid .demarche-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #eaf1f5;
  color: #47647b;
  line-height: 1;
}
.demarches-grid .demarche-icon svg {
  display: block;
  width: 26px;
  height: 26px;
  flex: none;
  stroke: currentColor;
}
.demarches-grid .demarche-card > div:last-child { min-width: 0; }
.demarches-grid .demarche-card h3 { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .demarches-grid > .demarche-card { padding: 20px; gap: 14px; }
  .demarches-grid .demarche-icon {
    width: 42px; height: 42px; min-width: 42px; flex-basis: 42px;
  }
  .demarches-grid .demarche-icon svg { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .demarches-grid > .demarche-card { transition: none; }
}
/* Alignement des éléments du bandeau supérieur */
.topbar .container {
  display: flex;
  align-items: center;
}

.topbar a,
.topbar button {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  align-self: center;
  line-height: 1.4;
}/* Actualités : afficher les photos sans les couper */
.news-card img,
.actualite-card img {
  width: 100%;
  height: 180px;
  object-fit: contain !important;
  object-position: center;
  background: #f5f6f7;
}