/*
Theme Name: La Bande à Papattes
Theme URI: https://www.labandeapapattes.fr/
Author: La Bande à Papattes
Description: Thème WordPress indépendant créé pour La Bande à Papattes.
Version: 1.26.0
Text Domain: la-bande-a-papattes
*/

:root {
    --lbp-bg: #c9903e;
    --lbp-text: #3a2f2c;
    --lbp-muted: #806f69;
    --lbp-accent: #e66f83;
    --lbp-accent-2: #c9903e;
    --lbp-accent-soft: #ffe6eb;
    --lbp-border: #efd8cf;
    --lbp-footer: #5d4037;
    --lbp-shadow: 0 10px 30px rgba(0,0,0,.07);
    --lbp-radius: 18px;
    --lbp-max: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        radial-gradient(circle at 12% 12%, rgba(255,255,255,.10), transparent 24%),
        radial-gradient(circle at 88% 32%, rgba(105,68,30,.10), transparent 26%),
        #c9903e;
    color: var(--lbp-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

img {
    max-width: 100%;
    height: auto;
}

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

a:hover,
a:focus {
    color: var(--lbp-accent);
}

.lbp-container {
    width: min(calc(100% - 40px), var(--lbp-max));
    margin-inline: auto;
}

/* HEADER */
.site-header {
    position: relative;
    z-index: 100;
    background: rgba(255,250,240,.97);
    border-bottom: 4px solid #c9903e;
    box-shadow: 0 7px 25px rgba(90,58,48,.08);
}

.header-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-branding {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.custom-logo {
    display: block;
    max-height: 72px;
    width: auto;
}

.site-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.primary-navigation {
    margin-left: auto;
}

.primary-navigation .menu,
.primary-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-navigation > div > ul,
.primary-navigation > ul {
    display: flex;
    align-items: center;
    gap: 6px;
}

.primary-navigation li {
    position: relative;
}

.primary-navigation a {
    display: block;
    padding: 12px 10px;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 600;
}

.primary-navigation li:hover > a,
.primary-navigation li:focus-within > a,
.primary-navigation .current-menu-item > a,
.primary-navigation .current-menu-ancestor > a {
    background: var(--lbp-accent-soft);
    color: var(--lbp-accent);
}

.primary-navigation .sub-menu {
    position: absolute;
    z-index: 9999;
    pointer-events: auto;
    top: 100%;
    left: 0;
    min-width: 220px;
    display: none;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--lbp-border);
    border-radius: 14px;
    box-shadow: var(--lbp-shadow);
}

.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu {
    display: block;
}

.primary-navigation .sub-menu a {
    padding: 10px 12px;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    padding: 10px 14px;
    border: 1px solid var(--lbp-border);
    border-radius: 12px;
    background: #fff;
    color: var(--lbp-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}


/* PAGE D'ACCUEIL */
.home-hero {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    padding: 72px 0;
    background:
        linear-gradient(135deg, rgba(110,72,31,.18), rgba(201,144,62,.10)),
        #c9903e;
    background-size: cover;
    background-position: center;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(48,30,26,.10), rgba(48,30,26,.28));
    pointer-events: none;
}

.home-hero-inner {
    position: relative;
    z-index: 1;
}

.home-content-card {
    width: min(820px, 100%);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 30px;
    background: rgba(255,250,240,.94);
    box-shadow: 0 24px 65px rgba(60,35,30,.22);
    backdrop-filter: blur(5px);
}

.home-content-card h1,
.home-content-card h2,
.home-content-card h3 {
    color: #51352e;
}

.home-content-card h1:first-child,
.home-content-card h2:first-child {
    margin-top: 0;
}

.home-content-card a {
    color: #b84e64;
}

.home-decoration {
    text-align: center;
    font-size: 1.3rem;
    letter-spacing: .5rem;
    margin-bottom: 18px;
}

/* Pages intérieures */
.content-wrap {
    background: rgba(255,250,240,.94);
    border-radius: 28px;
    box-shadow: 0 14px 40px rgba(90,58,48,.08);
    margin-top: 44px;
    margin-bottom: 54px;
    padding-left: clamp(22px, 4vw, 48px);
    padding-right: clamp(22px, 4vw, 48px);
}

/* CONTENT */
.site-main {
    min-height: 55vh;
}

.content-wrap {
    padding: 48px 0 64px;
}

.entry-header {
    margin-bottom: 28px;
}

.entry-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.15;
}

.entry-content {
    font-size: 1.05rem;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content a {
    color: var(--lbp-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entry-content .wp-block-button__link,
.entry-content .button {
    text-decoration: none;
}

.post-card {
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--lbp-border);
    border-radius: var(--lbp-radius);
    box-shadow: var(--lbp-shadow);
}

/* FOOTER */
.site-footer {
    margin-top: 40px;
    color: #fff8f2;
    background:
        radial-gradient(circle at 18% 10%, rgba(255,255,255,.08), transparent 26%),
        linear-gradient(135deg, #9d6d2c, #b47e35 52%, #8a5d26);
    border-top: 4px solid #e9a15c;
}

.footer-inner {
    padding: 44px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.25fr .8fr;
    gap: 34px;
    align-items: stretch;
}

.footer-column {
    min-width: 0;
}

.footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column li + li {
    margin-top: 14px;
}

.footer-column a {
    display: inline-block;
    font-weight: 600;
    line-height: 1.35;
}

.footer-column a:hover,
.footer-column a:focus {
    color: var(--lbp-accent);
}

.footer-contact {
    display: flex;
    align-items: center;
}

.footer-contact ul {
    width: 100%;
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--lbp-border);
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid var(--lbp-border);
    color: rgba(255,248,242,.78);
    text-align: center;
    font-size: .9rem;
}

/* WORDPRESS */
.alignwide {
    width: min(100%, 1400px);
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* TABLET / MOBILE */
@media (max-width: 1100px) {
    .header-inner {
        min-height: 78px;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .primary-navigation {
        display: none;
        flex-basis: 100%;
        width: 100%;
        margin: 0;
        padding-bottom: 14px;
    }

    .primary-navigation.is-open {
        display: block;
    }

    .primary-navigation > div > ul,
    .primary-navigation > ul {
        display: block;
    }

    .primary-navigation a {
        padding: 11px 12px;
    }

    .primary-navigation .sub-menu {
        position: static;
        display: block;
        min-width: 0;
        margin-left: 18px;
        padding: 0 0 0 10px;
        border: 0;
        border-left: 2px solid var(--lbp-accent-soft);
        border-radius: 0;
        box-shadow: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-contact {
        align-items: flex-start;
    }
}

@media (max-width: 680px) {
    .lbp-container {
        width: min(calc(100% - 28px), var(--lbp-max));
    }

    .custom-logo {
        max-height: 58px;
    }

    .content-wrap {
        padding: 32px 0 44px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-contact {
        display: block;
    }

    .footer-contact a {
        justify-content: flex-start;
    }
}


.site-footer a { color: #fff9f5; }
.site-footer a:hover,
.site-footer a:focus { color: #ffd6aa; }

.footer-column {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
}

.footer-contact {
    background: transparent;
    border: 0;
}

.footer-contact a {
    color: #4f352f;
    background: #fff0de;
    border-color: rgba(255,255,255,.25);
}

.footer-contact a:hover,
.footer-contact a:focus {
    color: #9f4659;
    background: #fff8ef;
}

@media (max-width: 680px) {
    .home-hero {
        min-height: auto;
        padding: 34px 0;
    }
    .home-content-card {
        border-radius: 22px;
        padding: 24px 20px;
    }
    .content-wrap {
        margin-top: 24px;
        margin-bottom: 30px;
    }
}


/* Footer v1.2 : 3 colonnes + Contact centré verticalement */
.footer-grid {
    grid-template-columns: 1fr 1fr 1.25fr .78fr;
    align-items: stretch;
}

.footer-column:not(.footer-contact) {
    min-height: 112px;
    display: flex;
    align-items: center;
}

.footer-column:not(.footer-contact) > ul {
    width: 100%;
}

.footer-contact {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-contact ul {
    display: flex;
    justify-content: center;
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 680px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-column:not(.footer-contact),
    .footer-contact {
        min-height: auto;
        display: block;
    }
    .footer-contact ul {
        display: block;
    }
}


/* ==========================================================
   V1.3 — PHOTO D'ARRIÈRE-PLAN SUR CHAQUE PAGE
   ========================================================== */

.lbp-page-background {
    position: relative;
    min-height: 65vh;
    padding: 54px 0 70px;
    background-color: #c9903e;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.lbp-page-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(84,57,31,.38), rgba(201,144,62,.22)),
        rgba(52,35,25,.18);
    pointer-events: none;
}

.lbp-page-background > .lbp-container {
    position: relative;
    z-index: 1;
}

.lbp-page-background .content-wrap {
    margin-top: 0;
    margin-bottom: 0;
    background: rgba(255,250,240,.93);
    backdrop-filter: blur(4px);
}

/* Si une page n'a pas d'image dédiée, le fond doré reste visible. */
.lbp-no-background-image {
    background:
        radial-gradient(circle at 12% 12%, rgba(255,255,255,.10), transparent 24%),
        radial-gradient(circle at 88% 32%, rgba(105,68,30,.12), transparent 26%),
        #c9903e;
}

/* ==========================================================
   GALERIES / ALBUMS
   Les images deviennent ouvrables même si l'ancien thème
   gérait auparavant la lightbox.
   ========================================================== */

.entry-content .wp-block-gallery img,
.entry-content .gallery img,
.entry-content figure.wp-block-image img,
.entry-content img.lbp-album-image {
    cursor: zoom-in;
}

.entry-content .wp-block-gallery,
.entry-content .gallery {
    gap: 14px;
}

.entry-content .wp-block-gallery figure,
.entry-content .gallery-item {
    overflow: hidden;
    border-radius: 16px;
}

.entry-content .wp-block-gallery img,
.entry-content .gallery img {
    transition: transform .22s ease, filter .22s ease;
}

.entry-content .wp-block-gallery img:hover,
.entry-content .gallery img:hover {
    transform: scale(1.025);
    filter: brightness(.96);
}

.lbp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px 76px;
    background: rgba(25,18,14,.92);
}

.lbp-lightbox.is-open {
    display: flex;
}

.lbp-lightbox-image {
    max-width: min(94vw, 1500px);
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 70px rgba(0,0,0,.45);
}

.lbp-lightbox-close,
.lbp-lightbox-prev,
.lbp-lightbox-next {
    position: absolute;
    border: 0;
    background: rgba(255,250,240,.92);
    color: #573b2f;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0,0,0,.22);
}

.lbp-lightbox-close {
    top: 18px;
    right: 20px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
}

.lbp-lightbox-prev,
.lbp-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 70px;
    border-radius: 14px;
    font-size: 2rem;
}

.lbp-lightbox-prev { left: 16px; }
.lbp-lightbox-next { right: 16px; }


body.lbp-lightbox-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .lbp-page-background {
        background-attachment: scroll;
    }

    .lbp-lightbox {
        padding: 24px 52px;
    }

    .lbp-lightbox-prev,
    .lbp-lightbox-next {
        width: 42px;
        height: 58px;
    }
}

@media (max-width: 680px) {
    .lbp-page-background {
        padding: 28px 0 38px;
    }

    .lbp-lightbox {
        padding: 20px 10px 62px;
    }

    .lbp-lightbox-prev,
    .lbp-lightbox-next {
        top: auto;
        bottom: 10px;
        transform: none;
        width: 48px;
        height: 42px;
    }

    .lbp-lightbox-prev { left: calc(50% - 62px); }
    .lbp-lightbox-next { right: calc(50% - 62px); }

    .lbp-lightbox-counter {
        bottom: 17px;
    }
}


/* V1.4 — cartes "Nos Border Collies" toujours cliquables */
.entry-content a.lbp-dog-profile-link,
.entry-content .wp-block-button a.lbp-dog-profile-link {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 5;
}

.lbp-dog-card-clickable {
    position: relative;
}

.lbp-dog-card-clickable::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Aperçu dans l'éditeur pour la photo de fond de page */
.lbp-page-bg-preview {
    margin-top: 12px;
    max-width: 420px;
}

.lbp-page-bg-preview img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}


/* ==========================================================
   V1.5 — ARRIÈRE-PLANS TOURNANTS
   ========================================================== */
.lbp-page-background,
.home-hero {
    transition: background-image .8s ease-in-out;
}

/* ==========================================================
   V1.5 — PORTÉES DISPONIBLES : 4 CHIOTS PAR LIGNE SUR PC
   Le contenu reste entièrement modifiable dans WordPress.
   ========================================================== */
@media (min-width: 1000px) {
    body.lbp-portees-page .lbp-container {
        width: min(calc(100% - 40px), 1480px);
    }

    body.lbp-portees-page .content-wrap {
        max-width: none;
        padding: 34px 34px 44px;
    }

    body.lbp-portees-page .entry-content {
        width: 100%;
    }

    body.lbp-portees-page .entry-content .wp-block-columns {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 24px !important;
        align-items: stretch !important;
    }

    body.lbp-portees-page .entry-content .wp-block-column {
        width: auto !important;
        flex-basis: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    body.lbp-portees-page .entry-content .wp-block-image {
        margin: 0 0 12px !important;
    }

    body.lbp-portees-page .entry-content .wp-block-image img {
        width: 100%;
        height: 270px;
        object-fit: cover;
        border-radius: 16px;
    }

    body.lbp-portees-page .entry-content h2,
    body.lbp-portees-page .entry-content h3,
    body.lbp-portees-page .entry-content h4,
    body.lbp-portees-page .entry-content p {
        margin-top: 8px;
        margin-bottom: 8px;
    }

    body.lbp-portees-page .entry-content .wp-block-button,
    body.lbp-portees-page .entry-content .wp-block-buttons {
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }
}

@media (min-width: 700px) and (max-width: 999px) {
    body.lbp-portees-page .entry-content .wp-block-columns {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px !important;
    }

    body.lbp-portees-page .entry-content .wp-block-column {
        width: auto !important;
        flex-basis: auto !important;
        margin: 0 !important;
    }
}


/* ==========================================================
   V1.6 — CONTENU PLUS TRANSPARENT POUR VOIR LE FOND
   ========================================================== */
.home-content-card,
.lbp-page-background .content-wrap {
    background: rgba(255, 250, 240, var(--lbp-panel-opacity, .70)) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* ==========================================================
   V1.6 — PORTÉES DISPONIBLES
   On utilise directement TES .card / .nom / .sex / .statut.
   Aucune donnée n'est copiée : ce que tu modifies dans la page
   WordPress reste la source unique.
   ========================================================== */

body.lbp-portees-page .content-wrap {
    max-width: none !important;
}

body.lbp-portees-page .entry-content {
    width: 100%;
}

body.lbp-portees-page .lbp-puppy-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 24px 0 34px;
}

body.lbp-portees-page .entry-content .card {
    min-width: 0;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(201,144,62,.28);
    box-shadow: 0 8px 24px rgba(72,46,30,.10);
    text-align: center;
}

body.lbp-portees-page .entry-content .card img {
    display: block;
    width: 100% !important;
    height: 250px !important;
    max-width: none !important;
    object-fit: cover;
    margin: 0 !important;
    border-radius: 0 !important;
}

body.lbp-portees-page .entry-content .card .nom {
    margin: 14px 12px 2px !important;
    font-size: 1.25rem;
    font-weight: 800;
    color: #493d37;
}

body.lbp-portees-page .entry-content .card .sex {
    margin: 0 12px 12px !important;
    color: #806f69;
}

body.lbp-portees-page .entry-content .card .statut {
    display: block;
    margin: 0 14px 16px;
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1.2;
}

body.lbp-portees-page .entry-content .card .statut.red,
body.lbp-portees-page .entry-content .card.reserve .statut {
    background: #ff6868;
    color: #fff;
}

body.lbp-portees-page .entry-content .card .statut.green,
body.lbp-portees-page .entry-content .card.dispo .statut {
    background: #9fdb9f;
    color: #204b26;
}

@media (min-width: 1200px) {
    body.lbp-portees-page .lbp-container {
        width: min(calc(100% - 40px), 1540px);
    }
}

@media (max-width: 999px) {
    body.lbp-portees-page .lbp-puppy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 620px) {
    body.lbp-portees-page .lbp-puppy-grid {
        grid-template-columns: 1fr;
    }

    body.lbp-portees-page .entry-content .card img {
        height: auto !important;
        aspect-ratio: 4 / 3;
    }
}


/* ==========================================================
   V1.6.1 — SUPPRIME LE "DOUBLE FOND BLANC"
   Certains contenus WordPress contiennent encore des Groupes/Colonnes
   avec un fond blanc hérité de l'ancien thème ou défini dans Gutenberg.
   On garde UNE SEULE couche translucide : .content-wrap.
   ========================================================== */

.lbp-page-background .entry-content > .wp-block-group,
.lbp-page-background .entry-content > .wp-block-columns,
.lbp-page-background .entry-content > .wp-block-cover,
.lbp-page-background .entry-content .wp-block-group.has-background,
.lbp-page-background .entry-content .wp-block-column.has-background {
    background-color: transparent !important;
    background-image: none !important;
}

/* Les fonds blancs inline ajoutés par Gutenberg deviennent transparents
   uniquement dans le contenu principal des pages. */
.lbp-page-background .entry-content [style*="background-color:#fff"],
.lbp-page-background .entry-content [style*="background-color: #fff"],
.lbp-page-background .entry-content [style*="background-color:white"],
.lbp-page-background .entry-content [style*="background-color: white"],
.lbp-page-background .entry-content [style*="background:#fff"],
.lbp-page-background .entry-content [style*="background: #fff"],
.lbp-page-background .entry-content [style*="background:white"],
.lbp-page-background .entry-content [style*="background: white"] {
    background: transparent !important;
}

/* Le panneau principal est l'unique voile clair */
.lbp-page-background .content-wrap,
.home-content-card {
    background: rgba(255, 250, 240, var(--lbp-panel-opacity, .62)) !important;
    box-shadow: 0 18px 48px rgba(52,35,25,.18);
    border: 1px solid rgba(255,255,255,.34);
}

/* Si l'ancien contenu contient une carte interne, on la fond visuellement
   dans la carte principale tout en gardant l'espacement du texte. */
.lbp-page-background .entry-content .wp-block-group,
.lbp-page-background .entry-content .wp-block-column {
    box-shadow: none !important;
}

/* Sur l'accueil, évite un deuxième panneau blanc à l'intérieur */
.home-content-card .wp-block-group.has-background,
.home-content-card .wp-block-column.has-background {
    background: transparent !important;
    box-shadow: none !important;
}


/* ==========================================================
   V1.6.2 — HEADER ASSORTI AU FOOTER
   ========================================================== */
.site-header {
    background:
        radial-gradient(circle at 18% 10%, rgba(255,255,255,.08), transparent 26%),
        linear-gradient(135deg, #9d6d2c, #b47e35 52%, #8a5d26) !important;
    border-bottom: 4px solid #c9903e !important;
    box-shadow: 0 7px 25px rgba(72,46,30,.18);
}

.site-header .site-title,
.site-header .primary-navigation a,
.site-header .menu-toggle {
    color: #fff8f2;
}

.site-header .primary-navigation li:hover > a,
.site-header .primary-navigation li:focus-within > a,
.site-header .primary-navigation .current-menu-item > a,
.site-header .primary-navigation .current-menu-ancestor > a {
    background: rgba(255,255,255,.14);
    color: #fff8f2;
}

.site-header .primary-navigation .sub-menu {
    background:
        linear-gradient(135deg, #9d6d2c, #b47e35 52%, #8a5d26);
    border-color: rgba(255,255,255,.18);
}

.site-header .primary-navigation .sub-menu a {
    color: #fff8f2;
}

.site-header .primary-navigation .sub-menu a:hover,
.site-header .primary-navigation .sub-menu a:focus {
    background: rgba(255,255,255,.14);
    color: #fff8f2;
}

.site-header .menu-toggle {
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.22);
}

.site-header .menu-toggle:hover,
.site-header .menu-toggle:focus {
    background: rgba(255,255,255,.18);
}

@media (max-width: 1100px) {
    .site-header .primary-navigation {
        background: transparent;
    }
}


/* ==========================================================
   V1.7 — TRANSPARENCE UNIFORME
   ========================================================== */

/* Les anciens conteneurs de contenu ne doivent plus recréer
   un deuxième panneau blanc par-dessus celui du thème. */
.lbp-page-background .entry-content .lbp-force-transparent,
.home-content-card .lbp-force-transparent {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* On garde volontairement leur fond aux cartes chiots,
   boutons, statuts et éléments interactifs. */
.lbp-page-background .entry-content .card,
.lbp-page-background .entry-content .statut,
.lbp-page-background .entry-content .wp-block-button__link,
.lbp-page-background .entry-content button,
.lbp-page-background .entry-content input,
.lbp-page-background .entry-content textarea,
.lbp-page-background .entry-content select {
    background-image: initial;
}

/* ==========================================================
   V1.7 — BOUTONS D'ANNÉES COLORÉS
   Même esprit que "La vie de la bande"
   ========================================================== */

.entry-content .lbp-year-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    min-height: 58px;
    padding: 14px 26px !important;
    border: 0 !important;
    border-radius: 14px !important;
    color: #fff !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: 0 8px 22px rgba(60,35,30,.18) !important;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.entry-content .lbp-year-button:hover,
.entry-content .lbp-year-button:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(60,35,30,.24) !important;
    filter: brightness(1.04);
    color: #fff !important;
}

.entry-content .lbp-year-2026 {
    background: linear-gradient(135deg, #6b5cff, #9a36ff) !important;
}

.entry-content .lbp-year-2025 {
    background: linear-gradient(135deg, #d44bff, #ff46c7) !important;
}

.entry-content .lbp-year-2024 {
    background: linear-gradient(135deg, #14c98d, #28c9d9) !important;
}

.entry-content .lbp-year-2023 {
    background: linear-gradient(135deg, #f6c415, #ff9d19) !important;
}

.entry-content .lbp-year-2022 {
    background: linear-gradient(135deg, #ff4aa2, #ff5c7b) !important;
}

/* Si le bouton est dans un bloc Gutenberg blanc, il reste coloré. */
.entry-content .wp-block-button .lbp-year-button {
    width: 100%;
}

/* ==========================================================
   V1.7 — LIGHTBOX / ALBUMS
   ========================================================== */

.entry-content img:not(.emoji):not(.avatar) {
    cursor: zoom-in;
}

.lbp-lightbox {
    touch-action: pan-y;
}

.lbp-lightbox-prev,
.lbp-lightbox-next {
    z-index: 2;
}

.lbp-lightbox-prev[hidden],
.lbp-lightbox-next[hidden] {
    display: none !important;
}

.lbp-lightbox-caption {
    position: absolute;
    left: 50%;
    bottom: 48px;
    transform: translateX(-50%);
    max-width: min(80vw, 850px);
    padding: 7px 12px;
    border-radius: 10px;
    background: rgba(255,250,240,.88);
    color: #573b2f;
    text-align: center;
    font-size: .9rem;
}

@media (max-width: 680px) {
    .entry-content .lbp-year-button {
        min-width: 0;
        width: 100%;
    }

    .lbp-lightbox-caption {
        bottom: 58px;
        max-width: 92vw;
    }
}


/* ==========================================================
   V1.8 — LIENS EXTERNES TOUJOURS CLIQUABLES
   ========================================================== */
.site-main a,
.entry-content a,
.entry-content .partner-card a,
.entry-content .social-links a {
    position: relative;
    z-index: 20;
    pointer-events: auto !important;
}

/* Les images qui sont déjà un lien vers un site externe ne sont
   jamais transformées en bouton de galerie. */
.entry-content a.lbp-external-link img,
.site-main a.lbp-external-link img {
    cursor: pointer !important;
}

/* ==========================================================
   V1.8 — LIGHTBOX
   ========================================================== */
.lbp-gallery-image {
    cursor: zoom-in !important;
}


/* ==========================================================
   V1.9 — LIGHTBOX UNIQUE SANS COMPTEUR
   ========================================================== */

.lbp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px 76px;
    background: rgba(25,18,14,.92);
}

.lbp-lightbox.is-open {
    display: flex;
}

.lbp-lightbox-image {
    max-width: min(94vw, 1500px);
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 70px rgba(0,0,0,.45);
}

.lbp-lightbox-close,
.lbp-lightbox-prev,
.lbp-lightbox-next {
    position: absolute;
    border: 0;
    background: rgba(255,250,240,.92);
    color: #573b2f;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0,0,0,.22);
}

.lbp-lightbox-close {
    top: 18px;
    right: 20px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
}

.lbp-lightbox-prev,
.lbp-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 70px;
    border-radius: 14px;
    font-size: 2rem;
}

.lbp-lightbox-prev { left: 16px; }
.lbp-lightbox-next { right: 16px; }

.lbp-lightbox-caption {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    max-width: min(80vw, 850px);
    padding: 7px 12px;
    border-radius: 10px;
    background: rgba(255,250,240,.88);
    color: #573b2f;
    text-align: center;
    font-size: .9rem;
}

body.lbp-lightbox-open {
    overflow: hidden;
}

@media (max-width: 680px) {
    .lbp-lightbox {
        padding: 20px 10px 72px;
    }

    .lbp-lightbox-prev,
    .lbp-lightbox-next {
        top: auto;
        bottom: 10px;
        transform: none;
        width: 48px;
        height: 42px;
    }

    .lbp-lightbox-prev { left: calc(50% - 62px); }
    .lbp-lightbox-next { right: calc(50% - 62px); }

    .lbp-lightbox-caption {
        bottom: 58px;
        max-width: 92vw;
    }
}


/* ==========================================================
   V1.11 — BOUTONS D'ANNÉES DE LA PAGE "DÉPARTS EN FAMILLE"
   IMPORTANT : ne touche pas à la transparence de la v1.9.
   Les "boutons" de cette page sont des DIV avec onclick="toggleGallery(...)"
   et non des balises <a> ou <button>.
   ========================================================== */

.entry-content div[onclick^="toggleGallery("] {
    color: #fff !important;
    border: 0 !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 25px rgba(60,35,30,.18) !important;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
    cursor: pointer !important;
}

.entry-content div[onclick^="toggleGallery("]:hover,
.entry-content div[onclick^="toggleGallery("]:focus {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 14px 30px rgba(60,35,30,.24) !important;
    filter: brightness(1.05);
}

.entry-content div[onclick="toggleGallery(2025)"] {
    background: linear-gradient(135deg, #d94cff, #ff4fc8) !important;
}

.entry-content div[onclick="toggleGallery(2024)"] {
    background: linear-gradient(135deg, #17c98c, #21c8d8) !important;
}

.entry-content div[onclick="toggleGallery(2023)"] {
    background: linear-gradient(135deg, #f3b816, #ff8d1b) !important;
}

.entry-content div[onclick="toggleGallery(2022)"] {
    background: linear-gradient(135deg, #ff4d9a, #ff6675) !important;
}

.entry-content div[onclick^="toggleGallery("] h2,
.entry-content div[onclick^="toggleGallery("] h3,
.entry-content div[onclick^="toggleGallery("] p,
.entry-content div[onclick^="toggleGallery("] span {
    color: #fff !important;
}

/* Si une future année 2026 est ajoutée avec le même système */
.entry-content div[onclick="toggleGallery(2026)"] {
    background: linear-gradient(135deg, #6f5cff, #a142ff) !important;
}


/* ==========================================================
   V1.14 — ÉCRAN D'ACCUEIL / LOGO D'INTRODUCTION
   ========================================================== */

#lbp-splash {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 20% 15%, rgba(255,255,255,.08), transparent 28%),
        linear-gradient(135deg, #9d6d2c, #b47e35 52%, #8a5d26);
    opacity: 1;
    visibility: visible;
    transition: opacity .55s ease, visibility .55s ease;
}

#lbp-splash.lbp-splash-hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#lbp-splash .lbp-splash-inner {
    width: min(82vw, 760px);
    text-align: center;
    animation: lbpSplashIn .75s ease both;
}

#lbp-splash .lbp-splash-logo {
    display: block;
    width: min(72vw, 620px);
    max-height: 70vh;
    object-fit: contain;
    margin: 0 auto;
    filter: drop-shadow(0 16px 34px rgba(0,0,0,.22));
}

#lbp-splash .lbp-splash-name {
    margin-top: 18px;
    color: #fff8f2;
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: .02em;
    text-shadow: 0 3px 16px rgba(0,0,0,.18);
}

body.lbp-splash-open {
    overflow: hidden;
}

@keyframes lbpSplashIn {
    from {
        opacity: 0;
        transform: scale(.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 900px) {
    #lbp-splash .lbp-splash-inner {
        width: min(88vw, 560px);
    }

    #lbp-splash .lbp-splash-logo {
        width: min(78vw, 500px);
        max-height: 62vh;
    }
}

@media (max-width: 600px) {
    #lbp-splash .lbp-splash-inner {
        width: 90vw;
    }

    #lbp-splash .lbp-splash-logo {
        width: min(84vw, 380px);
        max-height: 58vh;
    }

    #lbp-splash .lbp-splash-name {
        font-size: 1.35rem;
        margin-top: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #lbp-splash,
    #lbp-splash .lbp-splash-inner {
        transition: none !important;
        animation: none !important;
    }
}


/* ==========================================================
   V1.15 — LOGO PLUS NET DANS LE HEADER ET L'INTRO
   Aucun changement aux autres styles validés.
   ========================================================== */

/* Logo du header : on utilise le fichier original du thème,
   pas une miniature WordPress potentiellement redimensionnée. */
.lbp-theme-logo-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.lbp-theme-logo {
    display: block;
    width: auto;
    height: 76px;
    max-width: 185px;
    object-fit: contain;
}

/* Sur l'écran d'introduction on évite d'agrandir le fichier
   au-delà de sa taille native, ce qui supprimait le flou. */
#lbp-splash .lbp-splash-logo {
    width: min(82vw, 500px) !important;
    height: auto !important;
    max-height: 72vh !important;
    object-fit: contain !important;
    image-rendering: auto;
}

/* Petit panneau propre derrière le logo blanc */
#lbp-splash .lbp-splash-logo-panel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-radius: 26px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 22px 55px rgba(0,0,0,.24);
}

@media (max-width: 900px) {
    .lbp-theme-logo {
        height: 66px;
        max-width: 165px;
    }

    #lbp-splash .lbp-splash-logo {
        width: min(80vw, 460px) !important;
    }
}

@media (max-width: 600px) {
    .lbp-theme-logo {
        height: 58px;
        max-width: 145px;
    }

    #lbp-splash .lbp-splash-logo-panel {
        padding: 12px;
        border-radius: 20px;
    }

    #lbp-splash .lbp-splash-logo {
        width: min(82vw, 360px) !important;
    }
}


/* ==========================================================
   V1.20 — HEADER PLUS NET + MENU ENCADRÉ + SPLASH SANS CARRÉ BLANC
   Base V1.15 conservée.
   ========================================================== */

/* Branding horizontal construit en HTML/CSS :
   logo transparent + texte net, au lieu d'une grande image écrasée. */
.lbp-branding-horizontal {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none !important;
    min-width: 0;
}

.lbp-branding-horizontal img {
    display: block;
    width: auto;
    height: 72px;
    max-width: 110px;
    object-fit: contain;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    flex: 0 0 auto;
}

.lbp-branding-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    min-width: 0;
}

.lbp-branding-title {
    color: #fff8f2;
    font-weight: 900;
    font-size: 1.28rem;
    letter-spacing: .02em;
    white-space: nowrap;
}

.lbp-branding-subtitle {
    color: rgba(255,248,242,.94);
    font-size: .72rem;
    letter-spacing: .08em;
    text-align: center;
    margin-top: 7px;
    position: relative;
}

.lbp-branding-subtitle::before,
.lbp-branding-subtitle::after {
    content: "";
    display: inline-block;
    width: 28px;
    height: 1px;
    background: rgba(255,248,242,.88);
    vertical-align: middle;
    margin: 0 8px 2px;
}

/* Boutons du menu mis en évidence dans des cadres */
.site-header .primary-navigation > ul > li > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 9px 13px !important;
    margin: 4px 3px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.site-header .primary-navigation > ul > li > a:hover,
.site-header .primary-navigation > ul > li:focus-within > a,
.site-header .primary-navigation > ul > li.current-menu-item > a,
.site-header .primary-navigation > ul > li.current-menu-ancestor > a {
    background: rgba(255,255,255,.16) !important;
    border-color: rgba(255,255,255,.38);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0,0,0,.12);
}

/* Splash : même logo de qualité V1.15 mais avec vrai fond transparent. */
#lbp-splash {
    background: #000 !important;
}

#lbp-splash .lbp-splash-logo-panel {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
}

#lbp-splash .lbp-splash-logo {
    width: min(78vw, 500px) !important;
    height: auto !important;
    max-width: 500px !important;
    max-height: 68vh !important;
    object-fit: contain !important;
    background: transparent !important;
    filter: drop-shadow(0 14px 28px rgba(0,0,0,.22));
}

@media (max-width: 1100px) {
    .lbp-branding-horizontal img {
        height: 62px;
        max-width: 95px;
    }

    .lbp-branding-title {
        font-size: 1.08rem;
    }

    .lbp-branding-subtitle {
        font-size: .66rem;
    }
}

@media (max-width: 760px) {
    .lbp-branding-horizontal {
        gap: 8px;
    }

    .lbp-branding-horizontal img {
        height: 54px;
        max-width: 82px;
    }

    .lbp-branding-title {
        font-size: .92rem;
    }

    .lbp-branding-subtitle {
        font-size: .58rem;
        margin-top: 5px;
    }

    .lbp-branding-subtitle::before,
    .lbp-branding-subtitle::after {
        width: 18px;
        margin: 0 5px 2px;
    }
}

@media (max-width: 600px) {
    #lbp-splash .lbp-splash-logo {
        width: min(86vw, 380px) !important;
        max-width: 380px !important;
    }
}


/* ==========================================================
   V1.21 — NOUVELLE PALETTE + SPLASH PLUS GRAND
   Base V1.20 conservée.
   ========================================================== */

:root {
    --lbp-charcoal: #302A27;
    --lbp-cream: #F3E9DC;
    --lbp-ivory: #FFF9F2;
    --lbp-terracotta: #B85C38;
    --lbp-caramel: #A66A3F;
    --lbp-text: #292624;
    --lbp-light: #FFF7EE;
}

/* HEADER : nouvelle palette chaude et naturelle */
.site-header {
    background: linear-gradient(135deg, #302A27 0%, #3B322E 55%, #4A382F 100%) !important;
    border-bottom: 3px solid var(--lbp-terracotta) !important;
}

/* Texte du branding */
.lbp-branding-title,
.lbp-branding-subtitle,
.site-header .primary-navigation a,
.site-header .menu-toggle {
    color: var(--lbp-light) !important;
}

/* Boutons du menu */
.site-header .primary-navigation > ul > li > a {
    background: rgba(255,249,242,.08) !important;
    border-color: rgba(255,249,242,.22) !important;
}

.site-header .primary-navigation > ul > li > a:hover,
.site-header .primary-navigation > ul > li:focus-within > a,
.site-header .primary-navigation > ul > li.current-menu-item > a,
.site-header .primary-navigation > ul > li.current-menu-ancestor > a {
    background: rgba(184,92,56,.30) !important;
    border-color: rgba(255,249,242,.38) !important;
}

/* Sous-menu */
.site-header .primary-navigation .sub-menu {
    background: #302A27 !important;
    border-color: rgba(255,249,242,.16) !important;
}

/* FOOTER assorti */
.site-footer {
    background: linear-gradient(135deg, #302A27 0%, #3B322E 55%, #4A382F 100%) !important;
    border-top-color: var(--lbp-terracotta) !important;
}

/* Liens / accents généraux */
a {
    color: var(--lbp-terracotta);
}

a:hover,
a:focus {
    color: var(--lbp-caramel);
}

/* Boutons généraux sans toucher aux boutons d'années déjà validés */
.entry-content .wp-block-button__link:not(.lbp-year-nav-button),
button:not(.lbp-lightbox-close):not(.lbp-lightbox-prev):not(.lbp-lightbox-next) {
    background-color: var(--lbp-terracotta);
    color: var(--lbp-light);
}

/* SPLASH :
   plus grand sur PC, toujours sans carré blanc. */
#lbp-splash {
    background: #171412 !important;
}

#lbp-splash .lbp-splash-logo-panel {
    width: min(90vw, 920px) !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border: 0 !important;
}

#lbp-splash .lbp-splash-logo {
    display: block !important;
    width: min(82vw, 760px) !important;
    max-width: 760px !important;
    height: auto !important;
    max-height: 76vh !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    background: transparent !important;
    filter: drop-shadow(0 18px 38px rgba(0,0,0,.35)) !important;
}

@media (max-width: 900px) {
    #lbp-splash .lbp-splash-logo {
        width: min(84vw, 620px) !important;
        max-width: 620px !important;
    }
}

@media (max-width: 600px) {
    #lbp-splash .lbp-splash-logo {
        width: min(88vw, 420px) !important;
        max-width: 420px !important;
        max-height: 66vh !important;
    }
}


/* ==========================================================
   V1.22 — CORRECTION LOGO HEADER + LOGO DE CHARGEMENT
   Base V1.21 conservée.
   ========================================================== */

/* HEADER :
   On évite le doublon logo complet + texte recréé.
   On garde uniquement le logo horizontal propre. */
.lbp-branding-text {
    display: none !important;
}

.lbp-branding-horizontal {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    flex: 0 0 auto !important;
}

.lbp-branding-horizontal img {
    display: block !important;
    width: min(38vw, 430px) !important;
    max-width: 430px !important;
    height: auto !important;
    max-height: 88px !important;
    object-fit: contain !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* CHARGEMENT :
   logo entièrement visible, centré, sans coupure,
   avec un vrai fond noir uniforme. */
#lbp-splash {
    background: #000 !important;
}

#lbp-splash .lbp-splash-inner {
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#lbp-splash .lbp-splash-logo-panel {
    width: auto !important;
    max-width: 92vw !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

#lbp-splash .lbp-splash-logo {
    display: block !important;
    width: min(70vw, 560px) !important;
    max-width: 560px !important;
    height: auto !important;
    max-height: 62vh !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 auto !important;
    background: transparent !important;
    filter: none !important;
}

/* Responsive */
@media (max-width: 1100px) {
    .lbp-branding-horizontal img {
        width: min(42vw, 370px) !important;
        max-width: 370px !important;
        max-height: 78px !important;
    }

    #lbp-splash .lbp-splash-logo {
        width: min(76vw, 500px) !important;
        max-width: 500px !important;
        max-height: 60vh !important;
    }
}

@media (max-width: 700px) {
    .lbp-branding-horizontal img {
        width: min(58vw, 290px) !important;
        max-width: 290px !important;
        max-height: 64px !important;
    }

    #lbp-splash .lbp-splash-logo {
        width: min(84vw, 390px) !important;
        max-width: 390px !important;
        max-height: 56vh !important;
    }
}

@media (max-width: 460px) {
    .lbp-branding-horizontal img {
        width: min(62vw, 245px) !important;
        max-width: 245px !important;
        max-height: 58px !important;
    }

    #lbp-splash .lbp-splash-logo {
        width: min(88vw, 330px) !important;
        max-width: 330px !important;
        max-height: 52vh !important;
    }
}


/* ==========================================================
   V1.23 — LOGO ORIGINAL RESTAURÉ + HEADER MOBILE CORRIGÉ
   ========================================================== */

/* Header : marque seule + texte propre, pas de logo cassé. */
.lbp-branding-horizontal {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    min-width: 0 !important;
}

.lbp-branding-horizontal img {
    display: block !important;
    width: auto !important;
    height: 72px !important;
    max-width: 120px !important;
    object-fit: contain !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    flex: 0 0 auto !important;
}

.lbp-branding-text {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
}

.lbp-branding-title {
    color: #FFF7EE !important;
    font-size: 1.22rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: .02em !important;
    white-space: nowrap !important;
}

.lbp-branding-subtitle {
    color: rgba(255,247,238,.95) !important;
    font-size: .68rem !important;
    line-height: 1 !important;
    margin-top: 7px !important;
    letter-spacing: .08em !important;
    white-space: nowrap !important;
}

/* Chargement : logo entier, bon Border Collie, pas de carré. */
#lbp-splash {
    background:
        radial-gradient(circle at center, #3b3531 0%, #1b1816 48%, #050505 100%) !important;
}

#lbp-splash .lbp-splash-inner {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

#lbp-splash .lbp-splash-logo-panel {
    width: auto !important;
    max-width: 92vw !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

#lbp-splash .lbp-splash-logo {
    display: block !important;
    width: min(64vw, 560px) !important;
    max-width: 560px !important;
    height: auto !important;
    max-height: 64vh !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 auto !important;
    background: transparent !important;
    filter: drop-shadow(0 16px 30px rgba(0,0,0,.30)) !important;
}

/* Tablette */
@media (max-width: 900px) {
    .lbp-branding-horizontal img {
        height: 62px !important;
        max-width: 102px !important;
    }

    .lbp-branding-title {
        font-size: 1.02rem !important;
    }

    .lbp-branding-subtitle {
        font-size: .60rem !important;
    }

    #lbp-splash .lbp-splash-logo {
        width: min(76vw, 480px) !important;
        max-width: 480px !important;
    }
}

/* Téléphone */
@media (max-width: 600px) {
    .lbp-branding-horizontal {
        gap: 7px !important;
        max-width: calc(100vw - 145px) !important;
    }

    .lbp-branding-horizontal img {
        height: 50px !important;
        max-width: 78px !important;
    }

    .lbp-branding-title {
        font-size: .78rem !important;
        white-space: normal !important;
    }

    .lbp-branding-subtitle {
        font-size: .50rem !important;
        margin-top: 5px !important;
    }

    #lbp-splash .lbp-splash-logo {
        width: min(84vw, 370px) !important;
        max-width: 370px !important;
        max-height: 56vh !important;
    }
}


/* ==========================================================
   V1.24 — LOGO HD ORIGINAL, AUCUNE SUPPRESSION DES BLANCS
   ========================================================== */

/* Le logo header conserve intégralement les pixels du dessin original. */
.lbp-branding-horizontal img {
    content: url("assets/images/logo-header-original.png") !important;
    object-fit: contain !important;
    background: transparent !important;
    filter: none !important;
}

/* Le splash conserve le logo original HD tel quel. */
#lbp-splash .lbp-splash-logo {
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
    filter: drop-shadow(0 14px 28px rgba(0,0,0,.28)) !important;
}


/* ==========================================================
   V1.25 — FOOTER : CONTACT + RÉSEAUX SOCIAUX
   ========================================================== */
.footer-socials {
    margin-top: 30px;
    text-align: center;
}

.footer-socials-title {
    margin: 0 0 14px;
    color: #fff8f2;
    font-weight: 700;
    font-size: 1.05rem;
}

.footer-socials-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.footer-socials-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 999px;
    background: #fff8f2;
    color: #3a2f2c !important;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(0,0,0,.10);
    transition: transform .18s ease, background .18s ease;
}

.footer-socials-links a:hover,
.footer-socials-links a:focus {
    background: #ffd6aa;
    color: #3a2f2c !important;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .footer-socials {
        margin-top: 24px;
    }
    .footer-socials-links {
        gap: 9px;
    }
    .footer-socials-links a {
        padding: 8px 13px;
    }
}


/* ==========================================================
   V1.26 — FOOTER : 5 CARTES SUR LA MÊME LIGNE
   ========================================================== */
@media (min-width: 1101px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1.25fr .78fr 1.05fr;
        gap: 20px;
        align-items: stretch;
    }
}

.footer-contact {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
}

.footer-contact ul {
    width: 100%;
    display: flex;
    justify-content: center;
}

.footer-socials {
    min-height: 112px;
    margin-top: 0;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-socials-title {
    margin: 0 0 12px;
    color: #fff8f2;
    font-weight: 700;
    font-size: .98rem;
}

.footer-socials-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.footer-socials-links a {
    min-height: 34px;
    padding: 7px 11px;
    font-size: .88rem;
}

@media (max-width: 1100px) {
    .footer-socials {
        min-height: 112px;
    }
}

@media (max-width: 680px) {
    .footer-contact,
    .footer-socials {
        min-height: auto;
        display: flex;
    }

    .footer-contact ul {
        display: flex;
        justify-content: center;
    }
}
