/* Feuille externe consolidée à partir des styles intégrés fournis. */
/* Les règles ont été conservées dans l’ordre de première occurrence. */

/* Source de première occurrence : article.html */
:root {
--navy: #0b2445;
      --navy-deep: #071a33;
      --blue: #0879bd;
      --cyan: #13a9c9;
      --gold: #f6bd3b;
      --ink: #17283d;
      --muted: #64748b;
      --paper: #f5f8fb;
      --line: #dbe5ee;
      --radius: 18px;
      
      --hero-image: url('[(#CHEMIN{images_v3/hero-mairie.jpg})]');
}

*, *::before, *::after {
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
}

body {
margin: 0; color: var(--ink); background: var(--paper); font-family: 'DM Sans', sans-serif; line-height: 1.55;
}

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

.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;
}

.topbar {
background: var(--navy); color: #fff;
}

.topbar-inner, .nav-inner, .hero-inner, .section-inner, .footer-inner {
width: min(1180px, calc(100% - 48px)); margin-inline: auto;
}

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

.brand {
display: inline-flex; align-items: center; gap: 15px; color: white;
}

.brand img {
width: 116px; height: auto; max-height: 62px; object-fit: contain; filter: brightness(0) invert(1);
}

.brand-text {
border-left: 1px solid rgba(255,255,255,.26); padding-left: 15px; font-size: .72rem; letter-spacing: .17em; text-transform: uppercase; color: #a9c1d9;
}

.top-actions {
display: flex; gap: 10px; align-items: center;
}

.top-action {
border: 1px solid rgba(255,255,255,.27); border-radius: 999px; padding: 10px 16px; font-size: .78rem; font-weight: 700; transition: .2s ease;
}

.top-action:hover {
background: white; color: var(--navy); transform: translateY(-2px);
}

.top-action.primary {
background: var(--gold); border-color: var(--gold); color: #17283d; text-decoration: none;
}

a.top-action {
text-decoration: none;
}

.nav-wrap {
background: #fff; box-shadow: 0 6px 22px rgba(11,36,69,.08); position: relative; z-index: 10;
}

.nav-inner {
display: flex; align-items: center; min-height: 59px;
}

.menu-toggle {
display: none; margin-left: auto; border: 0; background: transparent; color: var(--navy); cursor: pointer; padding: 10px;
}

.menu-toggle span {
display: block; width: 25px; height: 2px; margin: 5px 0; background: currentColor;
}

.main-menu {
display: flex; align-items: stretch; gap: 0; width: 100%; margin: 0; padding: 0; list-style: none;
}

.main-menu > li {
position: relative;
}

.main-menu > li > a {
display: block; padding: 19px 14px 16px; font-size: .77rem; font-weight: 700; color: var(--navy); white-space: nowrap; border-bottom: 3px solid transparent; transition: .2s;
}

.main-menu > li:nth-child(1) > a {
border-color: var(--cyan);
}

.main-menu > li:nth-child(2) > a {
border-color: #e97053;
}

.main-menu > li:nth-child(3) > a {
border-color: var(--gold);
}

.main-menu > li:nth-child(4) > a {
border-color: #7dbb5b;
}

.main-menu > li:nth-child(5) > a {
border-color: #9c7bc6;
}

.main-menu > li:nth-child(6) > a {
border-color: #e99e5a;
}

.main-menu > li > a:hover, .main-menu > li > a:focus {
background: #eef6fb;
}

.dropdown-toggle::after {
content: '⌄'; margin-left: 7px; color: var(--blue);
}

.dropdown-menu {
position: absolute; top: 100%; left: 0; display: none; width: min(700px, 88vw); padding: 16px; margin: 0; background: white; border-top: 3px solid var(--blue); box-shadow: 0 20px 36px rgba(11,36,69,.18); list-style: none;
}

.has-dropdown:hover > .dropdown-menu,
    .has-dropdown:focus-within > .dropdown-menu,
    .has-dropdown.open > .dropdown-menu {
display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
}

.dropdown-menu .menu-card::before {
content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75),
        rgba(0, 0, 0, 0.05)
      );
}

.dropdown-menu .menu-card .nv_ti {
position: absolute;
      z-index: 1;
      right: 10px;
      bottom: 10px;
      left: 10px;

      color: #fff;
      font-weight: bold;
      text-shadow: 0 1px 3px #000;
}

.dropdown-menu > li {
display: contents;
}

.menu-card {
min-height: 105px; display: flex; align-items: end; padding: 12px; border-radius: 10px; overflow: hidden; color: white; background: linear-gradient(145deg, #0b477b, #0c9dc2); position: relative;     background-size: cover;
}

.menu-card::before {
content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 18%, rgba(3,20,41,.82));
}

.menu-card > * {
position: relative;
}

.menu-card .nv_ti {
font-weight: 700; font-size: .82rem;
}

.menu-card .nv_tx2 {
display: block;
    margin-top: 5px;
    font-size: .72rem;
}

.hero {
min-height: 570px; position: relative; display: flex; align-items: center; overflow: hidden; background: linear-gradient(90deg, rgba(4,25,53,.86) 0%, rgba(5,43,75,.64) 45%, rgba(4,28,52,.3) 100%), var(--hero-image) center/cover;
}

.hero::after {
content: ''; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(transparent, rgba(7,26,51,.45)); pointer-events: none;
}

.hero-inner {
position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 360px; gap: 70px; align-items: center;
}

.hero {
position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 660px;
  color: #fff;
}

.hero-video,
.hero-overlay {
position: absolute;
  inset: 0;
}

.hero-video {
z-index: -3;
  overflow: hidden;
  pointer-events: none;
}

.hero-video iframe {
position: absolute;
  top: 50%;
  left: 50%;

  width:  max(100vw, 177.78vh);
  height: max(56.25vw, 100vh);

  transform: translate(-50%, -50%);
  border: 0;
}

.hero-overlay {
z-index: -2;
  background: rgba(0, 20, 35, 0.48);
}

.hero-overlay::after {
content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.15)
  );
}

.hero-inner {
position: relative;
  z-index: 1;
}

.hero-copy {
color: #fff; max-width: 620px; animation: rise .7s ease both;
}

.eyebrow {
display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}

.eyebrow::before {
content: ''; width: 34px; height: 2px; background: currentColor;
}

.hero h1 {
margin: 17px 0 14px; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(3.2rem, 7vw, 6.4rem); line-height: .93; letter-spacing: -.05em;
}

.hero h1 span {
display: block; color: #9be0ec; font-size: .49em; letter-spacing: -.02em;
}

.hero p {
max-width: 480px; margin: 0 0 26px; color: #e3edf5; font-size: 1.06rem;
}

.hero-cta {
display: inline-flex; padding: 13px 20px; border-radius: 999px; background: var(--gold); color: var(--navy-deep); font-weight: 700; box-shadow: 0 9px 20px rgba(0,0,0,.18);
}

.hero-cta:hover {
background: #ffd66e;
}

.town-card {
padding: 27px; color: white; border-radius: var(--radius); background: linear-gradient(150deg, #067bbd, #09518d); box-shadow: 0 24px 38px rgba(2,17,36,.3); animation: rise .7s .15s ease both;
}

.town-card .card-kicker {
color: #a8ebf3; font-size: .73rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}

.town-card h2 {
margin: 8px 0 19px; font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; line-height: 1.05;
}

.town-card address {
padding-top: 16px; border-top: 1px solid rgba(255,255,255,.25); font-style: normal; color: #e7f4fb; font-size: .9rem;
}

.town-card a {
display: inline-block; margin-top: 17px; color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}

.section-inner {
padding-block: 54px;
}

.section-heading {
display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px;
}

.section-heading h2 {
margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 2.15rem; color: var(--navy);
}

.section-heading p {
margin: 0; color: var(--muted); font-size: .9rem;
}

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

.news-card {
min-height: 265px; display: flex; align-items: end; padding: 19px; position: relative; overflow: hidden; border-radius: 14px; color: white; background: linear-gradient(140deg, #145c88, #0b9ab7); background-position: center; background-size: cover; box-shadow: 0 5px 15px rgba(18,49,77,.08);
}

.news-card::before {
content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 22%, rgba(5,24,46,.88));
}

.news-card > div {
position: relative;
}

.news-card .nv_da {
color: #b8d9e7; font-size: .72rem;
}

.news-card .nv_ti {
margin-top: 4px; font-size: 1.12rem; font-weight: 700; line-height: 1.15;
}

.news-card .nv_tx {
margin-top: 5px; color: #edf7fa; font-size: .8rem;
}

.news-card.featured {
grid-column: span 2; min-height: 350px;
}

.map-zone {
background: #eaf1f5;
}

.map-box {
min-height: 180px; display: grid; place-items: center; border: 1px dashed #9ab6c8; border-radius: 15px; color: var(--muted); background: #f8fbfd;
}

footer {
background: var(--navy-deep); color: #d3dfeb;
}

.footer-inner {
display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; padding-block: 42px;
}

footer h2, footer h3 {
margin: 0 0 12px; color: white; font-size: 1rem;
}

footer h2 {
font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem;
}

footer p, footer address {
margin: 0; color: #aebfd0; font-size: .88rem; font-style: normal;
}

footer ul {
margin: 0; padding: 0; list-style: none; font-size: .86rem; line-height: 2;
}

footer a:hover {
color: var(--gold);
}

.footer-bottom {
padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); color: #8fa5b9; font-size: .75rem;
}

@keyframes rise {
from { opacity: 0; transform: translateY(17px); } to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
.topbar-inner, .nav-inner, .hero-inner, .section-inner, .footer-inner { width: min(100% - 32px, 680px); } .hero-inner { grid-template-columns: 1fr; gap: 32px; padding-block: 75px; } .town-card { max-width: 420px; } .main-menu > li > a { padding-inline: 9px; font-size: .7rem; }
}

@media (max-width: 680px) {
.topbar-inner { min-height: 74px; } .brand img { width: 92px; } .brand-text { display: none; } .top-actions { gap: 5px; } .top-action { padding: 8px 10px; font-size: .67rem; } .menu-toggle { display: block; } .main-menu { display: none; flex-direction: column; padding: 8px 0 14px; } .main-menu.is-open { display: flex; } .main-menu > li > a { padding: 12px 4px; border-bottom-width: 2px; } .dropdown-menu { position: static; width: 100%; box-shadow: none; border-top: 0; background: #f4f8fb; } .has-dropdown:hover > .dropdown-menu { display: none; } .has-dropdown.open > .dropdown-menu, .has-dropdown:focus-within > .dropdown-menu { display: grid; grid-template-columns: repeat(2, 1fr); }   .dropdown-menu > li {
    display: contents;
  } .hero { min-height: 660px; } .hero h1 { font-size: 3.7rem; } .section-inner { padding-block: 38px; } .section-heading { display: block; } .section-heading p { margin-top: 6px; } .news-grid { grid-template-columns: 1fr; } .news-card.featured { grid-column: auto; min-height: 280px; } .footer-inner { grid-template-columns: 1fr; gap: 25px; }
}

.map-box {
overflow: hidden;
}

.cinema-section {
background: #fff;
  overflow: hidden;
}

.cinema-slider-wrap {
position: relative;
}

.cinema-slider {
display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) #e8eef3;
}

.cinema-slider::-webkit-scrollbar {
height: 8px;
}

.cinema-slider::-webkit-scrollbar-track {
background: #e8eef3;
  border-radius: 20px;
}

.cinema-slider::-webkit-scrollbar-thumb {
background: var(--blue);
  border-radius: 20px;
}

.cinema-film {
flex: 0 0 110px;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(11, 36, 69, .14);
  transition: transform .2s ease, box-shadow .2s ease;
    height: 190px;
}

.cinema-film:hover {
transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(11, 36, 69, .22);
}

.cinema-film img,
.cinema-film .affcine {
image-rendering: auto;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cinema-controls {
display: flex;
  gap: 8px;
}

.cinema-button {
width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.cinema-button:hover {
background: var(--blue);
  transform: scale(1.06);
}

.cinema-empty {
padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: #f8fbfd;
}

@media (max-width: 680px) {
.cinema-section .section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
  }

  .cinema-film {
    flex-basis: 155px;
  }

  .cinema-film img,
  .cinema-film .affcine {
    height: 190px;
  }
}

.page-shell {
background: #fff;
}

.page-hero {
padding: 68px 0 48px; background: linear-gradient(135deg, var(--navy), #0b5d91); color: #fff;
}

.page-hero h1 {
margin: 12px 0 10px; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1;
}

.page-hero .chapo {
max-width: 760px; color: #e3edf5; font-size: 1.08rem;
}

.content-layout {
display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 42px; align-items: start;
}

.content-column {
min-width: 0;
}

.content-column h2 {
margin-top: 0; color: var(--navy); font-family: 'Playfair Display', Georgia, serif; font-size: 2rem;
}

.content-column img {
max-width: 100%; height: auto;
}

.content-column .texte, .article-text {
font-size: 1rem;
}

.content-column .texte a, .article-text a {
color: var(--blue); text-decoration: underline; text-underline-offset: 3px;
}

.content-list {
display: grid; gap: 16px; margin: 0; padding: 0; list-style: none;
}

.content-card {
display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 5px 15px rgba(18,49,77,.06);
}

.content-card:hover {
border-color: #9fc9df; transform: translateY(-2px);
}

.content-card h3 {
margin: 0 0 5px; color: var(--navy); font-size: 1.18rem;
}

.content-card p {
margin: 0; color: var(--muted);
}

.meta {
color: var(--muted); font-size: .82rem;
}

.sidebar {
border-radius: 14px;
}

.sidebar h2 {
margin-top: 0; color: var(--navy); font-size: 1.2rem;
}

.sidebar ul {
margin: 0; padding-left: 18px;
}

.documents {
margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line);
}

.documents ul {
padding-left: 18px;
}

.breadcrumbs {
margin-bottom: 8px; color: #b8d9e7; font-size: .82rem;
}

.breadcrumbs a {
text-decoration: underline;
}

.pagination {
margin-top: 26px; color: var(--muted);
}

.login-box {
margin-top: 12px; font-size: .82rem;
}

.login-box a {
color: var(--gold); text-decoration: underline;
}

@media (max-width: 900px) {
.content-layout { grid-template-columns: 1fr; } .sidebar { order: 2; }
}

.article-content table,
.article-content table.spip,
table.spip {
width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  background: #ffffff;
  font-size: 0.95rem;
}

.article-content th,
.article-content table.spip th,
table.spip th {
background: #0b2b4c;
  color: #ffffff;
  font-weight: bold;
  text-align: left;
  padding: 12px;
  border: 1px solid #cbd5df;
}

.article-content td,
.article-content table.spip td,
table.spip td {
padding: 10px 12px;
  border: 1px solid #cbd5df;
  color: #26384a;
  vertical-align: top;
}

.article-content tr:nth-child(even),
table.spip tr:nth-child(even) {
background: #f1f5f8;
}

.article-content tr:hover,
table.spip tr:hover {
background: #e5eef5;
}

@media (max-width: 700px) {
.article-content table,
  table.spip {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

.page-hero {
position: relative;
  overflow: hidden;
  background: #0b2b4c;
  color: #fff;
}

.page-hero-bg {
position: absolute;
  inset: -25px;
  z-index: 0;

  background-image:
    linear-gradient(
      rgba(11, 43, 76, 0.82),
      rgba(11, 43, 76, 0.82)
    ),
    var(--hero-image);

  background-size: cover;
  background-position: center;
  filter: blur(7px);
  transform: scale(1.08);
}

.page-hero .section-inner {
position: relative;
  z-index: 1;
}

.formulaire_spip,
.formulaire_editer,
.formulaire_formidable {
max-width: 900px;
  margin: 30px auto;
  padding: 28px;
  background: #f7f9fb;
  border: 1px solid #dbe3ea;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.formulaire_spip fieldset {
margin: 0 0 24px;
  padding: 20px;
  border: 1px solid #d6e0e8;
  border-radius: 8px;
  background: #fff;
}

.formulaire_spip legend {
padding: 0 8px;
  color: #0b2b4c;
  font-size: 1.2rem;
  font-weight: 700;
}

.formulaire_spip p,
.formulaire_spip .editer {
margin: 0 0 18px;
}

.formulaire_spip label {
display: block;
  margin-bottom: 7px;
  color: #26384a;
  font-weight: 600;
}

.formulaire_spip input[type="text"],
.formulaire_spip input[type="email"],
.formulaire_spip input[type="tel"],
.formulaire_spip input[type="date"],
.formulaire_spip select,
.formulaire_spip textarea {
width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid #bdcbd6;
  border-radius: 6px;
  background: #fff;
  color: #26384a;
  font: inherit;
}

.formulaire_spip input:focus,
.formulaire_spip select:focus,
.formulaire_spip textarea:focus {
outline: 3px solid rgba(32, 117, 171, .2);
  border-color: #2075ab;
}

.formulaire_spip input[type="checkbox"],
.formulaire_spip input[type="radio"] {
width: auto;
  margin-right: 8px;
}

.formulaire_spip .choix {
display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
}

.formulaire_spip .boutons {
margin-top: 25px;
  text-align: right;
}

.formulaire_spip input[type="submit"],
.formulaire_spip button {
padding: 12px 22px;
  border: 0;
  border-radius: 6px;
  background: #0b2b4c;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.formulaire_spip input[type="submit"]:hover,
.formulaire_spip button:hover {
background: #174f78;
}

.formulaire_spip .erreur_message {
margin-top: 6px;
  color: #b42318;
  font-size: .9rem;
}

.formulaire_spip .obligatoire {
color: #b42318;
}

.formulaire_spip .reponse_formulaire {
padding: 14px;
  border-radius: 6px;
  background: #e8f5ec;
  color: #216e39;
}

.article-content {
line-height: 1.7;
}

.article-content h2,
.article-content h3 {
margin-top: 2rem;
  color: #0b2b4c;
}

.article-content ul,
.article-content ol {
padding-left: 1.5rem;
}

.article-content a {
color: #1769aa;
  text-decoration: underline;
}

.formulaire_spip__etapes {
position: relative;
  margin: 0 auto 28px;
  padding: 14px 20px;
  max-width: 900px;
  border-radius: 8px;
  background: #e8f0f6;
  color: #0b2b4c;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  box-sizing: border-box;
}

.formulaire_spip__etapes--courante {
background: #0b2b4c;
  color: #fff;
  box-shadow: 0 4px 12px rgba(11, 43, 76, .18);
}

.formulaire_spip_etape__courante,
.formulaire_spip_etape__total {
display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  margin: 0 4px;
  border-radius: 50%;
  font-weight: 700;
}

.formulaire_spip_etape__courante {
background: #fff;
  color: #0b2b4c;
}

.formulaire_spip_etape__total {
background: rgba(255, 255, 255, .2);
  color: #fff;
}

.formulaire_spip__etapes::after {
content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 3px;
  background: #5aa6d6;
}

@media (max-width: 600px) {
.formulaire_spip__etapes {
    margin: 0 12px 22px;
    padding: 12px 10px;
    font-size: .9rem;
  }

  .formulaire_spip_etape__courante,
  .formulaire_spip_etape__total {
    min-width: 24px;
    height: 24px;
    font-size: .85rem;
  }
}

.article-content {
max-width: 950px;
  margin: 0 auto;
  color: #26384a;
  line-height: 1.7;
}

.article-content > p:first-of-type {
color: #1769aa;
  font-size: 1.15rem;
  font-weight: 700;
}

.article-content strong {
color: #0b2b4c;
}

.article-content table {
width: 100%;
  margin: 25px 0;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #d5e0e8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}

.article-content th,
.article-content td {
padding: 13px 16px;
  border: 1px solid #d5e0e8;
  text-align: left;
}

.article-content th {
background: #0b2b4c;
  color: #fff;
  font-weight: 700;
}

.article-content tr:nth-child(even) td {
background: #f3f7fa;
}

.article-content a {
color: #1769aa;
  font-weight: 600;
  text-decoration: underline;
}

.article-content a:hover {
color: #0b2b4c;
}

.article-content .documents,
.article-content .liste-items {
margin: 25px 0;
  padding: 0;
  list-style: none;
}

.article-content .documents li,
.article-content .liste-items li {
margin: 10px 0;
  padding: 14px 18px;
  border-left: 5px solid #2075ab;
  border-radius: 6px;
  background: #f1f6f9;
}

@media (max-width: 600px) {
.article-content {
    padding: 0 15px;
  }

  .article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .article-content th,
  .article-content td {
    padding: 10px 12px;
  }
}

.article-content .texte,
.article-content .chapo {
margin-bottom: 25px;
}

.article-content h2 {
margin-top: 30px;
  padding-bottom: 8px;
  border-bottom: 2px solid #dbe6ed;
  color: #0b2b4c;
}

.article-content .spip_documents,
.article-content .documents {
display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.article-content .spip_documents li,
.article-content .documents li {
display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 10px 15px;
  box-sizing: border-box;
}

.article-content .spip_documents img,
.article-content .documents img {
display: block;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin: 0;
}

.article-content .spip_documents a,
.article-content .documents a {
display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  line-height: 1.4;
}

.spip_doc_titre {
display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}

.spip_doc_titre img {
width: 32px;
  height: 32px;
  object-fit: contain;
  vertical-align: middle;
}

@media (max-width: 600px) {
.spip_documents li,
  .documents li {
    align-items: flex-start;
  }

  .spip_documents img,
  .documents img {
    width: 28px;
    height: 28px;
  }
}

.article-content h1,
.article-content h2,
.article-content h3 {
color: #0b2b4c;
}

.article-content h2 {
margin-top: 30px;
  padding-bottom: 8px;
  border-bottom: 2px solid #dbe6ed;
}

.article-content table {
width: 100%;
  margin: 20px 0 30px;
  border-collapse: collapse;
  border: 1px solid #d5e0e8;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .06);
}

.article-content th,
.article-content td {
padding: 12px 16px;
  border: 1px solid #d5e0e8;
  text-align: left;
  vertical-align: middle;
}

.article-content a {
color: #1769aa;
  font-weight: 600;
}

@media (max-width: 600px) {
.article-content {
    padding: 0 15px;
  }

  .article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .article-content th,
  .article-content td {
    padding: 10px 12px;
    font-size: .9rem;
  }
}

.breadcrumbs {
display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: #dce8f1;
  font-size: .9rem;
}

.breadcrumbs a {
color: #fff;
  text-decoration: none;
}

.breadcrumbs a:hover {
text-decoration: underline;
}

.breadcrumbs span[aria-hidden="true"] {
color: #9fc1d8;
  font-size: 1.1em;
}

.breadcrumb-current {
color: #fff;
  font-weight: 600;
}

@media (max-width: 600px) {
.breadcrumbs {
    font-size: .82rem;
    gap: 5px;
  }
}

.planning-reservation {
margin: 35px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fafc;
  box-shadow: 0 8px 20px rgba(11, 36, 69, .08);
}

.planning-reservation h2 {
margin-top: 0;
  color: var(--navy);
  font-size: 1.5rem;
}

.connexion-bouton {
border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.connexion-wrapper {
position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.infos-connect {
position: absolute;
  z-index: 1000;
  top: 100%; 
  right: 0;
  width: 260px;
  padding: 16px;
  color: var(--navy);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(11, 36, 69, .2);
  display: none;
}

.connexion-wrapper:hover .infos-connect,
.connexion-wrapper:focus-within .infos-connect {
display: block;
}

.auteurenligne {
margin: 6px 0 14px;
  color: var(--blue);
  font-weight: 700;
}

.article-logo {
margin: 0 0 28px;
  text-align: center;
}

.article-logo a {
display: inline-block;
}

.article-logo img {
display: block;
  max-width: 100%;
  height: auto;
  max-height: 620px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(11, 36, 69, .14);
  cursor: zoom-in;
  transition: transform .2s ease, box-shadow .2s ease;
}

.article-logo a:hover img {
transform: scale(1.015);
  box-shadow: 0 10px 25px rgba(11, 36, 69, .22);
}

.accessibilite {
padding: 20px;
	   border: 1px solid #dbe5ee;
	   border-radius: 14px;
	   background: #fff;
	   box-shadow: 0 6px 18px rgba(11, 36, 69, .08);
}

.accessibilite h2,
	 .rubrique-sidebar h2 {
margin-top: 0;
	   color: var(--navy);
	   font-size: 1.2rem;
}

.accessibilite-boutons {
display: grid;
	   grid-template-columns: 1fr 1fr;
	   gap: 8px;
}

.accessibilite-boutons button {
min-height: 42px;
	   padding: 9px 8px;
	   border: 1px solid #aec8dc;
	   border-radius: 8px;
	   background: #f7fafc;
	   color: var(--navy);
	   font: inherit;
	   font-weight: 700;
	   cursor: pointer;
}

.accessibilite-boutons button:hover {
background: #e8f2f8;
}

#lire-article {
border-color: var(--navy);
	   background: var(--navy);
	   color: #fff;
}

#arreter-lecture {
border-color: #e48c8c;
	   color: #b42318;
	   background: #fff;
}

.rubrique-sidebar {
margin-top: 26px;
	     padding: 22px;
	     border-radius: 14px;
	     background: #eef6fb;
}

.rubrique-sidebar a {
color: var(--navy);
	   text-decoration: none;
	   font-size: 1rem;
}

.rubrique-sidebar a:hover {
text-decoration: underline;
}

.rubrique-sidebar p {
margin-bottom: 0;
}

@media (max-width: 900px) {
.accessibilite-boutons {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
.accessibilite-boutons {
    grid-template-columns: repeat(2, 1fr);
  }
}

.article-text .mot-lu {
background: #ffe27a;
  color: #000;
  border-radius: 3px;
  padding: 1px 3px;
  box-shadow: 0 0 0 2px #ffe27a;
}

/* Source de première occurrence : rubrique.html */
.sidebar {
padding: 22px; border-radius: 14px; background: #eef6fb;
}

.rubrique-content {
display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 700px) {
.rubrique-content {
    grid-template-columns: 1fr;
  }
}

.rubrique-content .content-card {
color: var(--ink);
  text-decoration: none;
}

.rubrique-content .content-card img {
width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.card-logo {
display: block;
  width: 100%;
  height: 150px;
  object-fit: contain;
  object-position: center;
  margin: 0 0 12px;
  border-radius: 10px;
  background: #fff;
}

.rubrique-content {
display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.rubrique-content .menu-card {
min-height: 150px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, #0879bd, #0b2445);
  box-shadow: 0 6px 16px rgba(11, 36, 69, .15);
}

.rubrique-content .menu-card::before {
content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 25%, rgba(0,0,0,.75));
}

.rubrique-content .menu-card > * {
position: relative;
  z-index: 1;
}

.rubrique-content .nv_ti {
font-size: 1rem;
  font-weight: 700;
}

.rubrique-content .nv_tx2 {
display: block;
  margin-top: 5px;
  font-size: .8rem;
}

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

@media (max-width: 600px) {
.rubrique-content {
    grid-template-columns: 1fr;
  }
}

/* Source de première occurrence : sommaire.html */
@media (max-width: 768px) {
.page-hero {
        height: 500px; 
        min-height: 500px;
    }

    .page-hero video,
    .page-hero iframe {
        width: 100%;
        height: 100%;
        margin-top: -80px;
        object-fit: cover;
    }
}

.services-section {
background: #f5f8fb;
}

.services-grid {
display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
position: relative;
  min-height: 170px;
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(11, 36, 69, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover {
transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(11, 36, 69, .14);
}

.service-card h3 {
margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.2;
}

.service-status {
display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
}

.service-status::before {
content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.service-status.open {
color: #19733d;
  background: #e4f6eb;
}

.service-status.closed {
color: #a33636;
  background: #fdeaea;
}

.service-status.unknown {
color: #687789;
  background: #edf1f5;
}

.service-hours {
margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.5;
}

.service-phone {
display: block;
  margin-top: 12px;
  color: var(--blue);
  font-size: .85rem;
  font-weight: 700;
}

.services-loading,
.services-error {
grid-column: 1 / -1;
  padding: 25px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

.services-updated {
margin: 18px 0 0;
  color: var(--muted);
  font-size: .75rem;
  text-align: right;
}

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

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

.service-link {
display: inline-block;
  margin-top: 14px;
  padding: 9px 14px;
  border-radius: 6px;
  background: var(--blue);
  color: white;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.service-link:hover {
background: var(--blue-dark, #164f83);
}

.leaflet-container {
width: 100% !important;
    height: 400px !important;
    overflow: hidden !important;
}

.map-box {
position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.points-interet .leaflet-container,
.map-box .leaflet-container {
width: 100%;
    height: 400px;
}

.points-interet .leaflet-container img,
.map-box .leaflet-container img {
max-width: none;
    max-height: none;
}

.points-interet .leaflet-pane,
.points-interet .leaflet-map-pane,
.points-interet .leaflet-tile-container,
.map-box .leaflet-pane,
.map-box .leaflet-map-pane,
.map-box .leaflet-tile-container {
position: absolute;
}

.map-box .leaflet-container {
width: 100% !important;
    height: 100% !important;
}

img:not(.leaflet-tile) {
max-width: 100%;
    height: auto;
}

.topbtn {
display: inline-block;
  padding: 7px 12px;
  color: #fff;
  background: var(--blue);
  border-radius: 6px;
}

@media screen and (max-width: 768px) {
input[type="checkbox"] {
        appearance: auto !important;
        -webkit-appearance: checkbox !important;
        width: 22px !important;
        height: 22px !important;
    }
}

/* Source de première occurrence : sommaire(1).html */
.kiosque-section {
padding: 45px 0;
  overflow: hidden;
}

.kiosque-container {
max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.kiosque-slider-wrap {
position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.kiosque-slider {
display: flex;
  gap: 18px;
  width: 100%;
  overflow: hidden;
  padding: 10px 4px 18px;
  scroll-behavior: smooth;
}

.kiosque-slide {
flex: 0 0 190px;
}

.kiosque-card {
display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #0b2445;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .15);
  transition: transform .2s ease;
}

.kiosque-card:hover {
transform: translateY(-4px);
}

.kiosque-cover {
display: flex;
  align-items: center;
  justify-content: center;
  height: 270px;
  overflow: hidden;
  background: #f1f1f1;
}

.kiosque-cover img {
display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kiosque-pdf-icon {
display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 88px;
  border-radius: 6px;
  background: #fff;
  color: #d52b2b;
  font-weight: 800;
  box-shadow: 0 5px 12px rgba(0, 0, 0, .2);
}

.kiosque-card-title {
position: static;
  display: block;
  min-height: 48px;
  padding: 12px;
  background: #fff;
  color: #0b2445;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.25;
}

.kiosque-arrow {
position: relative;
  z-index: 2;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #071a33;
  color: #fff;
  font-size: 28px;
  line-height: 32px;
  cursor: pointer;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .25);
  transition: background .2s ease, transform .2s ease;
}

.kiosque-arrow:hover {
background: #08345d;
  transform: scale(1.08);
}

.kiosque-card-description {
display: block;
  padding: 0 12px 12px;
  background: #fff;
  color: #666;
  font-size: .8rem;
  line-height: 1.35;
  text-align: left;
}

@media (max-width: 768px) {
.kiosque-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .kiosque-slide {
    flex-basis: 155px;
  }

  .kiosque-cover {
    height: 215px;
  }

  .kiosque-arrow {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    font-size: 24px;
    line-height: 27px;
  }
}

.pdf-mediabox {
position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pdf-mediabox.is-open {
display: flex;
}

.pdf-mediabox-overlay {
position: absolute;
  inset: 0;
  background: rgba(3, 18, 36, .86);
  cursor: pointer;
}

.pdf-mediabox-content {
position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1100px, 100%);
  height: min(92vh, 900px);
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .45);
}

.pdf-mediabox-header {
display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 58px;
  padding: 10px 16px;
  background: var(--blue, #0b477b);
  color: #fff;
}

.pdf-mediabox-header h2 {
margin: 0;
  font-size: 1rem;
}

.pdf-mediabox-close {
width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.pdf-mediabox-close:hover {
background: rgba(255, 255, 255, .32);
}

.pdf-mediabox-body {
flex: 1;
  min-height: 0;
  background: #e9eef2;
}

.pdf-mediabox-body iframe {
display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.pdf-mediabox-footer {
padding: 10px 16px;
  background: #f4f7fa;
  text-align: right;
}

.pdf-download {
color: var(--blue, #0b477b);
  font-size: .85rem;
  font-weight: 700;
}

body.pdf-mediabox-open {
overflow: hidden;
}

@media (max-width: 600px) {
.kiosque-section {
    padding: 35px 0;
  }

  .kiosque-slide {
    flex-basis: 155px;
  }

  .kiosque-cover {
    min-height: 190px;
  }

  .kiosque-arrow {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .pdf-mediabox {
    padding: 8px;
  }

  .pdf-mediabox-content {
    height: 94vh;
    border-radius: 8px;
  }
}

/* Source de première occurrence : sommaire(2).html */
.kiosque-slider-wrap {
position: relative;
  display: block;
}

.kiosque-slider {
display: flex;
  gap: 18px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  padding: 10px 4px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) #e8eef3;
}

.kiosque-slider::-webkit-scrollbar {
height: 8px;
}

.kiosque-slider::-webkit-scrollbar-track {
background: #e8eef3;
  border-radius: 20px;
}

.kiosque-slider::-webkit-scrollbar-thumb {
background: var(--blue);
  border-radius: 20px;
}

.kiosque-slide {
flex: 0 0 190px;
  scroll-snap-align: start;
}

.kiosque-slider-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kiosque-arrow {
display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #071a33;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

@media (max-width: 768px) {
.kiosque-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .kiosque-slide {
    flex-basis: 155px;
  }

  .kiosque-cover {
    height: 215px;
  }

  .kiosque-arrow {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    font-size: 14px;
    line-height: 1;
  }
}

@media (max-width: 600px) {
.kiosque-section {
    padding: 35px 0;
  }

  .kiosque-slide {
    flex-basis: 155px;
  }

  .kiosque-cover {
    min-height: 190px;
  }


  .pdf-mediabox {
    padding: 8px;
  }

  .pdf-mediabox-content {
    height: 94vh;
    border-radius: 8px;
  }
}

.infos-login {
width: 290px;
  padding: 18px;
  color: var(--navy);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(11, 36, 69, .20);
}

.infos-login h3 {
margin: 0 0 14px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
}

.infos-login .formulaire_login {
margin: 0;
}

.infos-login label {
display: block;
  margin: 0 0 5px;
  color: var(--navy);
  font-size: .78rem;
  font-weight: 700;
}

.infos-login input[type="text"],
.infos-login input[type="password"] {
width: 100%;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 9px 11px;
  border: 1px solid #d5e0ea;
  border-radius: 6px;
  color: var(--navy);
  background: #fff;
  font: inherit;
}

.infos-login input:focus {
outline: 2px solid rgba(12, 157, 194, .25);
  border-color: var(--blue);
}

.infos-login input[type="submit"] {
width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: .2s ease;
}

.infos-login input[type="submit"]:hover {
background: var(--navy);
  transform: translateY(-1px);
}

.infos-login a {
display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}

.infos-login a:hover {
color: var(--navy);
  text-decoration: underline;
}
/* Flèches identiques : Kiosque et Cinéma */
.kiosque-arrow,
.cinema-button {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  max-width: 42px;
  max-height: 42px;

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

  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  box-sizing: border-box;
  cursor: pointer;
}

.kiosque-arrow:hover,
.cinema-button:hover {
  background: var(--blue);
  transform: scale(1.06);
}

/* Masquer la connexion sur mobile */
@media (max-width: 680px) {
  .connexion-wrapper {
    display: none !important;
  }
}








.page-hero .section-inner {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}



.page-hero-bg {
  position: absolute;
  inset: -30px;
  z-index: 0;

  background-image:
    radial-gradient(
      circle at 18% 25%,
      rgba(19, 169, 201, .38),
      transparent 30%
    ),
    radial-gradient(
      circle at 82% 70%,
      rgba(246, 189, 59, .22),
      transparent 28%
    ),
    linear-gradient(
      110deg,
      rgba(7, 26, 51, .9),
      rgba(11, 43, 76, .68),
      rgba(7, 26, 51, .9)
    ),
    var(--hero-image);

  background-size: cover;
  background-position: center;
  filter: blur(5px) brightness(.92);
  transform: scale(1.1);
}