﻿@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .menu-horizontal {
        width: calc(100% - 18px);
        margin: -12px auto 0;
        padding: 6px 8px;
        justify-content: center;
        border-radius: 10px;
    }

    .menu-horizontal > .dropdown > a {
        min-height: 42px;
        padding: 0 11px;
        font-size: 12.5px;
    }

    .menu-horizontal.menu-with-indicator .menu-track-indicator {
        display: none;
    }

    .menu-horizontal.menu-with-indicator > .dropdown > a:hover,
    .menu-horizontal.menu-with-indicator > .dropdown:focus-within > a {
        background: rgba(141, 61, 69, 0.07);
        color: #7f2f39;
        box-shadow: none;
    }

    .menu-horizontal.menu-with-indicator a.active {
        background: rgba(141, 61, 69, 0.08);
        color: #7f2f39;
        box-shadow: inset 0 0 0 1px rgba(127, 47, 57, 0.08);
    }

    .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 {
        max-width: 100%;
        font-size: 28px;
        line-height: 1;
        white-space: normal;
    }

    .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;
    }

    .container,
    .content-container,
    .contact-page,
    .actualite-page,
    .actualites-page,
    .photos-page,
    .commercants-page {
        width: calc(100% - 18px);
        margin: 16px auto 24px;
    }

    .home-center,
    .bloc-actualites,
    .content-container,
    .contact-card,
    .actualite-page-card {
        padding: 16px;
        border-radius: 10px;
    }

    .home-center h2,
    .bloc-actualites h3,
    .actualites-head h1,
    .actualites-head h2,
    .photos-head h2,
    .commercants-head h1,
    .commercants-head h2,
    .contact-card h2,
    .actualite-page-card h1,
    .actualite-page-card h2 {
        font-size: 24px;
    }

    .home-center-gallery {
        grid-template-columns: repeat(auto-fit, minmax(78px, 90px));
        justify-content: center;
        gap: 8px;
    }

    .home-center-photo {
        max-width: 90px;
        padding: 5px;
    }

    .home-center-photo img {
        min-height: 0;
        max-height: none;
    }

    .horaires-mairie {
        gap: 12px;
    }

    .horaires-mairie h2 {
        justify-self: center;
        font-size: 9px;
        letter-spacing: .18em;
        gap: 8px;
    }

    .horaires-mairie h2::before,
    .horaires-mairie h2::after {
        width: 48px;
    }

    .bloc-horaires,
    .bloc-horaires:nth-of-type(3) {
        transform: none;
        padding: 20px 14px 12px;
    }

    .bloc-horaires::before {
        width: 68px;
        height: 20px;
        top: -10px;
    }

    .bloc-horaires h3 {
        font-size: 16px;
    }

    .actualites-card,
    .commercant-card {
        grid-template-columns: 1fr;
    }

    .actualite-thumb img {
        height: 205px;
    }

    .commercant-thumb img {
        height: 210px;
    }

    .dropdown-content {
        position: static;
        min-width: auto;
        box-shadow: none;
        border-radius: 10px;
        margin: 0 0 8px;
    }

    .cms-content img.align-left,
    .cms-content img.float-left,
    .cms-content img.align-right,
    .cms-content img.float-right {
        float: none;
        display: block;
        margin: 14px auto;
    }
}
