/*
Theme Name: Beguinage
Author: Lucas Chaudet
Author URI: https://lucas-chaudet.com
Description: Thème WordPress moderne et responsive pour le site du Béguinage, basé sur une palette vert + blanc.
Version: 1.0
Tags: green, white, modern, responsive, custom-menu, custom-header, featured-images, full-site-editing, block-theme
Text Domain: beguinage
*/

.services-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px; /* optionnel pour espacer */
    text-align: center;
}

html {
    min-height: 100%;
    background-color: #ffffff;
}

body{
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #2e3d35;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body > .container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
    width: 100%;
}

.archive-events {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.full-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 60px 0;
    overflow: hidden;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}


img,
.wp-block-image img,
.wp-block-gallery img,
.entry-content img,
.wp-post-image,
.alignleft,
.alignright,
.aligncenter {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

figure {
    margin: 0;
}

.wp-block-image,
.wp-block-gallery {
    max-width: 100%;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, #1d5d44 0%, #276c56 100%);
    color: #ffffff;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.12);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.header-brand {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    flex-direction: column;
}

.site-logo,
.site-title {
    color: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-decoration: none;
    line-height: 1.1;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.site-title img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.site-title-text {
    display: inline-block;
    line-height: 1.15;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 600;
}

.site-logo img {
    max-height: 55px;
    width: auto;
}

.menu-toggle {
    display: none;
    width: 36px;
    height: 28px;
    position: relative;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #ffffff;
    border-radius: 999px;
    position: absolute;
    left: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}

.nav-toggle {
    display: none;
}

.main-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    width: auto;
    position: relative;
}

.main-menu::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 999px;
    opacity: 0;
}

.main-menu ul,
.main-menu .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap; /* keep items on a single line on large screens */
}

.menu-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap; /* prevent wrapping so 8 items stay on one line */
    white-space: nowrap;
    overflow: hidden;
}

.menu-links li,
.main-menu ul li,
.main-menu .menu li {
    margin: 0;
}

.menu-links li a,
.main-menu ul li a,
.main-menu .menu li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.92rem; /* slightly reduced to fit more items */
    padding: 8px 12px; /* smaller padding to allow 8 items inline */
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
}

/* Make the last menu item look like the contact CTA */
.main-menu .menu-links li:last-child a {
    background: #ffffff;
    color: #276c56;
    padding: 8px 14px; /* match reduced padding but keep CTA visible */
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.main-menu .menu-links li:last-child a:hover {
    background: #f2f2f2;
    color: #276c56;
    transform: translateY(-1px);
}

.header-cta {
    text-align: right;
}

.main-menu {
    gap: 1.2rem;
}

.cta-button {
    display: inline-block;
    color: #318f69;
    background: #ffffff;
    padding: 12px 22px;
    border-radius: 999px;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    transition: transform 0.2s ease, background 0.25s ease;
}

.cta-button:hover,
.cta-button:focus {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.menu-links li a:hover,
.menu-links li a:focus,
.main-menu ul li a:hover,
.main-menu ul li a:focus,
.main-menu .menu li a:hover,
.main-menu .menu li a:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

/* Contact-specific styles removed */

@media (max-width: 1330px) {
    .header-inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        max-width: 1080px;
        gap: 1rem;
    }

    .header-brand {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        width: auto;
    }

    .site-logo,
    .site-title {
        font-size: 1.05rem;
    }

    .site-subtitle {
        font-size: 0.9rem;
    }

    .main-menu ul,
    .main-menu .menu,
    .menu-links {
        gap: 1rem;
    }

    .cta-button {
        padding: 11px 20px;
        font-size: 0.88rem;
    }


    .menu-toggle {
        display: block;
        order: 3;
    }

    .main-menu {
        display: block;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .site-header {
        padding: 14px 0;
    }

    .header-brand {
        align-items: center;
    }

    .main-menu ul,
    .main-menu .menu,
    .menu-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .menu-links li,
    .main-menu ul li,
    .main-menu .menu li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .menu-links li a,
    .main-menu ul li a,
    .main-menu .menu li a {
        white-space: normal;
    }

    .menu-links li:last-child,
    .main-menu ul li:last-child,
    .main-menu .menu li:last-child {
        border-bottom: none;
    }

    .menu-links li a,
    .main-menu ul li a,
    .main-menu .menu li a {
        display: block;
        width: 100%;
        padding: 14px 16px;
    }

    .nav-toggle:checked + .menu-toggle + .main-menu {
        max-height: 600px;
    }

    .header-cta {
        order: 4;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

@media (max-width: 540px) {
    .site-title,
    .site-logo {
        font-size: 1rem;
    }

    .site-subtitle {
        display: none;
    }

    .header-inner {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 0 16px;
    }

    .header-brand {
        gap: 0.6rem;
    }

    .menu-links li a {
        font-size: 0.98rem;
    }

    .menu-toggle {
        margin-left: auto;
    }

    .main-menu {
        max-height: 0;
    }

    .nav-toggle:checked + .menu-toggle + .main-menu {
        max-height: 700px;
    }

    .menu-links li a {
        padding: 14px 16px;
    }

}

/* Styles pour la page Actualités */
.page-actualite {
    padding: 40px 0;
}
.page-actualite .page-header h1 {
    font-size: 2rem;
    margin-bottom: 18px;
    color: #1d5d44;
}
.page-actualite .actualite-section {
    margin-bottom: 22px;
}
.page-actualite h2 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}
.page-actualite ul {
    margin: 0 0 0 1.25rem;
}
.page-actualite li {
    margin-bottom: 6px;
}

/* Ensure archive actualités pushes footer to bottom when content is light */
.archive-actualites {
    display: flex;
    flex-direction: column;
}
.archive-actualites .actualites-list {
    flex: 1 1 auto;


    .header-cta {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }

}

.site-footer {
    background-color: #1d5d44;
    color: #ffffff;
    padding: 32px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.housing-page {
    padding: 60px 0;
}

.housing-intro {
    text-align: center;
    margin-bottom: 42px;
}

.housing-tag {
    display: inline-block;
    margin-bottom: 18px;
    color: #1d5d44;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.85rem;
    font-weight: 700;
}

.housing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 22px;
    margin-bottom: 40px;
}

.housing-card {
    background: #ffffff;
    border: 1px solid #e3e7e5;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(29, 93, 68, 0.08);
}

.housing-card h2 {
    margin-top: 0;
    font-size: 1.25rem;
    color: #1d5d44;
}

.housing-card p,
.housing-card li {
    color: #2e3d35;
    line-height: 1.8;
}

.housing-card ul {
    padding-left: 18px;
    margin: 14px 0 0;
}

.housing-card li {
    margin-bottom: 8px;
}

.housing-card--wide {
    grid-column: 1 / -1;
}

.housing-action {
    background: #f4f9f5;
    border: 1px solid #dbe9df;
    border-radius: 18px;
    padding: 28px;
    text-align: center;
}

.housing-action h2 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #1d5d44;
}

.logement-hero {
    background: linear-gradient(135deg, rgba(29, 93, 68, 0.95), rgba(43, 120, 89, 0.92));
    color: #ffffff;
    padding: 80px 0;
}

.page-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 18px;
    margin-bottom: 18px;
}

.logement-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
}

.logement-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
}

.logement-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: 20px;
    margin: 0 auto 48px;
}

.logement-summary-card {
    background: #f4f9f5;
    border: 1px solid #dbe9df;
    border-radius: 20px;
    padding: 24px;
    text-align: center;
}

.logement-summary-card h3 {
    margin: 0 0 12px;
    color: #1d5d44;
    font-size: 1.1rem;
}

.logement-summary-card p {
    margin: 0;
    color: #2e3d35;
    line-height: 1.7;
}

.logement-list {
    display: grid;
    gap: 32px;
    margin-bottom: 80px;
}

.logement-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    background: #ffffff;
    border: 1px solid #e3e7e5;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(46, 61, 53, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logement-card:hover {
    transform: scale(1.04);
    box-shadow: 0 28px 70px rgba(46, 61, 53, 0.15);
}

.logement-card-image {
    min-height: 260px;
    overflow: hidden;
}

.logement-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logement-card-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.logement-card h2 {
    margin: 0;
    color: #1d5d44;
    font-size: 1.5rem;
    line-height: 1.2;
}

.logement-card h2 a {
    color: inherit;
    text-decoration: none;
}

.logement-card-excerpt {
    margin: 0;
    color: #4a5b4f;
    line-height: 1.8;
}

.logement-card-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 12px;
    color: #2e3d35;
}

.logement-card-features li {
    position: relative;
    padding-left: 18px;
}

.logement-card-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1d5d44;
}

.logement-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #1d5d44;
    font-weight: 700;
}

.logement-card-button {
    margin-top: auto;
    align-self: flex-start;
}

.logement-single-page,
.single-logement-page {
    padding: 60px 0;
}

.logement-single-hero {
    padding-bottom: 40px;
}

.logement-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 22px 0 0;
    color: #2e3d35;
    font-weight: 700;
}

.logement-single-figure {
    margin: 32px 0 0;
    border-radius: 24px;
    overflow: hidden;
}

.logement-single-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.logement-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.logement-details-card {
    background: #ffffff;
    border: 1px solid #e3e7e5;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 14px 30px rgba(46, 61, 53, 0.06);
}

.logement-details-card h2 {
    margin-top: 0;
    color: #1d5d44;
}

.logement-details-card ul {
    padding-left: 18px;
    margin: 16px 0 0;
}

.logement-details-card li {
    margin-bottom: 10px;
    color: #2e3d35;
    line-height: 1.7;
}

.logement-back-button {
    margin-top: 32px;
}

.logement-cta {
    margin-left: auto;
}

.logement-cta-box {
    background: linear-gradient(135deg, rgba(29, 93, 68, 0.08), rgba(49, 143, 105, 0.08));
    border: 2px solid #1d5d44;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logement-cta-box h2 {
    margin-top: 0;
    color: #1d5d44;
    font-size: 1.8rem;
}

.logement-cta-box p {
    color: #2e3d35;
    margin: 12px 0 20px;
    font-size: 1.05rem;
}

.logement-cta-box .cta-button {
    margin-top: auto;
}

@media (max-width: 980px) {
    .logement-summary-grid,
    .logement-details-grid {
        grid-template-columns: 1fr;
    }

    .logement-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .logement-card-features {
        grid-template-columns: 1fr;
    }

    .logement-single-meta {
        flex-direction: column;
    }
}

@media (max-width: 880px) {
    .housing-grid {
        grid-template-columns: 1fr;
    }

    .housing-card--wide {
        grid-column: auto;
    }
}

.footer-text {
    margin: 0;
    font-size: 0.95rem;
}

.footer-credits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 240px;
}

.footer-credits p {
    margin: 0;
    color: #ffffff;
    font-size: 0.95rem;
}

.footer-credits a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 700;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-logos img {
    display: block;
    max-height: 40px;
    width: auto;
    border-radius: 8px;
    background: #ffffff;
    padding: 6px;
}

.footer-social-group,
.footer-partners {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-social-label,
.footer-partners-label {
    margin: 0;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-partners {
    align-items: flex-start;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-social-link {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.footer-social-link:hover,
.footer-social-link:focus {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.footer-social-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 680px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-social {
        margin-top: 1rem;
    }

    /* Styles pour la page "Comment ça marche" */
    .demarche-hero {
        background: linear-gradient(135deg, #f4f9f5 0%, #eef7ef 100%);
        color: #1d5d44;
        padding: 56px 0;
    }

    .demarche-content {
        padding: 40px 0 80px;
        text-align: center;
    }

    .demarche-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(240px, 1fr));
        gap: 20px;
        margin-bottom: 32px;
    }

    .demarche-card {
        background: #ffffff;
        border: 1px solid #e3e7e5;
        border-radius: 16px;
        padding: 22px;
        box-shadow: 0 12px 30px rgba(46,61,53,0.04);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
    }

    .demarche-card:hover {
        transform: scale(1.04);
        box-shadow: 0 20px 50px rgba(46,61,53,0.12);
    }

    .demarche-card h2 {
        margin-top: 0;
        color: #1d5d44;
    }

    .demarche-card ol,
    .demarche-card ul {
        margin: 12px 0 0 18px;
        text-align: left;
    }

    .demarche-posts {
        margin-top: 28px;
        display: grid;
        gap: 18px;
    }

    .demarche-post {
        padding: 18px;
        border-radius: 12px;
        border: 1px solid #e3e7e5;
        background: #fff;
    }

    @media (max-width: 880px) {
        .demarche-grid {
            grid-template-columns: 1fr;
        }
    }
}
