.page-accueil .main-content {
    margin-top: 0;
}

h1 {
    line-height: 1;
}

.title-line, .title-subline {
    display: block;
}
.title-subline {
    font-weight: 300;
    color: #2f1a11;
    font-size: 0.9em;
    margin-top: -0.1em;
}

h2 {
    margin: 1.5rem 0 1rem;
}

a {
    text-decoration: none;
}

a:hover {
    opacity: 1;
}


.site-header {
    position: relative;
    background: var(--navbarBg);
    isolation: isolate;
    z-index: 3000;
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: url('./photos/fond-vieux.jpg') center center / cover no-repeat;
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}

.site-header > * {
    position: relative;
    /* z-index: 1; */
}

.site-header.mobile-mode .nav-menu {
    z-index: 3100;
}

.site-header.mobile-mode .nav-toggle {
    z-index: 3200;
}

/* Bouton de menu mobile en bouton plein, avec le fond de la couleur primaire */
.nav-toggle {
    background: var(--primaryColor);
    border-radius: var(--borderRadius);
    padding: 8px 10px;
}

.nav-toggle span {
    background: var(--primaryContrastColor);
}

/* Harmonisation du sélecteur de langue avec le reste du site */
.nav-lang {
    background: color-mix(in srgb, var(--navbarBg), black 8%);
    border-radius: var(--borderRadius);
}

.nav-lang-flags {
    background: none;
}

.lang-btn {
    color: var(--textColor);
    opacity: 0.6;
    border-radius: calc(var(--borderRadius) / 2);
}

.lang-btn-flags {
    opacity: 1;
    background: none;
}

.lang-btn:hover {
    opacity: 0.85;
}

.lang-btn-flags:hover {
    opacity: 1;
    background: none;
}

.lang-btn.active {
    background: var(--primaryColor);
    color: var(--primaryContrastColor);
    opacity: 1;
    box-shadow: none;
}

.lang-btn-flags.active {
    background: none;
    color: inherit;
    opacity: 1;
}

/* Lightbox: légende en bas, texte blanc, sans fond */
.glightbox-container .ginner-container.desc-bottom,
.glightbox-container .ginner-container.desc-top {
    width: min(92vw, 1100px);
}

.glightbox-container .ginner-container.desc-bottom .gslide-media,
.glightbox-container .ginner-container.desc-top .gslide-media {
    width: 100%;
    justify-content: center;
}

.glightbox-container .gslide-description,
.glightbox-mobile .glightbox-container .gslide-description,
.glightbox-clean .gslide-description {
    position: relative;
    width: 100%;
    max-width: none;
    background: none !important;
    margin-top: 0.75rem;
}

.glightbox-container .gdesc-inner,
.glightbox-mobile .glightbox-container .gdesc-inner,
.glightbox-clean .gdesc-inner {
    padding: 0 2rem 1rem;
    text-align: center;
}

.glightbox-container .gslide-title,
.glightbox-container .gslide-desc,
.glightbox-container .gslide-desc *,
.glightbox-mobile .glightbox-container .gslide-title,
.glightbox-mobile .glightbox-container .gslide-desc,
.glightbox-mobile .glightbox-container .gslide-desc *,
.glightbox-clean .gslide-title,
.glightbox-clean .gslide-desc,
.glightbox-clean .gslide-desc * {
    color: #fff !important;
}

.glightbox-container .gslide-title,
.glightbox-mobile .glightbox-container .gslide-title,
.glightbox-clean .gslide-title {
    margin-bottom: 0.35rem;
}

.glightbox-container .gslide-desc,
.glightbox-mobile .glightbox-container .gslide-desc,
.glightbox-clean .gslide-desc {
    font-size: 0.95rem;
    line-height: 1.5;
}




/* Footer */
.main-footer {
    margin-top: 3rem;
    padding: 6rem 0 clamp(10rem, 30vw, 35rem);
    background: url(./photos/bg-footer.jpg) bottom center no-repeat, linear-gradient(to bottom, #f1e8d2 0%, #ffffff 40%);
    background-size: min(90%, 1800px) auto, auto auto;
    color: var(--textColor);
}


@media 
(-webkit-min-device-pixel-ratio: 1.5), 
(min-resolution: 144dpi) {
    .main-footer {
        background: url(./photos/bg-footer-2x.jpg) bottom center no-repeat, linear-gradient(to bottom, #f1e8d2 0%, #ffffff 40%);
            background-size: min(90%, 1800px) auto, auto auto;
    }
}

.main-footer .footer-container { max-width: 900px; margin: 0 auto; padding: 0 2rem; text-align: center; }

.main-footer .footer-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.main-footer .footer-col h3 {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    color: var(--textColor);
}

.main-footer .footer-col p { margin-bottom: 0.4rem; }

.main-footer .footer-sitemap { list-style: none; margin: 0; padding: 0; }
.main-footer .footer-sitemap li { margin-bottom: 0.4rem; }

.main-footer .footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.main-footer .footer-separator { margin: 0 0.2rem; }

.main-footer a {
    font-weight: 700;
}

@media (max-width: 768px) {
    .main-footer .footer-container { max-width: 380px;}
    .main-footer .footer-columns { grid-template-columns: 1fr; gap: 1.5rem; }
}



.main-nav {
    /* background: #f5e1b7; */
    background: linear-gradient(to bottom, #E7DAC1 0%, #f9f3df 100%);
}


.nav-menu {
    justify-content: center;
}

.nav-container {
    padding:0;
}

.nav-links {
    gap:2rem;
}
.nav-links a {
    text-transform:uppercase;padding:1rem;    
    display: inline-block;
    font-weight: 700;
    font-size: 1rem;
}

.logo img {
    border-radius:50px;
}


.grid-container.footer-logos {
    max-width: 400px;
    margin: auto;
    align-items: center;
}

.nav-links a {

}

@media (max-width: 1000px) {
    .site-brand.logo img {
        max-height: 120px!important;
        border-radius: 30px;
    }
}
@media (max-width: 500px) {
    .site-brand.logo img {
        max-height: 90px!important;
        border-radius: 20px;
    }
    .site-brand-name {
        display: none;
    }
}


/* Hero accueil FR (fullwidth) */
.hero-barfleur.fullwidth-section {
    position: relative;
    min-height: clamp(430px, 48vw, 560px);
    margin-top: 0;
    margin-bottom: 2.5rem;
    padding: 0;
    background: #e7dcc8 url('./photos/gite-barfleur.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-barfleur.fullwidth-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 42%),
        linear-gradient(90deg, rgba(247, 240, 228, 0.95) 0%, rgba(247, 240, 228, 0.86) 34%, rgba(247, 240, 228, 0.38) 56%, rgba(247, 240, 228, 0) 75%);
    pointer-events: none;
    z-index: 0;
}

.hero-barfleur.fullwidth-section::after {
    content: '';
    position: absolute;
    display: block;
    right: 0;
    bottom: -2%;
    width: 150px;
    height: 150px;
    background: url('./photos/rouge-gorge.svg') bottom right / contain no-repeat;
    pointer-events: none;
    transform: scaleX(-1) translateX(100%) translateY(0);
    transform-origin: bottom right;
    will-change: transform;
    z-index: 2;
}

.hero-barfleur.fullwidth-section:hover::after {
    animation: rouge-gorge-hop 0.35s ease-in-out infinite;
}

@keyframes rouge-gorge-hop {
    0%,
    100% {
        transform: scaleX(-1) translateX(100%) translateY(0);
    }
    35% {
        transform: scaleX(-1) translateX(100%) translateY(-7px) rotate(-2deg);
    }
    60% {
        transform: scaleX(-1) translateX(100%) translateY(-2px) rotate(1deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-barfleur.fullwidth-section:hover::after {
        animation: none;
    }
}

.hero-barfleur-inner.fullwidth-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: clamp(2.2rem, 5vw, 4rem);
    padding-bottom: clamp(2.2rem, 5vw, 4rem);
}

.hero-barfleur-content {
    max-width: 540px;
}

.hero-barfleur-content h1 {
    margin: 0;
    font-size: clamp(2rem, 4.8vw, 4.1rem);
    line-height: 0.98;
    color: #2f1a11;
}

.hero-barfleur-content p {
    margin: 1.3rem 0 0;
    max-width: 50ch;
    font-size: clamp(1rem, 1.4vw, 1.35rem);
    color: #43352f;
}

.hero-barfleur-actions {
    margin-top: 1.7rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.hero-barfleur-actions .btn {
    min-width: 220px;
    min-height: 46px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero-barfleur .hero-btn-outline {
    background: rgba(255, 255, 255, 0.92);
    color: #4f3627;
    border: 1px solid rgba(147, 95, 49, 0.6);
}

.hero-barfleur .hero-btn-outline:hover {
    filter: none;
    background: #fff;
}

@media (max-width: 900px) {
    .hero-barfleur.fullwidth-section {
        min-height: auto;
        background-position: 62% center;
    }

    .hero-barfleur.fullwidth-section::before {
        background: linear-gradient(0deg, rgba(247, 240, 228, 0.94) 0%, rgba(247, 240, 228, 0.82) 44%, rgba(247, 240, 228, 0.36) 100%);
    }

    .hero-barfleur-content {
        max-width: none;
    }

    .hero-barfleur-actions .btn {
        min-width: 0;
        width: 100%;
    }

    .hero-barfleur-inner.fullwidth-inner {
        padding-bottom: 7rem;
    }
    .hero-barfleur.fullwidth-section::after {
        width: 100px;
        height: 100px;
    }
}


.shortcode-image {
        box-shadow: 4px 4px 12px #0000002b;
    }
    
    
    .table th {
        background: #8c5b30;
        color: #fff;
        font-weight: 700;
    }
    
    .table th, .table td {
        padding: 0.6rem 0.9rem;
        border: 1px solid #F1E8D2;
        text-align: left;
    }
    
    .table tbody tr:nth-child(even) {
        background: #FAF6EC;
    }
    
    
    .gallery-link {
    box-shadow: 4px 4px 12px #0000002b;

}


.footer-logos img {box-shadow:none;}



section.fullwidth-section.message-accueil {
    margin-top: -2.5rem;
    background: linear-gradient(360deg, #F9BB4Faa 0%, #ffefd3 50%, #F9BB4Faa 100%);
}

section.fullwidth-section.message-accueil p {margin-bottom:0px;text-align:center;font-size:1.2rem;}