:root {
    --bleu: #1246a0;
    --bleu-d: #0a318c;
    --bleu-l: #e9f0ff;
    --bleu-m: #3766c5;
    --or: #e8a020;
    --vert: #1aab72;
    --rouge: #dc2626;
    --noir: #080d1a;
    --gris: #f4f6fb;
    --blanc: #fff;
    --texte: #111827;
    --muted: #6b7280;
    --border: #dde3ef;
    --r: 14px;
    --rs: 8px;
    --shadow: 0 2px 20px rgba(18,70,160,.08);
    --shadow-h: 0 12px 40px rgba(18,70,160,.18);
    --fh: 'Bricolage Grotesque',sans-serif;
    --fb: 'DM Sans',sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    font-family: var(--fb);
    color: var(--texte);
    background: var(--blanc);
}

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

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

.nav {
    display: flex;
    z-index: 999;
    position: sticky;
    top: 0;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: rgb(255 255 255);
    backdrop-filter: blur(14px);
}

.nav { height: auto; min-height: 100px; padding: 0 2rem; }

.nav-logo {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.nav-logo .ico {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    font-size: 1rem;
    color: #fff;
    background: var(--bleu);
}

.nav-logo .wordmark {
    font-family: var(--fh);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--noir);
}

.nav-logo .wordmark span {
    color: var(--bleu);
}

.nav-center {
    display: flex;
    gap: 1.75rem;
}

.nav-center a {
    font-size: .875rem;
    font-weight: 500;
    color: var(--muted);
    transition: color .2s;
}

.nav-center a:hover {
    color: var(--bleu);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.btn-ghost {
    padding: .45rem 1rem;
    border: 1.5px solid var(--bleu);
    border-radius: 50px;
    font-size: .855rem;
    font-weight: 600;
    color: var(--bleu);
    background: transparent;
    transition: all .2s;
}

.btn-ghost:hover {
    background: var(--bleu-l);
}

.btn-cta {
    padding: .45rem 1.15rem;
    border: 1.5px solid var(--bleu);
    border-radius: 50px;
    font-size: .855rem;
    font-weight: 700;
    color: #fff;
    background: var(--bleu);
    transition: all .2s;
}

.btn-cta:hover {
    background: var(--bleu-d);
    box-shadow: 0 4px 14px rgba(18,70,160,.3);
    transform: translateY(-1px);
}

.hero {
    display: flex;
    position: relative;
    align-items: center;
    padding: 4rem 2rem;
    min-height: 90vh;
    overflow: hidden;
    background: var(--noir);
}

.hero-mesh {
    z-index: 0;
    position: absolute;
    background: radial-gradient(ellipse 75% 65% at 65% 25%,rgba(18,70,160,.6) 0%,transparent 55%), radial-gradient(ellipse 45% 45% at 10% 70%,rgba(10,49,140,.4) 0%,transparent 55%), radial-gradient(ellipse 35% 30% at 90% 85%,rgba(26,171,114,.15) 0%,transparent 50%);
    inset: 0;
}

.hero-dots {
    z-index: 0;
    position: absolute;
    background-image: radial-gradient(rgba(255,255,255,.06) 1px,transparent 1px);
    background-size: 32px 32px;
    inset: 0;
}

.hero-inner {
    display: grid;
    z-index: 1;
    position: relative;
    grid-template-columns: 1fr 420px;
    align-items: center;
    gap: 4rem;
    width: 100%;
    margin: 0 auto;
    max-width: 1180px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.75rem;
    padding: .35rem 1rem;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 500;
    color: rgba(255,255,255,.75);
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(6px);
}

.hero-tag .live {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--vert);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .5;
        transform: scale(1.5);
    }
}

.hero h1 {
    margin-bottom: 1.5rem;
    font-family: var(--fh);
    font-size: clamp(2.4rem,4.5vw,4.2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.025em;
    color: #fff;
}

.hero h1 .accent {
    color: var(--or);
}

.hero h1 .wave {
    display: inline-block;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(90deg,#93c5fd,#c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-sub {
    margin-bottom: 2.5rem;
    max-width: 500px;
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255,255,255,.6);
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
}

.btn-hero-p {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.85rem;
    border-radius: 50px;
    font-size: .95rem;
    font-weight: 700;
    color: var(--bleu);
    background: #fff;
    transition: all .25s;
}

.btn-hero-p:hover {
    color: var(--bleu);
    box-shadow: 0 8px 24px rgba(255,255,255,.22);
    transform: translateY(-2px);
}

.btn-hero-o {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.85rem;
    border: 1.5px solid rgba(255,255,255,.3);
    border-radius: 50px;
    font-size: .95rem;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    background: transparent;
    transition: all .25s;
}

.btn-hero-o:hover {
    border-color: rgba(255,255,255,.6);
    color: #fff;
    background: rgba(255,255,255,.08);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-top: 3.5rem;
}

.hstat .v {
    font-family: var(--fh);
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
}

.hstat .l {
    margin-top: .1rem;
    font-size: .78rem;
    color: rgba(255,255,255,.45);
}

.hero-ui {
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    background: rgba(255,255,255,.04);
    animation: floatY 7s ease-in-out infinite;
    backdrop-filter: blur(20px);
}

@keyframes floatY {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-16px);
    }
}

.hu-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.hu-logo {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bleu);
}

.hu-name {
    font-size: .9rem;
    font-weight: 700;
    color: #fff;
}

.hu-commune {
    font-size: .72rem;
    color: rgba(255,255,255,.45);
}

.hu-salle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .65rem;
    padding: .85rem;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    background: rgba(255,255,255,.07);
}

.hu-salle:last-child {
    margin-bottom: 0;
}

.hu-salle .sn {
    font-size: .82rem;
    font-weight: 600;
    color: #fff;
}

.hu-salle .sm {
    margin-top: .15rem;
    font-size: .7rem;
    color: rgba(255,255,255,.45);
}

.hu-salle .sp {
    font-size: .78rem;
    font-weight: 700;
    color: var(--or);
}

.hu-btn {
    display: flex;
    align-items: center;
    gap: .4rem;
    justify-content: center;
    width: 100%;
    margin-top: 1.1rem;
    padding: .6rem 1.25rem;
    border: none;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
    background: var(--bleu);
    cursor: pointer;
}

.hu-dispo {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .18rem .55rem;
    border-radius: 50px;
    font-size: .68rem;
    font-weight: 600;
    color: #4ade80;
    background: rgba(26,171,114,.15);
}

.search-section {
    z-index: 800;
    position: sticky;
    top: 64px;
    padding: 1.1rem 2rem;
    border-bottom: 1px solid var(--border);
    background: var(--blanc);
    box-shadow: 0 4px 16px rgba(18,70,160,.05);
}

.search-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin: 0 auto;
    max-width: 1180px;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.search-box input {
    width: 100%;
    padding: .6rem 1rem .6rem 2.75rem;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-family: var(--fb);
    font-size: .88rem;
    outline: none;
    background: var(--gris);
    transition: border-color .2s,background .2s;
}

.search-box input:focus {
    border-color: var(--bleu);
    background: #fff;
}

.search-box .s-ico {
    position: absolute;
    top: 50%;
    left: .95rem;
    font-size: .9rem;
    color: var(--muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.fchip {
    padding: .38rem .85rem;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--muted);
    background: var(--blanc);
    transition: all .18s;
    cursor: pointer;
}

.fchip:hover,
.fchip.on {
    border-color: var(--bleu);
    color: var(--bleu);
    background: var(--bleu-l);
}

.results-count {
    margin-left: auto;
    font-size: .82rem;
    white-space: nowrap;
    color: var(--muted);
}

.site-main {
    margin: 0 auto;
    padding: 2.5rem 2rem 5rem;
    max-width: 1180px;
}

.section-eyebrow {
    margin-bottom: .5rem;
    text-transform: uppercase;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--bleu);
}

.section-h {
    margin-bottom: .4rem;
    font-family: var(--fh);
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--noir);
}

.section-sub {
    font-size: .93rem;
    color: var(--muted);
}

.mairies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(350px,1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.mc {
    display: flex;
    position: relative;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--blanc);
    box-shadow: var(--shadow);
    transition: all .28s cubic-bezier(.34,1.5,.64,1);
}

.mc:hover {
    border-color: rgba(18,70,160,.2);
    box-shadow: var(--shadow-h);
    transform: translateY(-5px);
}

.mc-band {
    height: 5px;
    background: var(--c,var(--bleu));
}

.mc-body {
    flex: 1;
    padding: 1.35rem;
}

.mc-head {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    margin-bottom: 1.1rem;
}

.mc-logo {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border: 1.5px solid var(--border);
    border-radius: 11px;
    object-fit: cover;
}

.mc-logo-ph {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1.5px solid var(--border);
    border-radius: 11px;
    font-size: 1.4rem;
    background: var(--bleu-l);
}

.mc-name {
    font-family: var(--fh);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--noir);
}

.mc-loc {
    display: flex;
    align-items: center;
    gap: .25rem;
    margin-top: .2rem;
    font-size: .78rem;
    color: var(--muted);
}

.mc-desc {
    display: -webkit-box;
    margin-bottom: .9rem;
    overflow: hidden;
    font-size: .82rem;
    line-height: 1.5;
    color: var(--muted);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.salles-row {
    display: flex;
    gap: .6rem;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.salles-row::-webkit-scrollbar {
    display: none;
}

.salle-mini {
    flex-shrink: 0;
    width: 130px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--gris);
    transition: all .2s;
    cursor: pointer;
}

.salle-mini:hover {
    border-color: var(--c,var(--bleu));
    transform: scale(1.03);
}

.salle-mini-img {
    width: 100%;
    height: 70px;
    object-fit: cover;
}

.salle-mini-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 70px;
    font-size: 1.5rem;
    background: var(--bleu-l);
}

.salle-mini-info {
    padding: .4rem .5rem;
}

.salle-mini-name {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .73rem;
    font-weight: 700;
    white-space: nowrap;
    color: var(--noir);
}

.salle-mini-tarif {
    margin-top: .1rem;
    font-size: .67rem;
    font-weight: 600;
    color: var(--c,var(--bleu));
}

.mc-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    justify-content: space-between;
}

.mc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.mtag {
    padding: .18rem .6rem;
    border-radius: 50px;
    font-size: .7rem;
    font-weight: 600;
    color: var(--muted);
    background: var(--gris);
}

.btn-resa {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1.1rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-size: .83rem;
    font-weight: 700;
    white-space: nowrap;
    color: #fff;
    background: var(--c,var(--bleu));
    transition: all .2s;
    cursor: pointer;
}

.btn-resa:hover {
    color: #fff;
    box-shadow: 0 4px 14px rgba(18,70,160,.3);
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.grid-state {
    padding: 5rem 2rem;
    text-align: center;
    color: var(--muted);
    grid-column: 1/-1;
}

.grid-state .ico {
    margin-bottom: 1rem;
    font-size: 3rem;
}

.bento {
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: repeat(4,1fr);
    gap: 1.1rem;
    margin-top: 2rem;
}

.bc {
    position: relative;
    padding: 1.75rem;
    border-radius: var(--r);
    overflow: hidden;
}

.bc.dark {
    color: #fff;
    background: var(--noir);
}

.bc.blue {
    color: #fff;
    background: var(--bleu);
}

.bc.light {
    color: var(--noir);
    background: var(--gris);
}

.bc.wide {
    grid-column: span 2;
}

.bc .bi {
    margin-bottom: .9rem;
    font-size: 2rem;
}

.bc .bt {
    margin-bottom: .4rem;
    font-family: var(--fh);
    font-size: 1rem;
    font-weight: 700;
}

.bc .bb {
    font-size: .83rem;
    line-height: 1.55;
    opacity: .72;
}

.bc .deco {
    position: absolute;
    right: -12px;
    bottom: -12px;
    font-size: 5rem;
    line-height: 1;
    opacity: .06;
    pointer-events: none;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.step-card {
    padding: 1.5rem 1rem;
    text-align: center;
}

.step-n {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    font-family: var(--fh);
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    background: var(--bleu);
}

.step-title {
    margin-bottom: .4rem;
    font-family: var(--fh);
    font-size: .95rem;
    font-weight: 700;
    color: var(--noir);
}

.step-text {
    font-size: .82rem;
    line-height: 1.55;
    color: var(--muted);
}

.cta-band {
    position: relative;
    margin-top: 5rem;
    padding: 4rem 3rem;
    border-radius: 24px;
    overflow: hidden;
    text-align: center;
    background: var(--noir);
}

.cta-band::before {
    content: '';
    position: absolute;
    background: radial-gradient(ellipse 70% 60% at 50% 50%,rgba(18,70,160,.5), transparent 65%);
    inset: 0;
}

.cta-band * {
    z-index: 1;
    position: relative;
}

.cta-band h2 {
    margin-bottom: .75rem;
    font-family: var(--fh);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.cta-band p {
    margin-bottom: 2rem;
    font-size: .95rem;
    color: rgba(255,255,255,.55);
}

.cta-btns {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    justify-content: center;
}

footer {
    padding: 2.5rem 2rem;
    text-align: center;
    font-size: .8rem;
    color: rgba(255,255,255,.4);
    background: var(--noir);
}

footer .fw {
    margin-bottom: .85rem;
    font-family: var(--fh);
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
}

footer a {
    margin: 0 .65rem;
    color: rgba(255,255,255,.35);
    transition: color .2s;
}

footer a:hover {
    color: #fff;
}

footer .copy {
    margin-top: .85rem;
    font-size: .75rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tarifs : 2 colonnes sur tablette, 1 sur mobile */

/* APRÈS — gap ajouté + une seule règle propre */

@media (max-width:960px) {
    .tarifs-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }
}

@media (max-width:640px) {
    .tarifs-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
}

@media (max-width:960px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-ui {
        display: none;
    }

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

    .bc.wide {
        grid-column: span 1;
    }

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

@media (max-width:640px) {
    .nav-center {
        display: none;
    }

    .nav {
        padding: 0 1.25rem;
    }

    .hero {
        padding: 3rem 1.25rem;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .search-section {
        top: 64px;
        padding: .85rem 1rem;
    }

    .site-main {
        padding: 2rem 1rem 4rem;
    }

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

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

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

    .cta-band {
        padding: 2.5rem 1.5rem;
    }
}