/* Page excursions — charte conservée, aucun style dans les textes. */
body:has(#kbe-hero) #header,
body:has(#kbe-hero) .title_container,
body:has(#kbe-hero) #footer,
body:has(#kbe-hero) .sidebar { display: none !important; }
body:has(#kbe-hero) #main { padding-top: 0 !important; }
body:has(#kbe-hero) #socket { display: block !important; background: #123b43 !important; color: #fff !important; }
body:has(#kbe-hero) #socket a { color: #fff !important; }
#top #kbe-hero { position: relative; height: 100svh !important; min-height: 650px; background-size: cover !important; background-position: center !important; }
#top #kbe-hero .content { position: static; padding: 0 !important; }
#top #kbe-hero .kbe-logo { position: absolute; top: 35px; left: 50%; transform: translateX(-50%); z-index: 12; width: clamp(190px,23vw,340px); margin: 0 !important; }
#top #kbe-hero .kbe-logo img { display: block; width: 100%; height: auto; opacity: 1 !important; }
#top #kbe-hero .kbe-logo .image-overlay { display: none !important; }
#top #kbe-hero .kbe-hero-titre { position: absolute; top: 48%; left: 50%; transform: translate(-50%,-50%); width: 90%; text-align: center; z-index: 10; }
#top #kbe-hero .kbe-tortue { display: block; width: 125px; height: 125px; object-fit: contain; margin: 0 auto 20px; }
#top #kbe-hero h1 { margin: 0 !important; color: #fff !important; font-family: inherit; font-size: clamp(34px,5vw,76px) !important; font-weight: 400 !important; line-height: 1.15 !important; letter-spacing: clamp(2px,.5vw,7px) !important; text-transform: uppercase !important; text-shadow: 0 3px 18px #0008; }
#top :is(#kbe-intro,#kbe-excursions,#kbe-contact) h2 { margin: 0 0 25px !important; color: #674c2d !important; font: 400 clamp(32px,3.5vw,50px)/1.2 Georgia,serif !important; letter-spacing: normal !important; text-transform: none !important; }
#top :is(#kbe-intro,#kbe-excursions,#kbe-contact) p { display: block; margin: 0 0 22px !important; color: #68645c; font-size: 17px; line-height: 1.85; }
#top #kbe-intro .container { max-width: 1100px; }
#top #kbe-intro h2::after { content: ''; display: block; width: 65px; height: 2px; margin-top: 24px; background: #5b9fc5; }
#top #kbe-excursions .container { max-width: 1240px; }
#top #kbe-excursions .kbe-surtitre { display: block; margin: 0 0 16px; color: #8a775b; font-size: 11px; letter-spacing: 2px; line-height: 1.7; }
/* Grille native Enfold, images et liens des articles existants. */
#top #kbe-excursions .avia-content-slider-inner { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; padding-top: 20px; }
#top #kbe-excursions .avia-content-slider-inner::before,
#top #kbe-excursions .avia-content-slider-inner::after { content: none !important; }
#top #kbe-excursions .slide-entry-wrap { display: contents; }
#top #kbe-excursions .slide-entry-wrap::before,
#top #kbe-excursions .slide-entry-wrap::after { content: none !important; }
#top #kbe-excursions .slide-entry { display: flex; flex-direction: column; float: none !important; width: 100% !important; min-width: 0; margin: 0 !important; padding: 0 !important; border: 1px solid #d3c2aa; border-radius: 22px; background: #faf7ef; box-shadow: 0 10px 30px #372d1a12; }
#top #kbe-excursions .slide-image { position: relative; display: block; width: 100%; margin: 0; overflow: visible; background: transparent; }
#top #kbe-excursions .slide-image > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; border-radius: 21px 21px 0 0; }
#top #kbe-excursions .slide-image::after { content: ''; position: absolute; z-index: 2; top: -16px; left: 50%; transform: translateX(-50%); width: 42px; height: 42px; background: url('https://www.kou-bugny.com/wp-content/uploads/2026/11/escursions.png') center / contain no-repeat; pointer-events: none; }
#top #kbe-excursions .image-overlay { display: none !important; }
#top #kbe-excursions .slide-content { display: flex; flex-direction: column; flex: 1; padding: 25px; }
#top #kbe-excursions .slide-entry-title { margin: 0 0 16px !important; padding: 0; color: #674c2d !important; font: 400 clamp(24px,2.2vw,32px)/1.25 Georgia,serif !important; text-transform: none !important; letter-spacing: normal !important; }
#top #kbe-excursions .slide-entry-title a { color: inherit; }
#top #kbe-excursions .slide-entry-excerpt { color: #68645c; font-size: 16px; line-height: 1.75; }
#top #kbe-excursions .slide-entry-excerpt p { font-size: 16px; line-height: 1.75; }
#top #kbe-excursions .slide-meta,
#top #kbe-excursions .blog-categories { display: none !important; }
#top #kbe-excursions .read-more-link { margin-top: auto; padding-top: 15px; }
#top #kbe-excursions .read-more-link a { display: inline-block; color: #674c2d; border-bottom: 1px solid #5b9fc5; padding-bottom: 5px; text-decoration: none; }
#top #kbe-excursions a:focus-visible { outline: 2px solid #5b9fc5; outline-offset: 4px; }
#top #kbe-contact { text-align: center; }
#top #kbe-contact .container { max-width: 1000px; }
#top #kbe-contact .kbe-contact-bouton a { border-radius: 8px; border-bottom: 3px solid #245875; color: #fff !important; }
/* Éléments communs ajoutés seulement s’ils sont absents. */
#top #kb-menu-natif.kbe-menu { display: block !important; position: fixed !important; top: 40px !important; right: 25px !important; z-index: 1000002 !important; }
#top .kbe-menu > summary { display: flex !important; flex-direction: column; align-items: center; gap: 10px; padding: 8px; list-style: none; cursor: pointer; }
#top .kbe-menu summary::-webkit-details-marker { display: none; }
#top .kbe-menu summary::marker { content: ''; }
#top .kbe-menu summary > img { order: 1; display: block; width: 26px; height: 26px; margin: 0 !important; object-fit: contain; }
#top .kbe-menu summary::before { content: ''; order: 2; display: block; width: 30px; height: 25px; background: linear-gradient(to bottom,#fff 0 3px,transparent 3px 11px,#fff 11px 14px,transparent 14px 22px,#fff 22px 25px); filter: drop-shadow(0 2px 3px #0008); }
#top .kbe-menu summary::after { content: 'MENU'; order: 3; display: block; color: #fff; font: 10px/1.4 Arial,sans-serif; letter-spacing: 2px; text-shadow: 0 2px 4px #0008; }
#top .kbe-menu:not([open]) > nav { display: none !important; }
#top .kbe-menu > nav { position: absolute; right: 0; top: 115px; width: 330px; max-width: calc(100vw - 40px); max-height: calc(100dvh - 210px); overflow: auto; box-sizing: border-box; padding: 20px; background: #faf7ef; border-bottom: 3px solid #5b9fc5; border-radius: 4px; box-shadow: 0 10px 35px #0004; }
#top .kbe-menu nav a { display: flex; align-items: center; gap: 15px; padding: 13px 12px; color: #674c2d; border-bottom: 1px solid #e6dfd3; font-size: 17px; line-height: 1.4; text-decoration: none; }
#top .kbe-menu nav a:hover { color: #fff; background: #5b9fc5; }
#top .kbe-menu nav img { display: block; position: static !important; flex: 0 0 34px; width: 34px !important; height: 34px !important; margin: 0 !important; object-fit: contain; transform: none !important; }
#top .kbe-menu .kb-conditions { margin-top: 10px; font-size: 12px; border-bottom: 0; }
#top .kbe-menu :is(summary,a):focus-visible { outline: 2px solid #5b9fc5; outline-offset: 3px; }
#top #reservation-directe.kbe-reserver { display: flex; position: fixed !important; top: 24%; right: 0; z-index: 1000000 !important; align-items: center; gap: 12px; padding: 18px 24px; max-width: calc(100vw - 24px); background: #faf7ef; border: 0; border-bottom: 3px solid #5b9fc5; border-radius: 3px 0 0 3px; box-shadow: 0 5px 25px #0002; color: #674c2d; font-size: 17px; letter-spacing: 2px; text-decoration: none; }
#top .kbe-reserver img { display: block; width: 32px; height: 32px; margin: 0; object-fit: contain; }
#top #reservation-directe.kbe-reserver:hover { background: #5b9fc5; color: #fff; }
#top #kbe-socket { position: relative; background: #123b43; color: #fff; padding: 28px 25px; text-align: center; font-size: 13px; }
#top #kbe-socket::before { content: ''; position: absolute; inset: 0; background: url('https://www.kou-bugny.com/wp-content/uploads/2026/11/ile_des_pins-1.png') center / 65px auto no-repeat; opacity: .3; pointer-events: none; }
#top #kbe-socket > div { position: relative; }
#top #kbe-socket a { color: #fff; }
body.admin-bar #kbe-hero { height: calc(100svh - 32px) !important; }
#top.admin-bar #kb-menu-natif.kbe-menu { top: 72px !important; }
@media(max-width:1100px) { #top #kbe-excursions .avia-content-slider-inner { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:782px) { #top.admin-bar #kb-menu-natif.kbe-menu { top: 76px !important; } body.admin-bar #kbe-hero { height: calc(100svh - 46px) !important; } }
@media(max-width:767px) { #top #kbe-hero { min-height: 580px; } #top #kbe-hero .kbe-tortue { width: 95px; height: 95px; } #top #kb-menu-natif.kbe-menu { right: 15px !important; } #top #reservation-directe.kbe-reserver { padding: 14px 20px; font-size: 14px; } }
@media(max-width:600px) { #top #kbe-excursions .avia-content-slider-inner { grid-template-columns: 1fr; gap: 30px; } #top :is(#kbe-intro,#kbe-excursions,#kbe-contact) .content { padding: 35px 0 !important; } }

/* Fiches excursions : mêmes couleurs, typographies et cartes que la refonte. */
#top #kbe-hero.kbx-hero { height: 78svh !important; min-height: 560px; }
#top #kbe-hero.kbx-hero h1 { font-size: clamp(32px,4.8vw,68px) !important; letter-spacing: 1px !important; text-transform: none !important; }
#top :is(#kbx-presentation,#kbx-autres) h2 { color: #674c2d !important; font: 400 clamp(29px,3vw,43px)/1.2 Georgia,serif !important; text-transform: none !important; letter-spacing: normal !important; margin: 0 0 24px; }
#top :is(#kbx-presentation,#kbx-autres) h3 { color: #674c2d !important; font: 400 25px/1.3 Georgia,serif !important; text-transform: none !important; letter-spacing: normal !important; }
#top #kbx-presentation :is(p,li) { font-size: 17px; line-height: 1.8; color: #68645c; }
#top #kbx-presentation p { display: block; margin: 0 0 20px; }
#top #kbx-presentation :is(.avia-image-container,.avia-slideshow,.avia-gallery) { max-width: 100%; margin-top: 24px; margin-bottom: 24px; }
#top #kbx-presentation :is(.avia-image-container img,.avia-slideshow img,.avia-gallery img) { border-radius: 16px; }
#top #kbx-presentation .kbx-contact-carte { box-sizing: border-box; margin-bottom: 20px; padding: 26px; border: 1px solid #d8c9af; border-radius: 16px; background: #f3ecdf; }
#top #kbx-presentation .kbx-contact-carte h2 { font-size: 30px !important; }
#top #kbx-presentation .kbx-retour { margin-top: 25px; text-align: center; }
#top #kbx-presentation a { color: #32769e; }
#top #kbx-presentation .kbe-contact-bouton a { color: #fff !important; border-radius: 8px; border-bottom: 3px solid #245875; }
#top #kbx-autres .kbx-cartes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; padding-top: 18px; }
#top #kbx-autres .kbx-carte { display: flex; flex-direction: column; min-width: 0; background: #faf7ef; border: 1px solid #d3c2aa; border-radius: 22px; }
#top #kbx-autres .kbx-photo { position: relative; display: block; aspect-ratio: 4 / 3; background: #f3ecdf; border-radius: 21px 21px 0 0; }
#top #kbx-autres .kbx-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
#top #kbx-autres .kbx-photo::after { content: ''; position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 42px; height: 42px; background: url('https://www.kou-bugny.com/wp-content/uploads/2026/11/escursions.png') center / contain no-repeat; pointer-events: none; }
#top #kbx-autres .image-overlay { display: none !important; }
#top #kbx-autres .kbx-carte > div { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 25px; }
#top #kbx-autres .kbx-carte h3 { margin: 0 0 18px; }
#top #kbx-autres .kbx-carte h3 a { color: inherit; }
#top #kbx-autres .kbx-carte p { color: #68645c; font-size: 16px; line-height: 1.75; margin: 0 0 20px; }
#top #kbx-autres .kbx-decouvrir { margin-top: auto; padding-bottom: 5px; border-bottom: 1px solid #5b9fc5; color: #674c2d; text-decoration: none; }
#top :is(#kbx-presentation,#kbx-autres) a:focus-visible { outline: 2px solid #5b9fc5; outline-offset: 4px; }
@media(max-width:1100px) { #top #kbx-autres .kbx-cartes { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { #top #kbx-autres .kbx-cartes { grid-template-columns: 1fr; } #top #kbe-hero.kbx-hero { min-height: 530px; } }

/* 1.1.1 — fonds explicites et styles autonomes des copies déjà créées. */
#top.kb-excursion-modele #header,
#top.kb-excursion-modele .title_container,
#top.kb-excursion-modele #footer { display: none !important; }
#top.kb-excursion-modele #main { padding-top: 0 !important; }
#top.kb-excursion-modele #socket {
 display: block !important;
 position: relative;
 isolation: isolate;
 background: #123b43 !important;
 border: 0 !important;
 color: #fff !important;
 padding: 24px 0 !important;
}
#top.kb-excursion-modele #socket::before {
 content: '';
 position: absolute;
 inset: 0;
 background: url('https://www.kou-bugny.com/wp-content/uploads/2026/11/ile_des_pins-1.png') center / 65px auto no-repeat;
 opacity: .3;
 filter: drop-shadow(0 0 2px #ffffffe6) drop-shadow(0 0 5px #fff9);
 pointer-events: none;
 z-index: 0;
}
#top.kb-excursion-modele #socket > .container { position: relative; z-index: 1; }
#top.kb-excursion-modele #socket a { color: #fff !important; font-size: 13px; }
#top.kb-excursion-modele #socket a:hover { color: #8dc4d7 !important; }
#top.kb-excursion-modele :is(#kbe-intro,#kbx-presentation,.kbx-presentation) { background: #faf7ef !important; border: 0 !important; }
#top.kb-excursion-modele :is(#kbe-excursions,#kbx-autres,.kbx-autres) { background: #fff !important; border: 0 !important; }
#top.kb-excursion-modele #kbe-contact { background: #f3ecdf !important; }
#top.kb-excursion-modele :is(#kbx-presentation,.kbx-presentation,#kbx-autres,.kbx-autres) > .container { box-sizing: border-box; max-width: 1240px; }
#top.kb-excursion-modele :is(#kbx-presentation,.kbx-presentation,#kbx-autres,.kbx-autres) .content { padding-top: 45px !important; padding-bottom: 45px !important; }
/* These classes belong to text blocks, independent of section IDs. */
#top .kbx-contact-carte {
 box-sizing: border-box;
 margin-bottom: 20px !important;
 padding: 26px !important;
 border: 1px solid #d8c9af !important;
 border-radius: 16px !important;
 background: #f3ecdf !important;
 color: #68645c;
}
#top.kb-excursion-fiche :is(h2,h3) {
 color: #674c2d !important;
 font-family: Georgia,serif !important;
 font-weight: 400 !important;
 line-height: 1.25 !important;
 letter-spacing: normal !important;
 text-transform: none !important;
}
#top.kb-excursion-fiche h2 { font-size: clamp(29px,3vw,43px) !important; }
#top .kbx-contact-carte h2 { font-size: 30px !important; margin: 0 0 20px !important; }
#top .kbx-contact-carte p { color: #68645c !important; font-size: 17px !important; line-height: 1.8 !important; margin: 0 0 18px !important; }
#top .kbx-contact-carte p:last-child { margin-bottom: 0 !important; }
#top .kbx-retour { margin-top: 25px !important; text-align: center; }
#top .kbx-retour a,
#top .kbx-retour a:visited { color: #674c2d !important; font-size: 16px; line-height: 1.6; text-decoration: none; border-bottom: 1px solid #5b9fc5; padding-bottom: 5px; }
#top .kbx-retour a:hover { color: #32769e !important; }
@media(max-width:767px) {
 #top.kb-excursion-modele :is(#kbx-presentation,.kbx-presentation,#kbx-autres,.kbx-autres) .content { padding-top: 30px !important; padding-bottom: 30px !important; }
 #top .kbx-contact-carte { padding: 22px !important; }
}
#top #kbe-socket .kbe-socket-interieur { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; max-width: 1240px; margin: 0 auto; text-align: left; }
#top #kbe-socket nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
#top #kbe-socket a { text-decoration: none; }
#top #kbe-socket a:hover { color: #8dc4d7; }
#top #kbe-socket::before { filter: drop-shadow(0 0 2px #ffffffe6) drop-shadow(0 0 5px #fff9); }
@media(max-width:767px) { #top #kbe-socket .kbe-socket-interieur { justify-content: center; text-align: center; } #top #kbe-socket nav { justify-content: center; } }
