/*
Theme Name: KFCP – Kung Fu Club Plaisance du Touch
Theme URI: https://www.kungfuclubplaisance.fr/
Author: Kung Fu Club Plaisance du Touch
Description: Thème de blocs sur mesure pour le site du Kung Fu Club Plaisance du Touch.
Version: 0.2.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kfcp
*/
:root{--blue:#284395;--ink:#1d1d1d;--cream:#F6F1E7;--orange:#E8833A;--soft:#e9ecf7;--line:#e3dccb;--muted:#5a5650;--red:#c8352b;--edge:clamp(16px,5vw,64px)}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--cream) url(assets/img/calligraphie.jpg);background-size:900px auto;background-blend-mode:multiply;color:var(--ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.6}
@media(max-width:781px){body{background-size:520px auto;padding-bottom:84px}}
.wp-site-blocks>*{margin-block-start:0}
h1,h2,h3,h4{font-family:Manrope,"Inter Display",Inter,sans-serif;font-weight:500;letter-spacing:-.02em;color:var(--blue);line-height:1.1;margin:0}
h1{font-size:clamp(2rem,1.3rem + 2.4vw,3rem)}
h2{font-size:clamp(1.5rem,1.15rem + 1.3vw,2.2rem)}
h3{font-size:1.5rem}
a{color:var(--blue)}
:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
img{max-width:100%;height:auto}
/* En-tête */
.kfcp-header{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--line);transition:transform .3s ease}
.admin-bar .kfcp-header{top:32px}
.kfcp-header.is-hidden{transform:translateY(-100%)}
.kfcp-header__in{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px var(--edge);max-width:1280px;margin:0 auto}
.kfcp-logo{display:block;line-height:0}.kfcp-logo img{height:64px;width:auto}
@media(max-width:781px){.kfcp-logo img{height:48px}.kfcp-header__in{padding:12px var(--edge)}}
.kfcp-nav .wp-block-navigation-item__content{text-decoration:none;font-weight:500;color:var(--ink);padding:12px 4px}
.kfcp-nav .wp-block-navigation-item__content:hover{color:var(--blue)}
.kfcp-nav .current-menu-item>.wp-block-navigation-item__content,.kfcp-nav .wp-block-navigation-item__content[aria-current=page]{color:var(--blue);font-weight:600;border-bottom:3px solid var(--orange)}
.kfcp-nav .kfcp-nav-cta .wp-block-navigation-item__content{background:#fff;color:var(--blue);border:2px solid var(--blue);border-radius:999px;padding:10px 20px;font-weight:600}
.kfcp-nav .kfcp-nav-cta .wp-block-navigation-item__content[aria-current=page]{background:var(--blue);color:#fff;border-color:var(--blue)}
.kfcp-nav .wp-block-navigation__responsive-container-open{color:var(--blue)}
.kfcp-nav .wp-block-navigation__responsive-container.is-menu-open{padding:24px var(--edge);background:#fff}
.kfcp-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{font-family:Manrope,"Inter Display",sans-serif;font-size:1.4rem;padding:14px 0}
/* Sections */
.kfcp-section{max-width:1280px;margin:0 auto;padding:40px var(--edge)}
.kfcp-narrow{max-width:760px;margin:0 auto}
.kfcp-section>*+*{margin-top:24px}
/* Cartes, grilles */
.is-style-kfcp-card,.kfcp-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:28px}
.is-style-kfcp-card>*+*,.kfcp-card>*+*{margin-top:8px}
@media(max-width:781px){.is-style-kfcp-card,.kfcp-card{padding:20px}}
.kfcp-grid-3,.kfcp-grid-2{display:grid;gap:24px}
.kfcp-grid-3{grid-template-columns:repeat(3,1fr)}.kfcp-grid-2{grid-template-columns:repeat(2,1fr)}
@media(max-width:781px){.kfcp-grid-3,.kfcp-grid-2{grid-template-columns:1fr;gap:12px}}
.kfcp-news{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;padding:0;list-style:none}
@media(max-width:781px){.kfcp-news{grid-template-columns:1fr;gap:12px}}
.kfcp-news.kfcp-news-2{grid-template-columns:repeat(2,1fr)}
@media(max-width:781px){.kfcp-news.kfcp-news-2{grid-template-columns:1fr}}
.kfcp-news .wp-block-post-date,.kfcp-meta{font-size:.875rem;color:var(--muted)}
.kfcp-news h3{font-size:1.5rem}
.kfcp-news h3 a{text-decoration:none;color:var(--blue)}
.kfcp-notice{background:var(--soft);border:1px solid #9aa6d1;border-radius:12px;padding:16px 20px}
.kfcp-small{font-size:.875rem;color:var(--muted)}
.kfcp-chips{display:flex;flex-wrap:wrap;gap:10px;padding:0;margin:0;list-style:none}
.kfcp-chips li{background:#fff;border:1px solid #9aa6d1;border-radius:999px;padding:8px 14px;font-size:.95rem}
.kfcp-blue-band{background:var(--soft);border-radius:20px;padding:40px}
@media(max-width:781px){.kfcp-blue-band{padding:24px 20px}}
/* Héros, images */
.kfcp-hero img{display:block;width:100%;aspect-ratio:2.4/1;object-fit:cover;object-position:center 45%;border-radius:20px}
@media(max-width:781px){.kfcp-hero img{aspect-ratio:auto}}
.kfcp-split{display:flex;align-items:center;justify-content:space-between;gap:48px}
.kfcp-split>:first-child{max-width:660px}.kfcp-split .kfcp-logo-big img{height:300px;width:auto}
@media(max-width:781px){.kfcp-split{flex-direction:column-reverse;gap:24px;align-items:flex-start}.kfcp-split .kfcp-logo-big img{height:150px}}
.kfcp-two{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
@media(max-width:781px){.kfcp-two{grid-template-columns:1fr;gap:24px}}
.kfcp-two img,.kfcp-rounded img{display:block;width:100%;height:380px;object-fit:cover;border-radius:20px}
@media(max-width:781px){.kfcp-two img,.kfcp-rounded img{height:220px}}
.kfcp-map img{display:block;width:100%;height:auto;border-radius:16px}
@media(max-width:781px){.kfcp-map{aspect-ratio:1448/880;overflow:hidden;border-radius:16px}}
.kfcp-article-img img{display:block;width:100%;height:300px;object-fit:cover;border-radius:20px}
/* Boutons */
.wp-block-button__link,.kfcp-btn,.kfcp-tel.kfcp-tel-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 24px;border-radius:999px;background:var(--orange);color:var(--ink);font-weight:600;text-decoration:none;border:0;font-family:inherit;font-size:1rem;cursor:pointer}
.wp-block-button.is-style-outline .wp-block-button__link{background:#fff;color:var(--blue);border:2px solid var(--blue)}
@media(max-width:781px){.wp-block-buttons .wp-block-button,.wp-block-buttons .wp-block-button__link{width:100%}}
/* Numéro au clic */
.kfcp-tel{background:none;border:0;padding:0;color:inherit;font:inherit;text-decoration:underline;cursor:pointer;min-height:0}
.kfcp-tel a{color:inherit}
/* Pied de page */
.kfcp-bamboo{position:relative;height:0;margin-top:90px}
.kfcp-bamboo::after{content:"";position:absolute;right:0;bottom:0;width:340px;height:240px;background:url(assets/img/bambou.png) right bottom/contain no-repeat;pointer-events:none}
@media(max-width:781px){.kfcp-bamboo{margin-top:70px}.kfcp-bamboo::after{width:170px;height:120px}}
body.error404 .kfcp-bamboo{display:none}
.kfcp-footer{background:var(--blue);color:#fff;padding:40px var(--edge);font-size:.95rem;line-height:1.7}
.kfcp-footer a,.kfcp-footer .kfcp-tel{color:#fff}
.kfcp-footer__in{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:32px;max-width:1280px;margin:0 auto}
.kfcp-footer .kfcp-btn{background:var(--orange);color:var(--ink);text-decoration:none}
.kfcp-legal{max-width:1280px;margin:24px auto 0;border-top:1px solid rgba(255,255,255,.3);padding-top:16px;font-size:.875rem;display:flex;flex-wrap:wrap;gap:20px}
/* Barre fixe mobile */
.kfcp-bar{display:none}
@media(max-width:781px){.kfcp-bar{display:flex;gap:10px;position:fixed;left:0;right:0;bottom:0;z-index:60;padding:12px 16px;background:#fff;border-top:1px solid var(--line)}
.kfcp-bar>*{flex:1;display:inline-flex;align-items:center;justify-content:center;min-height:48px;border-radius:999px;font-weight:600;text-decoration:none;font-family:inherit;font-size:1rem;cursor:pointer}
.kfcp-bar .kfcp-call{background:var(--orange);color:var(--ink);border:0}.kfcp-bar .kfcp-bar-sec{background:#fff;color:var(--blue);border:2px solid var(--blue)}}
/* 404 */
.kfcp-404-num{display:flex;align-items:center;gap:12px;font-family:Manrope,"Inter Display",sans-serif;font-weight:500;font-size:clamp(4rem,12vw,8rem);line-height:1;color:var(--blue)}
.kfcp-404-num img{height:.85em;width:auto}
.kfcp-404-art{position:relative;max-width:520px;width:100%}.kfcp-404-art>img{display:block;width:100%;height:auto}
.kfcp-404-art svg{position:absolute;left:70%;top:44%;width:8%;min-width:28px}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}.kfcp-header{transition:none}}
