/*
 * COMMUNE VIVANTE — Proposition graphique Manziat / DataMaires
 * Toutes les règles sont limitées à .commune-theme.
 * Ajouter cette classe au body (ou au conteneur de page), puis appliquer
 * les classes dm-* de index.html aux composants existants.
 * Aucune police externe, aucune dépendance CSS ou JavaScript.
 */
.commune-theme {
  --dm-ink: #28243e;
  --dm-muted: #696479;
  --dm-paper: #fffefa;
  --dm-cream: #f7f4fb;
  --dm-primary: #6841cf;
  --dm-primary-dark: #5231ad;
  --dm-primary-light: #ede7fb;
  --dm-yellow: #ffda51;
  --dm-coral: #ee826d;
  --dm-line: #e7e3ed;
  --dm-radius: 22px;
  --dm-width: 1240px;
  --dm-shadow: 0 12px 32px rgb(62 39 102 / 7%);
  --dm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  margin: 0;
  background: var(--dm-paper);
  color: var(--dm-ink);
  font-family: var(--dm-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color-scheme: light;
}
.commune-theme *, .commune-theme *::before, .commune-theme *::after { box-sizing: border-box; }
.commune-theme [hidden] { display: none !important; }
.commune-theme h1, .commune-theme h2, .commune-theme h3, .commune-theme p { margin: 0; }
.commune-theme a { color: inherit; text-decoration: none; }
.commune-theme button, .commune-theme input { font: inherit; }
.commune-theme button { color: inherit; cursor: pointer; }
.commune-theme img { display: block; max-width: 100%; }
.commune-theme button, .commune-theme a { -webkit-tap-highlight-color: transparent; }
.commune-theme :focus-visible { outline: 3px solid #244bc8; outline-offset: 5px; }
.commune-theme ::selection { background: var(--dm-yellow); color: var(--dm-ink); }
.commune-theme .dm-icon { display: inline-block; flex-shrink: 0; width: 24px; height: 24px; vertical-align: middle; }
.commune-theme .dm-wrap { width: min(calc(100% - 80px), var(--dm-width)); margin-inline: auto; }
.commune-theme .dm-skip { position: fixed; top: -100px; left: 20px; z-index: 100; background: white; padding: 14px 22px; border-radius: 8px; }
.commune-theme .dm-skip:focus { top: 10px; }
.commune-theme :is(#accueil, #mairie, #contact, #horaires) { scroll-margin-top: 24px; }

/* 1. Bandeau et navigation */
.commune-theme .dm-demo { background: #f0edf7; color: #655f76; font-size: 11px; }
.commune-theme .dm-demo .dm-wrap { min-height: 32px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.commune-theme .dm-demo strong { font-weight: 750; }
.commune-theme .dm-demo-sep { padding-inline: 10px; color: #9c93ad; }
.commune-theme .dm-demo-tag { font-size: 10px; letter-spacing: .035em; }
.commune-theme .dm-header { background: var(--dm-paper); border-bottom: 1px solid var(--dm-line); }
.commune-theme .dm-header-inner { min-height: 93px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.commune-theme .dm-brand { display: inline-flex; align-items: center; gap: 13px; flex-shrink: 0; }
.commune-theme .dm-brand img { width: 42px; height: 46px; object-fit: contain; mix-blend-mode: multiply; }
.commune-theme .dm-brand strong { display: block; font-size: 31px; font-weight: 800; letter-spacing: -1.4px; line-height: 1.1; }
.commune-theme .dm-brand-dot { color: var(--dm-primary); }
.commune-theme .dm-brand small { display: block; margin-top: 4px; font-size: 10px; letter-spacing: .025em; color: var(--dm-muted); }
.commune-theme .dm-nav { display: flex; align-items: center; gap: 27px; }
.commune-theme .dm-nav > a, .commune-theme .dm-nav > button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; padding: 0; background: none; font-size: 13px; font-weight: 650; white-space: nowrap; }
.commune-theme .dm-nav > :is(a, button):hover { color: var(--dm-primary); }
.commune-theme .dm-nav > .dm-nav-contact { background: var(--dm-yellow); padding: 12px 20px; border-radius: 50px; color: var(--dm-ink); transition: background .2s; }
.commune-theme .dm-nav-contact .dm-icon { width: 17px; height: 17px; }
.commune-theme .dm-nav > .dm-nav-contact:hover { background: #f7cc37; }
.commune-theme .dm-menu-button { display: none; align-items: center; justify-content: center; min-height: 44px; gap: 8px; padding: 10px 14px; background: white; border: 1px solid var(--dm-line); border-radius: 12px; font-weight: 650; }

/* 2. Accueil : typographie éditoriale et photographie */
.commune-theme .dm-hero { overflow: hidden; background: var(--dm-cream); position: relative; }
.commune-theme .dm-hero-grid { display: grid; grid-template-columns: 1.03fr 1fr; align-items: center; gap: 54px; padding-block: 43px 53px; }
.commune-theme .dm-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.commune-theme .dm-eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dm-coral); box-shadow: 0 0 0 5px #fae5db; margin-right: 4px; }
.commune-theme .dm-hero h1 { margin-top: 19px; font-size: clamp(42px, 4.55vw, 65px); font-weight: 780; line-height: 1.035; letter-spacing: -.055em; }
.commune-theme .dm-hero h1 > span { color: var(--dm-primary); }
.commune-theme .dm-title-break { display: none; }
.commune-theme .dm-hero-copy > p { margin-top: 23px; color: var(--dm-muted); font-size: 15px; line-height: 1.75; }
.commune-theme .dm-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.commune-theme .dm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border: 1px solid transparent; border-radius: 14px; padding: 11px 19px; font-size: 13px; font-weight: 700; line-height: 1.25; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.commune-theme .dm-btn--primary { background: var(--dm-primary); color: white; box-shadow: 0 5px 0 #e3daf4; }
.commune-theme .dm-btn--secondary { background: #fffdf5; border-color: #e3ddea; color: var(--dm-ink); }
.commune-theme .dm-btn--secondary > .dm-icon { width: 18px; height: 18px; color: var(--dm-primary); }
.commune-theme .dm-button-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #ffffff20; margin-right: -7px; margin-block: -2px; }
.commune-theme .dm-button-icon .dm-icon { width: 17px; height: 17px; }
.commune-theme .dm-btn--primary:hover { background: var(--dm-primary-dark); transform: translateY(-2px); box-shadow: 0 7px 0 #e3daf4; }
.commune-theme .dm-btn--secondary:hover { background: white; transform: translateY(-2px); box-shadow: var(--dm-shadow); }
.commune-theme .dm-hero-visual { position: relative; margin-top: 10px; min-width: 0; isolation: isolate; }
.commune-theme .dm-visual-back { position: absolute; inset: 18px -13px -12px 13px; background: #ffdd6e; border-radius: 175px 175px 34px 34px; transform: rotate(3deg); z-index: -1; }
.commune-theme .dm-hero-photo { width: 100%; height: auto; filter: saturate(1.025); }
.commune-theme .dm-flower-sticker { position: absolute; top: -24px; right: 0; display: grid; place-items: center; width: 82px; height: 82px; color: var(--dm-coral); transform: rotate(12deg); }
.commune-theme .dm-flower-sticker .dm-icon { width: 76px; height: 76px; stroke-width: 1.1; fill: #f7f4fb; }
.commune-theme .dm-photo-note { position: absolute; left: -26px; bottom: -23px; display: flex; align-items: center; gap: 12px; padding: 14px 21px 14px 13px; background: #fffefb; border: 1px solid #eee8f3; border-radius: 17px; box-shadow: 0 12px 28px #213f3515; transform: rotate(-3deg); font-size: 14px; font-weight: 740; }
.commune-theme .dm-photo-note-icon { display: grid; place-items: center; width: 43px; height: 43px; background: #eee7fc; color: var(--dm-primary); border-radius: 13px; }
.commune-theme .dm-photo-note-icon .dm-icon { width: 23px; height: 23px; }
.commune-theme .dm-photo-note small { display: block; color: var(--dm-muted); font-size: 11px; margin-top: 1px; font-weight: 400; }

/* 3. Six rubriques : palettes cohérentes, vrais SVG et relief au survol */
.commune-theme .dm-shortcuts { padding-block: 31px 17px; }
.commune-theme .dm-section-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.commune-theme .dm-section-header h2 { font-size: clamp(23px, 2.1vw, 28px); letter-spacing: -.035em; line-height: 1.25; font-weight: 740; }
.commune-theme .dm-shortcuts h2 > span { color: var(--dm-primary); }
.commune-theme .dm-section-aside { color: var(--dm-muted); font-size: 12px; padding-bottom: 3px; }
.commune-theme .dm-services { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; }
.commune-theme .dm-service { --card-color: #235bc9; --card-tint: #edf3ff; position: relative; isolation: isolate; display: flex; flex-direction: column; text-align: left; min-width: 0; padding: 19px 16px 18px; border: 1px solid transparent; border-bottom: 3px solid var(--card-color); border-radius: 18px; background: var(--card-tint); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.commune-theme .dm-service--pink { --card-color: #bd2e72; --card-tint: #ffedf4; }
.commune-theme .dm-service--teal { --card-color: #067e73; --card-tint: #e7f5ef; }
.commune-theme .dm-service--purple { --card-color: #7543c1; --card-tint: #f0ebff; }
.commune-theme .dm-service--orange { --card-color: #bb511d; --card-tint: #fff1df; }
.commune-theme .dm-service--navy { --card-color: #364e79; --card-tint: #eef1f9; }
.commune-theme .dm-service-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.commune-theme .dm-service-icon { display: grid; place-items: center; width: 57px; height: 57px; border-radius: 18px 18px 18px 7px; background: var(--card-color); color: white; transform: rotate(-5deg); box-shadow: 4px 5px 0 #ffffffb0; transition: transform .22s ease, border-radius .22s ease; }
.commune-theme .dm-service-icon .dm-icon { width: 32px; height: 32px; stroke-width: 1.6; }
.commune-theme .dm-service-arrow { color: var(--card-color); width: 17px; height: 17px; margin-top: 3px; transition: transform .22s; }
.commune-theme .dm-service-title { display: block; font-size: 14px; font-weight: 780; letter-spacing: -.025em; line-height: 1.4; }
.commune-theme .dm-service-desc { margin-top: 5px; font-size: 11px; color: #66616e; line-height: 1.4; }
@media (hover: hover) {
  .commune-theme .dm-service:hover { transform: translateY(-6px); border-color: var(--card-color); box-shadow: 0 14px 22px rgb(62 39 102 / 9%); }
  .commune-theme .dm-service:hover .dm-service-icon { transform: rotate(0deg); border-radius: 18px; }
  .commune-theme .dm-service:hover .dm-service-arrow { transform: translate(2px, -2px); }
}
.commune-theme .dm-service:active { transform: translateY(-1px); }

/* 4. Contacts et horaires : informations immédiatement repérables */
.commune-theme .dm-townhall { padding-block: 24px 48px; }
.commune-theme .dm-overline { display: block; margin-bottom: 9px; color: var(--dm-primary); font-size: 10px; letter-spacing: .16em; font-weight: 800; }
.commune-theme .dm-text-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 12px; font-weight: 650; color: var(--dm-primary); }
.commune-theme .dm-text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.commune-theme .dm-text-link .dm-icon { width: 18px; height: 18px; }
/* 5. Pied de page et fenêtres de démonstration */
.commune-theme .dm-footer { border-top: 1px solid var(--dm-line); background: #f3f0f7; }
.commune-theme .dm-footer .dm-wrap { min-height: 90px; display: flex; align-items: center; gap: 21px; }
.commune-theme .dm-footer-brand { font-size: 26px; font-weight: 800; letter-spacing: -1.3px; }
.commune-theme .dm-footer-brand > span { color: var(--dm-primary); }
.commune-theme .dm-footer p { font-size: 12px; color: var(--dm-muted); }
.commune-theme .dm-footer-note { margin-left: auto; font-size: 10px; color: var(--dm-muted); }
.commune-theme .dm-footer a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #e1dae9; display: grid; place-items: center; color: var(--dm-primary); background: white; }
.commune-theme .dm-footer a .dm-icon { transform: rotate(-45deg); width: 18px; height: 18px; }
.commune-theme .dm-dialog { max-width: 540px; width: calc(100% - 32px); max-height: calc(100dvh - 32px); overflow: auto; border: 1px solid var(--dm-line); border-radius: 24px; background: var(--dm-paper); color: var(--dm-ink); padding: 28px; box-shadow: 0 30px 100px #28243e33; }
.commune-theme .dm-dialog::backdrop { background: #231a36cc; backdrop-filter: blur(4px); }
.commune-theme .dm-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.commune-theme .dm-dialog-header .dm-overline { margin: 0; }
.commune-theme .dm-close { min-width: 44px; min-height: 44px; display: grid; place-items: center; border: 1px solid var(--dm-line); border-radius: 50%; background: white; }
.commune-theme .dm-dialog h2 { font-size: 31px; letter-spacing: -.04em; margin-top: 15px; }
.commune-theme .dm-dialog-intro { font-size: 14px; margin-top: 9px; color: var(--dm-muted); }
.commune-theme .dm-dialog-items { margin-top: 23px; display: grid; gap: 10px; }
.commune-theme .dm-dialog-item { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 15px 17px; background: #f0edf7; border-radius: 12px; font-size: 14px; font-weight: 600; }
.commune-theme .dm-dialog-item small { font-size: 10px; color: var(--dm-muted); white-space: nowrap; font-weight: 400; }
.commune-theme .dm-dialog-note { font-size: 12px; color: var(--dm-muted); margin: 19px 0 22px; }
.commune-theme .dm-noscript { margin: 20px; padding: 20px; background: var(--dm-yellow); border-radius: 14px; }

/* 6. Tablette puis mobile ; aucune dépendance à un framework */
@media (min-width: 1350px) {
  .commune-theme .dm-title-break { display: block; }
  .commune-theme .dm-hero-grid { padding-block: 36px 45px; }
}
@media (max-width: 1100px) {
  .commune-theme .dm-nav { gap: 17px; }
  .commune-theme .dm-hero-grid { gap: 30px; }
  .commune-theme .dm-hero h1 { font-size: clamp(38px, 4.9vw, 53px); }
  .commune-theme .dm-services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .commune-theme .dm-service { padding: 19px 20px; }
  .commune-theme .dm-service-title { font-size: 16px; }
  .commune-theme .dm-service-desc { font-size: 12px; }
  .commune-theme .dm-townhall-grid { grid-template-columns: 1fr; }
  .commune-theme .dm-hours > div { grid-template-columns: 1fr 1fr; }
  .commune-theme .dm-photo-note { left: -10px; padding: 11px; }
  .commune-theme .dm-section-aside { display: none; }
}
@media (max-width: 780px) {
  .commune-theme .dm-wrap { width: calc(100% - 40px); }
  .commune-theme .dm-header-inner { min-height: 83px; flex-wrap: wrap; gap: 0; padding-block: 15px; }
  .commune-theme .dm-brand strong { font-size: 28px; }
  .commune-theme .dm-nav { width: 100%; flex-wrap: wrap; gap: 12px 24px; padding-top: 18px; }
  .commune-theme.dm-js .dm-menu-button { display: inline-flex; }
  .commune-theme.dm-js .dm-nav { display: none; }
  .commune-theme.dm-js .dm-nav.is-open { display: flex; }
  .commune-theme .dm-hero-grid { grid-template-columns: 1fr; gap: 36px; padding-block: 34px 48px; }
  .commune-theme .dm-hero h1 { font-size: clamp(43px, 8vw, 62px); }
  .commune-theme .dm-hero-copy { max-width: 600px; }
  .commune-theme .dm-hero-copy > p { margin-top: 18px; font-size: 15px; }
  .commune-theme .dm-hero-actions { margin-top: 23px; }
  .commune-theme .dm-hero-visual { width: min(92%, 500px); justify-self: center; margin: 0; }
  .commune-theme .dm-flower-sticker { width: 65px; height: 65px; top: -18px; right: -8px; }
  .commune-theme .dm-flower-sticker .dm-icon { width: 60px; height: 60px; }
  .commune-theme .dm-photo-note { bottom: -20px; }
  .commune-theme .dm-shortcuts { padding-top: 29px; }
  .commune-theme .dm-service { padding: 17px 14px; }
  .commune-theme .dm-service-title { font-size: 14px; }
  .commune-theme .dm-service-desc { font-size: 11px; }
  .commune-theme .dm-service-icon { width: 53px; height: 53px; }
  .commune-theme .dm-townhall { padding-top: 19px; }
  .commune-theme .dm-section-header .dm-text-link { display: none; }
  .commune-theme .dm-footer .dm-wrap { flex-wrap: wrap; gap: 5px 15px; padding-block: 20px; }
  .commune-theme .dm-footer-note { margin-left: 0; width: calc(100% - 65px); }
  .commune-theme .dm-footer a { margin-left: auto; }
}
@media (max-width: 520px) {
  .commune-theme .dm-demo .dm-wrap { min-height: 30px; font-size: 9px; }
  .commune-theme .dm-demo-tag { font-size: 9px; }
  .commune-theme .dm-demo-sep { padding-inline: 4px; }
  .commune-theme .dm-brand small { font-size: 9px; }
  .commune-theme .dm-hero h1 { font-size: clamp(39px, 10.8vw, 53px); }
  .commune-theme .dm-hero-copy > p { font-size: 14px; }
  .commune-theme .dm-desktop-break { display: none; }
  .commune-theme .dm-eyebrow { font-size: 10px; }
  .commune-theme .dm-hero-actions { gap: 10px; }
  .commune-theme .dm-btn { font-size: 12px; padding: 11px 13px; gap: 7px; min-height: 49px; }
  .commune-theme .dm-hero-visual { width: 94%; }
  .commune-theme .dm-visual-back { inset: 10px -7px -7px 7px; }
  .commune-theme .dm-photo-note { font-size: 12px; gap: 9px; }
  .commune-theme .dm-photo-note small { font-size: 10px; }
  .commune-theme .dm-photo-note-icon { width: 37px; height: 37px; }
  .commune-theme .dm-services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .commune-theme .dm-service { padding: 17px 16px; }
  .commune-theme .dm-service-top { margin-bottom: 14px; }
  .commune-theme .dm-contact-card, .commune-theme .dm-hours-card { padding: 23px 20px; }
  .commune-theme .dm-contact-card h3 { font-size: 27px; }
  .commune-theme .dm-contact-actions { grid-template-columns: 1fr; }
  .commune-theme .dm-contact-actions a { font-size: 14px; }
  .commune-theme .dm-hours-heading { gap: 11px; }
  .commune-theme .dm-hours-heading h3 { font-size: 18px; }
  .commune-theme .dm-hours-symbol { width: 40px; height: 40px; flex-shrink: 0; }
  .commune-theme .dm-hours > div { grid-template-columns: 1fr 1.1fr; }
  .commune-theme .dm-hours-note { align-items: flex-start; line-height: 1.6; }
  .commune-theme .dm-hours-note .dm-icon { margin-top: 2px; }
  .commune-theme .dm-footer p { font-size: 11px; }
  .commune-theme .dm-dialog { padding: 22px; }
  .commune-theme .dm-dialog-item { flex-wrap: wrap; gap: 4px; }
}
@media (max-width: 350px) {
  .commune-theme .dm-demo-tag { display: none; }
  .commune-theme .dm-wrap { width: calc(100% - 28px); }
  .commune-theme .dm-hero-actions { align-items: stretch; flex-direction: column; }
  .commune-theme .dm-service-title { font-size: 13px; }
}

/* 7. Mouvement réduit, couleurs forcées et impression */
@media (prefers-reduced-motion: reduce) {
  .commune-theme *, .commune-theme *::before, .commune-theme *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .commune-theme .dm-service, .commune-theme .dm-btn, .commune-theme .dm-contact-card, .commune-theme .dm-hours-card { border: 1px solid ButtonText; }
  .commune-theme .dm-service-icon, .commune-theme .dm-contact-symbol { border: 1px solid ButtonText; }
}
@media print {
  .commune-theme .dm-nav, .commune-theme .dm-demo, .commune-theme .dm-menu-button, .commune-theme .dm-hero-actions, .commune-theme .dm-dialog, .commune-theme .dm-footer a { display: none !important; }
  .commune-theme .dm-wrap { width: 100%; }
  .commune-theme .dm-contact-card { background: white; color: black; border: 1px solid #777; }
  .commune-theme .dm-contact-card small, .commune-theme .dm-contact-heading > span:last-child { color: #333; }
  .commune-theme .dm-contact-card, .commune-theme .dm-hours-card { break-inside: avoid; }
}


/* 7. Variante Manziat : même famille graphique, accent violet et trois récits de vie. */
.commune-theme .dm-brand img { width: 44px; height: 50px; }
.commune-theme .dm-hero-grid { grid-template-columns: 1fr 1.08fr; padding-block: 47px 56px; gap: 64px; }
.commune-theme .dm-hero h1 { font-size: clamp(46px, 5.2vw, 74px); letter-spacing: -.055em; line-height: 1.04; }
.commune-theme .dm-hero h1 > span { display: inline-block; position: relative; isolation: isolate; }
.commune-theme .dm-hero h1 > span::after { content: ""; position: absolute; bottom: -4px; left: 3px; right: 4px; height: 10px; background: var(--dm-yellow); border-radius: 75% 40% 70% 40%; transform: rotate(-2deg); z-index: -1; }
.commune-theme .dm-hero-copy > p { max-width: 440px; font-size: 16px; }
.commune-theme .dm-hero-photo { aspect-ratio: 334 / 209; object-fit: cover; border-radius: 90px 28px 90px 28px; }
.commune-theme .dm-visual-back { inset: 14px -12px -12px 14px; border-radius: 90px 30px 90px 30px; transform: rotate(3deg); }
.commune-theme .dm-flower-sticker { top: -24px; right: -10px; color: var(--dm-primary); }
.commune-theme .dm-flower-sticker .dm-icon { fill: var(--dm-cream); }
.commune-theme .dm-photo-note { bottom: -21px; left: -23px; }
.commune-theme .dm-shortcuts { padding-block: 35px 25px; }
.commune-theme .dm-service { min-height: 152px; }
.commune-theme .dm-service-desc { font-size: 12px; }
.commune-theme .dm-section-aside { font-size: 13px; }
.commune-theme .dm-life { padding-block: 27px 48px; }
.commune-theme .dm-life .dm-section-header { margin-bottom: 23px; }
.commune-theme .dm-stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.commune-theme .dm-story { --story-color: #ad2466; --story-tint: #fff0f6; position: relative; min-width: 0; border: 1px solid var(--dm-line); border-radius: 22px; background: white; box-shadow: 0 5px 14px #37205204; transition: transform .22s ease, box-shadow .22s ease; }
.commune-theme .dm-story--teal { --story-color: #087b72; --story-tint: #eaf7f2; }
.commune-theme .dm-story--blue { --story-color: #265ccd; --story-tint: #edf2ff; }
.commune-theme .dm-story-image { overflow: hidden; position: relative; border-radius: 21px 21px 0 0; background: var(--story-tint); }
.commune-theme .dm-story-image img { width: 100%; height: 204px; object-fit: cover; transition: transform .4s ease; }
.commune-theme .dm-story-chip { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; color: var(--story-color); background: #fffdfaf5; border: 1px solid #ffffff90; border-radius: 50px; padding: 6px 11px; font-size: 11px; font-weight: 750; }
.commune-theme .dm-story-chip .dm-icon { width: 15px; height: 15px; }
.commune-theme .dm-story-body { position: relative; padding: 20px 22px 19px; border-top: 3px solid var(--story-color); }
.commune-theme .dm-story-body h3 { font-size: 24px; letter-spacing: -.045em; line-height: 1.2; }
.commune-theme .dm-story-body p { margin-top: 9px; font-size: 14px; color: var(--dm-muted); min-height: 42px; }
.commune-theme .dm-story-link { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; margin-top: 11px; padding: 0; color: var(--story-color); font-size: 13px; font-weight: 750; text-align: left; border: 0; background: none; }
.commune-theme .dm-story-link::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
.commune-theme .dm-story-link > span:last-child { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--story-tint); }
.commune-theme .dm-story-link .dm-icon { width: 19px; height: 19px; }
.commune-theme .dm-story:focus-within { outline: 3px solid var(--story-color); outline-offset: 4px; }
.commune-theme .dm-story-link:focus-visible { outline: none; }
.commune-theme .dm-discover { padding-block: 0 49px; }
.commune-theme .dm-discover-card { display: grid; grid-template-columns: 1fr 1fr; gap: 43px; padding: 27px; border-radius: 28px; background: #f1edf9; border: 1px solid #e8e1f2; align-items: center; }
.commune-theme .dm-discover-picture { position: relative; min-width: 0; }
.commune-theme .dm-discover-picture > img { width: 100%; height: 318px; object-fit: cover; border-radius: 18px 60px 18px 18px; }
.commune-theme .dm-place-label { position: absolute; bottom: 15px; left: 15px; display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 12px; color: var(--dm-ink); background: #fffdf8f2; font-size: 12px; font-weight: 700; }
.commune-theme .dm-place-label .dm-icon { color: var(--dm-primary); width: 18px; height: 18px; }
.commune-theme .dm-discover-copy { padding-right: 14px; }
.commune-theme .dm-discover-copy h2 { font-size: clamp(29px, 2.75vw, 39px); font-weight: 750; letter-spacing: -.045em; line-height: 1.1; }
.commune-theme .dm-discover-copy h2 span { color: var(--dm-primary); }
.commune-theme .dm-discover-copy > p:not(.dm-source-note) { margin-top: 15px; color: var(--dm-muted); font-size: 14px; line-height: 1.7; }
.commune-theme .dm-stats { display: flex; flex-wrap: wrap; gap: 18px; margin: 20px 0; }
.commune-theme .dm-stats > div { display: flex; flex-direction: column; flex: 1; min-width: 88px; padding-left: 13px; border-left: 2px solid #d4c5ee; }
.commune-theme .dm-stats dt { font-size: 11px; color: var(--dm-muted); margin-top: 4px; }
.commune-theme .dm-stats dd { order: -1; margin: 0; font-size: 23px; line-height: 1.2; letter-spacing: -.03em; color: var(--dm-ink); font-weight: 750; }
.commune-theme .dm-source-note { font-size: 10px; color: var(--dm-muted); margin-top: 13px; }
.commune-theme .dm-discover .dm-btn { min-height: 47px; }
.commune-theme .dm-news { padding-bottom: 45px; }
.commune-theme .dm-news .dm-section-header { margin-bottom: 22px; }
.commune-theme .dm-placeholder-tag { display: inline-flex; padding: 5px 9px; color: var(--dm-muted); background: #f2eff6; border: 1px dashed #cfc6de; border-radius: 8px; font-size: 10px; font-weight: 600; }
.commune-theme .dm-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.commune-theme .dm-news-card { --news-color: #6841cf; --news-tint: #f2ecfc; position: relative; border: 1px solid #e4dbee; border-radius: 20px; padding: 24px; background: var(--news-tint); overflow: hidden; }
.commune-theme .dm-news-card:nth-child(2) { --news-color: #087b72; --news-tint: #edf7f2; border-color: #dbe9df; }
.commune-theme .dm-news-card:nth-child(3) { --news-color: #ac5420; --news-tint: #fff4e5; border-color: #efdfc9; }
.commune-theme .dm-news-symbol { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 14px; background: white; color: var(--news-color); margin-bottom: 17px; }
.commune-theme .dm-news-symbol .dm-icon { width: 25px; height: 25px; }
.commune-theme .dm-news-card h3 { font-size: 22px; letter-spacing: -.035em; margin-bottom: 8px; line-height: 1.25; }
.commune-theme .dm-news-card p { max-width: 29ch; font-size: 13px; color: var(--dm-muted); line-height: 1.6; }
.commune-theme .dm-news-card button { display: flex; gap: 8px; align-items: center; min-height: 44px; border: 0; background: none; padding: 0; color: var(--news-color); margin-top: 9px; font-size: 12px; font-weight: 750; }
.commune-theme .dm-news-card button .dm-icon { width: 17px; height: 17px; }
.commune-theme .dm-news-explainer { margin-top: 13px; color: var(--dm-muted); font-size: 11px; }
.commune-theme .dm-contact-band { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 27px 32px; background: var(--dm-primary); border-radius: 23px; color: white; margin-bottom: 44px; }
.commune-theme .dm-contact-band-copy { display: flex; align-items: center; gap: 19px; }
.commune-theme .dm-contact-band-icon { display: grid; place-items: center; width: 55px; height: 55px; border-radius: 17px; flex-shrink: 0; color: var(--dm-yellow); background: #ffffff16; }
.commune-theme .dm-contact-band-icon .dm-icon { width: 30px; height: 30px; }
.commune-theme .dm-contact-band h2 { font-size: 26px; letter-spacing: -.04em; }
.commune-theme .dm-contact-band p { font-size: 13px; margin-top: 4px; color: #f1eafb; }
.commune-theme .dm-contact-band .dm-btn { flex-shrink: 0; color: #30233e; background: var(--dm-yellow); }
.commune-theme .dm-contact-band .dm-btn:hover { transform: translateY(-2px); background: #ffe47c; }
.commune-theme .dm-dialog-item { gap: 12px; }
.commune-theme .dm-dialog-item small { white-space: normal; text-align: right; }
.commune-theme .dm-dialog-intro { line-height: 1.7; }
.commune-theme .dm-footer-note { max-width: 300px; }
.commune-theme :is(#vie-locale, #mairie, #actualites, #contact, #services) { scroll-margin-top: 28px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .commune-theme .dm-story:hover { transform: translateY(-5px); box-shadow: 0 16px 34px #49296612; }
  .commune-theme .dm-story:hover .dm-story-image img { transform: scale(1.035); }
}
@media (max-width: 1100px) {
  .commune-theme .dm-hero-grid { gap: 38px; }
  .commune-theme .dm-hero h1 { font-size: clamp(43px, 5.2vw, 61px); }
  .commune-theme .dm-stories, .commune-theme .dm-news-grid { gap: 16px; }
  .commune-theme .dm-story-image img { height: 170px; }
  .commune-theme .dm-story-body { padding: 18px; }
  .commune-theme .dm-story-body h3 { font-size: 22px; }
  .commune-theme .dm-story-body p { min-height: 62px; }
  .commune-theme .dm-discover-card { gap: 25px; padding: 22px; }
  .commune-theme .dm-discover-picture > img { height: 350px; }
  .commune-theme .dm-stats { gap: 12px; }
  .commune-theme .dm-news-card { padding: 21px; }
}
@media (max-width: 780px) {
  .commune-theme .dm-hero-grid { grid-template-columns: 1fr; padding-block: 33px 50px; gap: 34px; }
  .commune-theme .dm-hero h1 { font-size: clamp(44px, 10.5vw, 64px); }
  .commune-theme .dm-hero-copy > p { font-size: 15px; }
  .commune-theme .dm-hero-visual { margin-inline: 0; }
  .commune-theme .dm-hero-photo { border-radius: 64px 23px 64px 23px; }
  .commune-theme .dm-visual-back { border-radius: 64px 23px 64px 23px; inset: 10px -6px -8px 8px; }
  .commune-theme .dm-photo-note { left: -5px; bottom: -21px; padding: 10px; font-size: 13px; }
  .commune-theme .dm-flower-sticker { top: -16px; right: 0; width: 56px; height: 56px; }
  .commune-theme .dm-flower-sticker .dm-icon { width: 54px; height: 54px; }
  .commune-theme .dm-shortcuts { padding-block: 29px 18px; }
  .commune-theme .dm-service { min-height: 148px; }
  .commune-theme .dm-life { padding-block: 24px 33px; }
  .commune-theme .dm-stories { grid-template-columns: 1fr; gap: 22px; }
  .commune-theme .dm-story-image img { height: auto; aspect-ratio: 1.85; }
  .commune-theme .dm-story-body { padding: 19px 21px 17px; }
  .commune-theme .dm-story-body h3 { font-size: 27px; }
  .commune-theme .dm-story-body p { min-height: auto; max-width: 37ch; }
  .commune-theme .dm-discover { padding-bottom: 34px; }
  .commune-theme .dm-discover-card { grid-template-columns: 1fr; padding: 18px; gap: 24px; border-radius: 23px; }
  .commune-theme .dm-discover-picture > img { height: auto; aspect-ratio: 1.7; border-radius: 13px 40px 13px 13px; }
  .commune-theme .dm-discover-copy { padding: 0 3px 5px; }
  .commune-theme .dm-discover-copy h2 { font-size: 34px; }
  .commune-theme .dm-stats { gap: 10px; }
  .commune-theme .dm-stats > div { min-width: 65px; padding-left: 10px; }
  .commune-theme .dm-stats dd { font-size: 21px; }
  .commune-theme .dm-news-grid { grid-template-columns: 1fr; gap: 14px; }
  .commune-theme .dm-news-card { padding: 22px; }
  .commune-theme .dm-news-card p { max-width: 40ch; }
  .commune-theme .dm-news { padding-bottom: 29px; }
  .commune-theme .dm-placeholder-tag { max-width: 100px; text-align: center; }
  .commune-theme .dm-contact-band { flex-direction: column; align-items: flex-start; padding: 23px; margin-bottom: 30px; gap: 20px; }
  .commune-theme .dm-contact-band-copy { align-items: flex-start; gap: 12px; }
  .commune-theme .dm-contact-band h2 { font-size: 23px; line-height: 1.2; }
  .commune-theme .dm-contact-band-icon { width: 43px; height: 43px; border-radius: 13px; }
  .commune-theme .dm-contact-band-icon .dm-icon { width: 25px; height: 25px; }
  .commune-theme .dm-contact-band .dm-btn { width: 100%; }
}
@media (max-width: 375px) {
  .commune-theme .dm-brand strong { font-size: 27px; }
  .commune-theme .dm-brand small { font-size: 9px; }
  .commune-theme .dm-hero h1 { font-size: 42px; }
  .commune-theme .dm-service { padding: 17px 13px; }
  .commune-theme .dm-service-title { font-size: 13px; }
  .commune-theme .dm-service-desc { font-size: 11px; }
  .commune-theme .dm-discover-copy h2 { font-size: 30px; }
  .commune-theme .dm-stats dt { font-size: 10px; }
  .commune-theme .dm-stats dd { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .commune-theme *, .commune-theme *::before, .commune-theme *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
  }
}
