/* =========================================================
   Base globale
========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: #f3eee5;
    color: #2d2926;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    font-size: 15px;
}

img { max-width: 100%; }

a {
    color: #8d3d45;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
a:hover { text-decoration: underline; }

main { display: block; }

.container,
.content-container {
    width: min(1120px, calc(100% - 36px));
    margin: 18px auto 30px;
}

.muted { color: #706761; }

/* =========================================================
   Header
========================================================= */
.site-header {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #c8b49e;
}

.site-header img {
    width: 100%;
    height: clamp(260px, 46vh, 400px);
    object-fit: cover;
    object-position: center center;
    display: block;
}

.site-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(30, 33, 37, 0.02) 0%,
        rgba(34, 29, 27, 0.06) 34%,
        rgba(38, 31, 28, 0.18) 100%
    );
    pointer-events: none;
}

.site-header .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 0 0 clamp(16px, 2.4vw, 28px);
    z-index: 1;
}

.site-header .header-inner {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
}

.site-header .hero-title-block {
    max-width: 520px;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-header .overlay h1 {
    margin: 2px 0 0;
    color: #f4ecde;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: clamp(26px, 3.5vw, 42px);
    line-height: 1;
    letter-spacing: .002em;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.16);
    white-space: nowrap;
    max-width: none;
}

.site-header .hero-subtitle {
    margin: 7px 0 0;
    color: rgba(244, 236, 222, 0.94);
    font-size: 11px;
    line-height: 1.45;
    letter-spacing: .05em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}

.site-header .hero-deco {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 5px;
    opacity: 0.9;
}

.site-header .hero-deco.hero-deco-bottom {
    margin: 7px 0 0;
}

.site-header .hero-deco::before,
.site-header .hero-deco::after {
    content: "";
    flex: 1 1 auto;
    max-width: 62px;
    height: 1px;
    background: rgba(244, 236, 222, 0.78);
}

.site-header .hero-deco span {
    display: inline-block;
    color: rgba(244, 236, 222, 0.96);
    font-size: 13px;
    line-height: 1;
    transform: translateY(-1px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* =========================================================
   Menu principal
========================================================= */
.menu-horizontal {
    width: min(1120px, calc(100% - 36px));
    margin: -14px auto 0;
    position: relative;
    isolation: isolate;
    z-index: 20;
    background: rgba(244, 239, 230, 0.96);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(143, 111, 88, 0.18);
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0 10px;
    align-items: center;
    min-height: 46px;
    box-shadow: 0 8px 22px rgba(55, 40, 31, 0.07);
}

.menu-horizontal .dropdown {
    position: relative;
}

.menu-horizontal .dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 10px;
}

.menu-horizontal > .dropdown > a {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 13px;
    color: #4c4139;
    text-decoration: none;
    font-weight: 600;
    font-size: 12.5px;
    letter-spacing: .02em;
    border-radius: 8px;
    transform: translateY(0);
    box-shadow: inset 0 0 0 1px transparent;
    transition: background .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.menu-horizontal.menu-with-indicator .menu-track-indicator {
    position: absolute;
    top: 5px;
    left: 0;
    height: calc(100% - 10px);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(141, 61, 69, 0.10), rgba(141, 61, 69, 0.06));
    box-shadow:
        inset 0 0 0 1px rgba(127, 47, 57, 0.08),
        0 6px 14px rgba(82, 55, 39, 0.04);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition: transform .26s cubic-bezier(.22, .7, .18, 1), width .26s cubic-bezier(.22, .7, .18, 1), opacity .16s ease;
}

.menu-horizontal.menu-with-indicator > .dropdown {
    z-index: 1;
}

.menu-horizontal.menu-with-indicator > .dropdown > a {
    position: relative;
    z-index: 1;
}

.menu-horizontal.menu-with-indicator > .dropdown > a:hover,
.menu-horizontal.menu-with-indicator > .dropdown:focus-within > a {
    background: transparent;
    color: #7f2f39;
    transform: none;
    box-shadow: none;
}

.menu-horizontal.menu-with-indicator a.active {
    color: #7f2f39;
    background: transparent;
    box-shadow: none;
}

.menu-horizontal > .dropdown > a:hover,
.menu-horizontal > .dropdown:focus-within > a {
    background: rgba(141, 61, 69, 0.07);
    color: #7f2f39;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(82, 55, 39, 0.08);
    text-decoration: none;
}

.menu-horizontal a.active {
    color: #7f2f39;
    background: rgba(141, 61, 69, 0.08);
    box-shadow: inset 0 0 0 1px rgba(127, 47, 57, 0.08);
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 240px;
    background: #fffdfa;
    border: 1px solid rgba(143, 111, 88, 0.18);
    border-radius: 10px;
    box-shadow: 0 16px 34px rgba(55, 40, 31, 0.10);
    padding: 6px 0;
    z-index: 50;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}

.dropdown-content a,
.dropdown-content .dropdown-empty {
    display: block;
    padding: 9px 13px;
    color: #2d2926;
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease;
    font-size: 12.5px;
}

.dropdown-content a:hover,
.dropdown-content a:focus {
    background: #f7f0e7;
    color: #7f2f39;
    text-decoration: none;
}

.dropdown-content a.active {
    background: #f7f0e7;
    color: #7f2f39;
    font-weight: 600;
}

.dropdown-empty {
    color: #706761;
}

/* =========================================================
   Page CMS generique
========================================================= */
.content-container {
    background: #fffdfa;
    border: 1px solid rgba(143, 111, 88, 0.16);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(55, 40, 31, 0.05);
}

.content-container h1 {
    margin: 0 0 12px;
    line-height: 1.15;
    color: #3a2f2a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(19px, 1.7vw, 24px);
    letter-spacing: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(141, 61, 69, 0.16);
}

.cms-content {
    color: #423831;
    line-height: 1.7;
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 14.5px;
}

.cms-content > *:first-child {
    margin-top: 0;
}

.cms-content > *:last-child {
    margin-bottom: 0;
}

.cms-content p:first-child { margin-top: 0; }
.cms-content p:last-child { margin-bottom: 0; }

.cms-content p {
    margin: 0 0 1em;
}

.cms-content h2,
.cms-content h3,
.cms-content h4 {
    color: #3b312c;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.25;
    margin-top: 1.35em;
    margin-bottom: 0.5em;
}

.cms-content h2 {
    font-size: clamp(17px, 1.3vw, 21px);
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(143, 111, 88, 0.14);
}

.cms-content h3 {
    font-size: clamp(15px, 1.15vw, 18px);
}

.cms-content h4 {
    font-size: clamp(14px, 1vw, 16px);
}

.cms-content blockquote {
    margin: 1.2em 0;
    padding: 10px 14px 10px 16px;
    background: #faf5ee;
    border-left: 4px solid #8d3d45;
    border-radius: 6px;
    color: #4b403a;
    font-style: italic;
}

.cms-content hr {
    border: 0;
    height: 1px;
    background: rgba(143, 111, 88, 0.18);
    margin: 22px 0;
}

.cms-content ul,
.cms-content ol {
    margin: 0 0 1em 1.35em;
    padding: 0;
}

.cms-content li {
    margin-bottom: 0.35em;
}

/* ---------------------------------------------------------
   Images CMS en blocs modernes (Rendu final site)
--------------------------------------------------------- */

.cms-content figure{
    margin: 0;
}

.cms-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.cms-content .image-block{
    display: block;
    clear: both;
    margin: 22px auto;
    padding: 0;
    border: 0;
    background: transparent;
}

.cms-content .image-block:first-child {
    margin-top: 0;
}

.cms-content .image-block:last-child {
    margin-bottom: 0;
}

.cms-content .image-block img{
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 10px;
    box-shadow: 0 5px 16px rgba(55, 40, 31, 0.08);
}

.cms-content .image-block figcaption{
    margin-top: 8px;
    padding: 0 4px;
    color: #6c625c;
    font-size: 12.5px;
    line-height: 1.5;
    text-align: center;
}

.cms-content .image-block.align-left {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.cms-content .image-block.align-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.cms-content .image-block.align-right {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

/* Tailles harmonisees */

.cms-content .image-block.size-small{
    width: min(240px, 100%);
}

.cms-content .image-block.size-medium{
    width: min(380px, 100%);
}

.cms-content .image-block.size-large{
    width: min(680px, 100%);
}

.cms-content .image-block.size-full{
    width: 100%;
}

.cms-content .image-block.is-framed img {
    padding: 8px;
    background: #fff;
    border: 1px solid rgba(143, 111, 88, 0.16);
}

/* ---------------------------------------------------------
   Bloc CMS image + texte
   Objectif : structure technique conservee, rendu visuel transparent
--------------------------------------------------------- */

.cms-content .cms-media-text{
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 24px 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.cms-content .cms-media-text:first-child{
    margin-top: 0;
}

.cms-content .cms-media-text:last-child{
    margin-bottom: 0;
}

.cms-content .cms-media-text.media-right{
    flex-direction: row-reverse;
}

.cms-content .cms-media-text .cms-media{
    flex: 0 0 42%;
    min-width: 0;
}

.cms-content .cms-media-text .cms-media img{
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 10px;
    box-shadow: 0 5px 16px rgba(55, 40, 31, 0.08);
}

.cms-content .cms-media-text .cms-text{
    flex: 1 1 auto;
    min-width: 0;
}

.cms-content .cms-media-text .cms-text > *:first-child{
    margin-top: 0;
}

.cms-content .cms-media-text .cms-text > *:last-child{
    margin-bottom: 0;
}

/* Evite les comportements parasites si du HTML admin a laisse des wrappers */
.cms-content .cms-media-text .cms-text,
.cms-content .cms-media-text .cms-media,
.cms-content .cms-media-text .cms-text > div,
.cms-content .cms-media-text .cms-media > div {
    min-height: 0;
}

.cms-content .cms-media-text .cms-text:empty,
.cms-content .cms-media-text .cms-media:empty {
    display: none;
}

/* Compatibilite temporaire ancien contenu admin */
.cms-content img.cms-img {
    display: block;
    clear: both;
    margin-top: 18px;
    margin-bottom: 18px;
    box-shadow: 0 5px 16px rgba(55, 40, 31, 0.08);
}

.cms-content img.cms-img.align-left {
    margin-left: 0;
    margin-right: auto;
}

.cms-content img.cms-img.align-center {
    margin-left: auto;
    margin-right: auto;
}

.cms-content img.cms-img.align-right {
    margin-left: auto;
    margin-right: 0;
}

.cms-content img.cms-img.size-small {
    width: min(240px, 100%);
}

.cms-content img.cms-img.size-medium {
    width: min(380px, 100%);
}

.cms-content img.cms-img.size-large {
    width: min(680px, 100%);
}

.cms-content img.cms-img.size-full {
    width: 100%;
}

/* =========================================================
   Accueil - structure
========================================================= */
.container.home-page { margin-top: 18px; }

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) 280px;
    gap: 18px;
    align-items: start;
}

.main-content {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.home-sidebar { position: relative; }

/* =========================================================
   Bloc centre accueil
========================================================= */
.home-center {
    background: linear-gradient(180deg, rgba(255, 252, 248, 0.97), rgba(247, 240, 232, 0.96));
    border: 1px solid rgba(143, 111, 88, 0.16);
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 8px 24px rgba(55, 40, 31, 0.06);
}

.home-center h2 {
    margin: 0 0 10px;
    line-height: 1.18;
    color: #3b312c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(17px, 1.5vw, 22px);
    font-weight: 700;
    max-width: 28ch;
}

.home-center-text {
    color: #4d443e;
    line-height: 1.68;
    word-break: break-word;
    font-size: 14px;
}

.home-center-text p:first-child { margin-top: 0; }
.home-center-text p:last-child { margin-bottom: 0; }

.home-center-gallery {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(86px, 102px));
    justify-content: center;
    gap: 10px;
    align-items: stretch;
}

.home-center-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 102px;
    aspect-ratio: 1 / 1;
    margin: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #fffaf4;
    border: 1px solid rgba(143, 111, 88, 0.16);
    padding: 6px;
}

.home-center-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================================
   Bloc horaires accueil
========================================================= */
.horaires-mairie {
    display: grid;
    gap: 16px;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 4px 0 0;
    box-shadow: none;
}

.horaires-mairie h2 {
    margin: 0;
    justify-self: center;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    color: #7d6658;
    font-size: 10px;
    letter-spacing: .24em;
    text-transform: uppercase;
    box-shadow: none;
    transform: none;
    text-align: center;
}

.horaires-mairie h2::before,
.horaires-mairie h2::after {
    content: "";
    width: 78px;
    height: 10px;
    flex: 0 0 auto;
}

.horaires-mairie h2::before {
    background:
        linear-gradient(rgba(198, 170, 147, 0.9), rgba(198, 170, 147, 0.9)) left center / calc(100% - 10px) 1px no-repeat,
        radial-gradient(circle, rgba(198, 170, 147, 0.95) 0 2px, transparent 2.4px) right center / 6px 6px no-repeat;
}

.horaires-mairie h2::after {
    background:
        radial-gradient(circle, rgba(198, 170, 147, 0.95) 0 2px, transparent 2.4px) left center / 6px 6px no-repeat,
        linear-gradient(rgba(198, 170, 147, 0.9), rgba(198, 170, 147, 0.9)) right center / calc(100% - 10px) 1px no-repeat;
}

.bloc-horaires {
    position: relative;
    overflow: visible;
    background:
        linear-gradient(180deg, rgba(255, 251, 244, 0.98), rgba(244, 236, 224, 0.97)),
        radial-gradient(circle at 18% 14%, rgba(189, 154, 120, 0.08), transparent 26%),
        radial-gradient(circle at 82% 88%, rgba(161, 127, 101, 0.07), transparent 22%);
    border: 1px solid rgba(150, 118, 92, 0.2);
    border-radius: 3px 3px 16px 16px;
    padding: 24px 16px 14px;
    box-shadow:
        0 16px 28px rgba(55, 40, 31, 0.1),
        0 2px 0 rgba(112, 82, 63, 0.05);
    transform: rotate(-1.4deg);
}

.bloc-horaires + .bloc-horaires {
    margin-top: -2px;
}

.bloc-horaires:nth-of-type(3) {
    transform: rotate(1.2deg);
}

.bloc-horaires::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -12px;
    width: 82px;
    height: 24px;
    background:
        linear-gradient(180deg, rgba(245, 224, 208, 0.95), rgba(228, 202, 182, 0.9)),
        linear-gradient(112deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.34) 44%, rgba(255, 255, 255, 0.08) 57%, rgba(255, 255, 255, 0) 72%),
        repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.06) 0 2px, rgba(210, 181, 159, 0.04) 2px 6px);
    border-left: 1px solid rgba(169, 131, 101, 0.22);
    border-right: 1px solid rgba(169, 131, 101, 0.22);
    border-radius: 2px;
    box-shadow: 0 5px 10px rgba(55, 40, 31, 0.08);
    transform: translateX(-50%) rotate(-4deg);
    transform-origin: center;
    opacity: .96;
}

.bloc-horaires::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: radial-gradient(rgba(116, 91, 70, 0.08) .7px, transparent .8px);
    background-size: 12px 12px;
    opacity: .22;
    pointer-events: none;
}

.bloc-horaires h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    color: #5b4135;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: none;
    text-align: left;
    line-height: 1.2;
    transform: none;
    font-family: "Segoe Print", "Bradley Hand", "Marker Felt", "Comic Sans MS", cursive;
}

.bloc-horaires h3 span {
    display: inline;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
}

.bloc-horaires .horaires-content {
    position: relative;
    z-index: 1;
    color: #4b433e;
    line-height: 1.58;
    font-size: 12.5px;
    padding-left: 0;
}

.bloc-horaires .horaires-content p { margin: 0 0 7px; }
.bloc-horaires .horaires-content p:last-child { margin-bottom: 0; }
.bloc-horaires .horaires-content strong { color: #362c28; }

/* =========================================================
   Bloc actualites accueil
========================================================= */
.bloc-actualites {
    margin-top: 0;
    padding: 15px 16px;
    border: 1px solid rgba(143, 111, 88, 0.16);
    border-radius: 12px;
    background: #fffdfa;
    box-shadow: 0 8px 24px rgba(55, 40, 31, 0.05);
}

.bloc-actualites h3 {
    margin: 0 0 10px;
    color: #3e322c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
}

.bloc-actualites-inner {
    display: grid;
    gap: 12px;
}

.actualite-item {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 11px 12px;
    border: 1px solid rgba(143, 111, 88, 0.14);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(248, 242, 234, 0.72), rgba(255,255,255,0.96));
}

.actualite-item.no-image {
    grid-template-columns: 1fr;
}

.actualite-item-thumb {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: #efe8e2;
}

.actualite-item-thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.actualite-item-body {
    min-width: 0;
}

.actualite-item h4 {
    margin: 0 0 6px;
    color: #3b2f2b;
    font-size: 15px;
}

.actualite-item p {
    margin: 0;
    line-height: 1.5;
    word-break: break-word;
    color: #5c524c;
    font-size: 13px;
}

.actualite-meta {
    display: block;
    margin-top: 6px;
    font-size: 10.5px;
    color: #7a6b62;
}

.actualite-link {
    margin-top: 8px;
    display: inline-block;
    font-weight: 700;
    color: #8d3d45;
    text-decoration: none;
    font-size: 12.5px;
}

.actualite-link:hover { text-decoration: underline; }

.actualite-empty {
    padding: 12px;
    border: 1px dashed rgba(143, 111, 88, 0.28);
    border-radius: 8px;
    color: #665d56;
    background: rgba(247, 240, 232, 0.72);
    font-size: 12.5px;
}

@media (max-width: 980px) {
    .home-layout { grid-template-columns: 1fr; }
    .home-sidebar { order: 2; }
    .main-content { order: 1; }
}

/* =========================================================
   Page contact
========================================================= */
.contact-page {
    width: min(980px, calc(100% - 28px));
    margin: 22px auto 34px;
}

.contact-card {
    background: #fffdfa;
    border: 1px solid rgba(143, 111, 88, 0.18);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 8px 22px rgba(55, 40, 31, 0.05);
}

.contact-head {
    text-align: center;
    margin-bottom: 18px;
}

.contact-head h1,
.contact-head h2 {
    margin: 0 0 8px;
    font-size: 28px;
    color: #3b312c;
    font-family: Georgia, "Times New Roman", serif;
}

.contact-lead {
    max-width: 620px;
    margin: 0 auto;
    color: #65584f;
    line-height: 1.65;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
    gap: 14px;
    align-items: start;
}

.contact-layout.has-form .contact-form-panel {
    order: 1;
}

.contact-layout.has-form .contact-details-panel {
    order: 2;
}

.contact-panel {
    border: 1px solid rgba(143, 111, 88, 0.15);
    border-radius: 12px;
    background: rgba(247, 240, 232, 0.34);
    padding: 16px;
}

.contact-panel h2 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #3b312c;
    font-family: Georgia, "Times New Roman", serif;
}

.contact-panel-intro {
    margin: 0 0 14px;
    color: #65584f;
    line-height: 1.6;
}

.contact-grid {
    display: grid;
    gap: 10px;
}

.contact-item {
    padding: 12px 14px;
    border: 1px solid rgba(143, 111, 88, 0.15);
    border-radius: 10px;
    background: rgba(247, 240, 232, 0.45);
}

.contact-item strong {
    display: block;
    margin-bottom: 6px;
    color: #3d302c;
}

.contact-item p,
.contact-item a {
    margin: 0;
    line-height: 1.55;
    word-break: break-word;
    font-size: 14px;
    color: #4f443d;
}

.contact-item a {
    text-decoration: none;
    border-bottom: 1px solid rgba(143, 111, 88, 0.22);
}

.contact-item a:hover {
    color: #2f5d57;
    border-bottom-color: rgba(47, 93, 87, 0.35);
}

.contact-form {
    display: grid;
    gap: 14px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}

.contact-field {
    display: grid;
    gap: 6px;
}

.contact-field label {
    font-weight: 600;
    color: #3d302c;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    border: 1px solid rgba(143, 111, 88, 0.24);
    border-radius: 10px;
    background: #fff;
    color: #3d302c;
    padding: 12px 13px;
    font: inherit;
}

.contact-field textarea {
    resize: vertical;
    min-height: 160px;
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: rgba(47, 93, 87, 0.45);
    box-shadow: 0 0 0 3px rgba(47, 93, 87, 0.08);
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form-actions {
    display: flex;
    justify-content: flex-start;
}

.contact-submit {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #2f5d57, #4f7c74);
    color: #fff;
    padding: 12px 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(47, 93, 87, 0.16);
}

.contact-submit:hover {
    filter: brightness(1.03);
}

.contact-notice {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(143, 111, 88, 0.18);
}

.contact-notice-success {
    background: #f2fbf5;
    border-color: #b9e2c7;
    color: #18603a;
}

.contact-notice-error {
    background: #fff5f5;
    border-color: #efc1c1;
    color: #a61b1b;
}

.contact-links {
    display: grid;
    gap: 10px;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(143, 111, 88, 0.15);
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: #3d302c;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.contact-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(55, 40, 31, 0.05);
    border-color: rgba(143, 111, 88, 0.3);
}

.contact-link-label {
    font-weight: 600;
}

.contact-link-action {
    font-size: 12px;
    color: #8b6a55;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.contact-empty {
    text-align: center;
    padding: 20px 16px;
    border: 1px dashed rgba(143, 111, 88, 0.28);
    border-radius: 12px;
    background: rgba(247, 240, 232, 0.45);
    color: #5f534c;
}

.contact-social-block {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(143, 111, 88, 0.16);
}

.contact-social-block h3 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #3b312c;
    font-family: Georgia, "Times New Roman", serif;
}

.contact-map-block {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(143, 111, 88, 0.16);
}

.contact-map-block h3 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #3b312c;
    font-family: Georgia, "Times New Roman", serif;
}

.contact-map-frame {
    border: 1px solid rgba(143, 111, 88, 0.16);
    border-radius: 12px;
    overflow: hidden;
    background: #efe4d8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.contact-map-frame iframe {
    display: block;
    width: 100%;
    height: 220px;
    border: 0;
}

.contact-map-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
    font-size: 13px;
    color: #6d5e55;
}

.contact-map-meta a {
    color: #7b4c2e;
    text-decoration: none;
    font-weight: 600;
}

.contact-map-meta a:hover {
    text-decoration: underline;
}

.contact-extra {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(143, 111, 88, 0.16);
}

.contact-extra h2 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #3b312c;
    font-family: Georgia, "Times New Roman", serif;
}

/* =========================================================
   Page detail actualite
========================================================= */
.actualite-page {
    width: min(900px, calc(100% - 28px));
    margin: 22px auto 34px;
}

.actualite-back {
    margin-bottom: 14px;
}

.actualite-page-card {
    background: #fffdfa;
    border: 1px solid rgba(143, 111, 88, 0.18);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(55, 40, 31, 0.05);
}

.actualite-page-card h1,
.actualite-page-card h2 {
    margin: 0 0 8px;
    line-height: 1.2;
    font-size: 26px;
    color: #3a2f2a;
    font-family: Georgia, "Times New Roman", serif;
}

.actualite-date-group {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
}

.actualite-date {
    display: block;
    color: #7a6b62;
    font-size: 12px;
}

.actualite-date-updated {
    opacity: 0.92;
}

.actualite-cover {
    margin: 0 auto 18px;
    max-width: 620px;
}

.actualite-cover img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.actualite-content {
    line-height: 1.68;
    color: #423831;
    word-break: break-word;
    font-size: 14.5px;
}

.actualite-content p:first-child { margin-top: 0; }
.actualite-content p:last-child { margin-bottom: 0; }

.actualite-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin: 16px auto;
}

/* =========================================================
   Page liste actualites
========================================================= */
.actualites-page {
    width: min(1020px, calc(100% - 28px));
    margin: 22px auto 34px;
}

.actualites-head {
    text-align: center;
    margin-bottom: 18px;
}

.actualites-head .muted {
    max-width: 620px;
    margin: 0 auto;
}

.actualites-head h1,
.actualites-head h2 {
    margin: 0 0 6px;
    font-size: 28px;
    color: #3a2f2a;
    font-family: Georgia, "Times New Roman", serif;
}

.actualites-list {
    display: grid;
    gap: 14px;
}

.actualites-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    background: #fffdfa;
    border: 1px solid rgba(143, 111, 88, 0.18);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 8px 22px rgba(55, 40, 31, 0.05);
}

.actualites-card.no-image {
    grid-template-columns: 1fr;
}

.actualite-thumb {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f3ec;
}

.actualite-thumb img {
    width: 100%;
    height: 155px;
    object-fit: cover;
    display: block;
}

.actualite-body h2,
.actualite-body h3 {
    margin: 0 0 7px;
    line-height: 1.25;
    font-size: 18px;
    color: #3b2f2b;
}

.actualite-body h2 a,
.actualite-body h3 a {
    text-decoration: none;
    color: inherit;
}

.actualite-body h2 a:hover,
.actualite-body h3 a:hover {
    text-decoration: underline;
}

.actualite-excerpt {
    margin: 0;
    line-height: 1.58;
    color: #5c524c;
    font-size: 13.5px;
}

.btn-lire-suite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 9px;
    text-decoration: none;
    border: 1px solid rgba(143, 111, 88, 0.20);
    background: #fffdfa;
    font-weight: 600;
    font-size: 12.5px;
    color: #7f2f39;
}

.btn-lire-suite:hover {
    background: #f7f0e7;
    text-decoration: none;
}

.actualites-empty {
    text-align: center;
    padding: 22px 14px;
    border: 1px dashed rgba(143, 111, 88, 0.28);
    border-radius: 14px;
    background: rgba(247, 240, 232, 0.45);
}

/* =========================================================
   Footer
========================================================= */
.site-footer {
    margin-top: 34px;
    background: linear-gradient(180deg, #3d312b 0%, #2f2521 100%);
    color: #f0e7dc;
    border-top: 1px solid rgba(141, 61, 69, 0.18);
}

.site-footer a {
    color: #fff7ee;
    text-decoration: none;
    transition: color .18s ease, opacity .18s ease;
}

.site-footer a:hover {
    color: #f3d9c7;
    text-decoration: none;
}

.site-footer-inner {
    width: min(1120px, calc(100% - 28px));
    margin: 0 auto;
    padding: 24px 0 16px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 22px;
}

.site-footer-col h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #fff7ee;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
}

.site-footer-brand h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.site-footer-kicker {
    margin-bottom: 6px;
    color: rgba(240, 231, 220, 0.72);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.site-footer-col p {
    margin: 0;
    line-height: 1.6;
    font-size: 13.5px;
    color: rgba(240, 231, 220, 0.92);
}

.site-footer-links,
.site-footer-social {
    display: grid;
    gap: 8px;
    font-size: 13.5px;
}

.site-footer-links a,
.site-footer-social a {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    opacity: 0.95;
}

.site-footer-links a:hover,
.site-footer-social a:hover {
    opacity: 1;
}

.site-footer-bottom {
    width: min(1120px, calc(100% - 28px));
    margin: 0 auto;
    padding: 12px 0 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 12px;
    color: rgba(240, 231, 220, 0.78);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.footer-sep {
    opacity: 0.45;
}

.footer-muted {
    opacity: 0.75;
}

@media (max-width: 900px) {
    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .site-footer-bottom {
        gap: 6px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        margin-top: 28px;
    }

    .site-footer-inner {
        width: calc(100% - 18px);
        padding: 20px 0 14px;
    }

    .site-footer-brand h3 {
        font-size: 20px;
    }

    .site-footer-bottom {
        width: calc(100% - 18px);
        padding: 10px 0 14px;
    }

    .footer-sep {
        display: none;
    }
}

/* =========================================================
   Page photos
========================================================= */
.photos-page {
    width: min(1120px, calc(100% - 28px));
    margin: 22px auto 34px;
}

.photos-head {
    text-align: center;
    margin-bottom: 18px;
}

.photos-head h2 {
    margin: 0 0 6px;
    font-size: 28px;
    color: #3a2f2a;
    font-family: Georgia, "Times New Roman", serif;
}

.photos-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.photos-filter form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    padding: 11px 13px;
    border: 1px solid rgba(143,111,88,.18);
    border-radius: 12px;
    background: #fffdfa;
}

.photos-filter label {
    font-weight: 600;
    font-size: 13px;
    color: #4a3d37;
}

.photos-filter select {
    min-width: 210px;
    padding: 8px 10px;
    border: 1px solid rgba(143,111,88,.22);
    border-radius: 9px;
    background: #fff;
    color: #3e322c;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.photo-item {
    background: #fffdfa;
    border: 1px solid rgba(143,111,88,.18);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(55,40,31,.05);
}

.img-wrapper {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f8f3ec;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.photo-body {
    padding: 10px 12px;
}

.photo-page {
    font-size: 10.5px;
    color: #7a6b62;
    margin-bottom: 5px;
}

.photo-text {
    margin: 0;
    line-height: 1.45;
    word-break: break-word;
    font-size: 12.8px;
    color: #4f443d;
}

.empty-state {
    text-align: center;
    padding: 24px 14px;
    border: 1px dashed rgba(143,111,88,.28);
    border-radius: 14px;
    background: rgba(247,240,232,.45);
}

.photos-empty-subtext {
    margin-top: 6px;
}

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .82);
    z-index: 9999;
    cursor: zoom-out;
}

.lightbox img {
    max-width: min(1100px, 96vw);
    max-height: 90vh;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* =========================================================
   Pages commercants
========================================================= */
.commercants-page {
    width: min(1020px, calc(100% - 28px));
    margin: 22px auto 34px;
}

.commercants-head {
    text-align: center;
    margin-bottom: 18px;
}

.commercants-head h1,
.commercants-head h2 {
    margin: 0 0 6px;
    font-size: 28px;
    color: #3a2f2a;
    font-family: Georgia, "Times New Roman", serif;
}

.commercants-list {
    display: grid;
    gap: 14px;
}

.commercant-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    background: #fffdfa;
    border: 1px solid rgba(143, 111, 88, 0.18);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 8px 22px rgba(55, 40, 31, 0.05);
}

.commercant-card.no-image {
    grid-template-columns: 1fr;
}

.commercant-thumb {
    border-radius: 12px;
    overflow: hidden;
    background: #f8f3ec;
}

.commercant-thumb img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.commercant-body h2,
.commercant-body h3 {
    margin: 0 0 8px;
    line-height: 1.2;
    font-size: 18px;
    color: #3b2f2b;
}

.commercant-desc {
    margin: 0 0 10px;
    color: #5c524c;
    line-height: 1.58;
    font-size: 13.5px;
}

.commercant-infos {
    display: grid;
    gap: 6px;
}

.commercant-infos p {
    margin: 0;
    line-height: 1.5;
    word-break: break-word;
    font-size: 13.5px;
}

.commercants-empty {
    text-align: center;
    padding: 22px 14px;
    border: 1px dashed rgba(143, 111, 88, 0.28);
    border-radius: 14px;
    background: rgba(247, 240, 232, 0.45);
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 900px) {
    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .menu-horizontal {
        padding: 6px 8px;
    }

    .menu-horizontal > .dropdown > a {
        min-height: 42px;
        padding: 0 11px;
    }
}

@media (max-width: 820px) {
    .actualites-card,
    .actualites-card.no-image,
    .commercant-card,
    .commercant-card.no-image {
        grid-template-columns: 1fr;
    }

    .actualite-thumb img {
        height: 205px;
    }

    .commercant-thumb img {
        height: 210px;
    }
}

@media (max-width: 768px) {
    .site-header img {
        height: 210px;
    }

    .site-header .overlay {
        padding-bottom: 16px;
    }

    .site-header .header-inner {
        width: calc(100% - 20px);
    }

    .site-header .hero-title-block {
        max-width: 250px;
    }

    .site-header .overlay h1 {
        white-space: normal;
        line-height: 1;
    }

    .site-header .hero-subtitle {
        font-size: 10.5px;
        margin-top: 5px;
    }

    .site-header .hero-deco::before,
    .site-header .hero-deco::after {
        max-width: 38px;
    }

    .site-header .hero-deco span {
        font-size: 12px;
    }

    .content-container,
    .container,
    .contact-page,
    .actualite-page,
    .actualites-page,
    .photos-page,
    .commercants-page {
        width: calc(100% - 18px);
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .home-center {
        padding: 16px;
    }

    .home-center-gallery {
        grid-template-columns: 1fr;
    }

    .home-center-photo img {
        min-height: 170px;
        max-height: 240px;
    }

    .dropdown-content {
        position: static;
        min-width: auto;
        box-shadow: none;
        border-radius: 10px;
        margin: 0 0 8px;
    }

    .cms-content .image-block,
    .cms-content .image-block.size-small,
    .cms-content .image-block.size-medium,
    .cms-content .image-block.size-large,
    .cms-content .image-block.size-full,
    .cms-content img.cms-img,
    .cms-content img.cms-img.size-small,
    .cms-content img.cms-img.size-medium,
    .cms-content img.cms-img.size-large,
    .cms-content img.cms-img.size-full {
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    .cms-content .image-block figcaption {
        font-size: 12px;
    }

    .cms-content .cms-media-text,
    .cms-content .cms-media-text.media-right{
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 0;
    }

    .cms-content .cms-media-text .cms-media{
        flex: 0 0 auto;
        width: 100%;
    }

    .actualite-item,
    .actualite-item.no-image {
        grid-template-columns: 1fr;
    }

.actualite-item-thumb img {
        aspect-ratio: 16 / 9;
    }
}
