/*
Theme Name: Eight Concept Billard Club
Theme URI: https://eightconcept.fr
Author: Eight Concept Billard Club
Description: Thème sur mesure pour Eight Concept Billard Club.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: eightconcept-club
*/

:root {
  --ec-blue: #1268a8;
  --ec-red: #e30613;
  --ec-yellow: #ffd23f;
  --ec-black: #111111;
  --ec-white: #ffffff;
  --ec-grey: #f3f4f6;
  --ec-text: #202124;
  --ec-radius: 14px;
  --ec-shadow: 0 12px 32px rgba(17, 17, 17, .10);
  --ec-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ec-text); background: var(--ec-white); font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--ec-blue); }
.ec-wrap { width: min(var(--ec-width), calc(100% - 40px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.site-header { position: sticky; top: 0; z-index: 100; color: var(--ec-white); background: var(--ec-black); border-bottom: 5px solid var(--ec-red); }
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding { display: flex; align-items: center; gap: 13px; color: var(--ec-white); text-decoration: none; min-width: 250px; }
.site-branding img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ec-yellow); }
.site-branding strong { display: block; font-size: 1.1rem; line-height: 1.2; }
.site-branding span { display: block; font-size: .82rem; color: var(--ec-yellow); }
.main-navigation ul { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 5px 22px; margin: 0; padding: 0; list-style: none; }
.main-navigation a { color: var(--ec-white); text-decoration: none; font-weight: 700; }
.main-navigation a:hover, .main-navigation a:focus { color: var(--ec-yellow); }
.menu-toggle { display: none; color: var(--ec-black); background: var(--ec-yellow); border: 0; border-radius: 8px; padding: 10px 14px; font-weight: 700; }

.hero { color: var(--ec-white); background: var(--ec-blue); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 520px; }
.hero-copy { padding: 74px 54px 74px 0; align-self: center; }
.eyebrow { display: inline-block; margin-bottom: 16px; padding: 7px 12px; color: var(--ec-black); background: var(--ec-yellow); border-radius: 99px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hero h1 { margin: 0 0 18px; max-width: 680px; font-size: clamp(2.6rem, 6vw, 5.6rem); line-height: .98; }
.hero p { max-width: 660px; margin: 0 0 28px; font-size: 1.13rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ec-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; color: var(--ec-white); background: var(--ec-red); border: 2px solid var(--ec-red); border-radius: 9px; text-decoration: none; font-weight: 700; }
.ec-button:hover, .ec-button:focus { color: var(--ec-black); background: var(--ec-yellow); border-color: var(--ec-yellow); }
.ec-button.alt { color: var(--ec-black); background: var(--ec-white); border-color: var(--ec-white); }
.hero-art { min-height: 420px; display: grid; place-items: center; background: var(--ec-white); }
.pool-table { position: relative; width: 74%; aspect-ratio: 1.6; background: var(--ec-blue); border: 14px solid var(--ec-black); border-radius: 22px; box-shadow: var(--ec-shadow); transform: perspective(700px) rotateX(14deg) rotateZ(-3deg); }
.pool-pocket { position: absolute; z-index: 2; width: 28px; height: 28px; border-radius: 50%; background: #050505; box-shadow: inset 0 0 0 4px rgba(255,255,255,.12), 0 2px 4px rgba(0,0,0,.35); }
.pocket-tl { top: -15px; left: -15px; }
.pocket-tm { top: -15px; left: 50%; transform: translateX(-50%); }
.pocket-tr { top: -15px; right: -15px; }
.pocket-bl { bottom: -15px; left: -15px; }
.pocket-bm { bottom: -15px; left: 50%; transform: translateX(-50%); }
.pocket-br { right: -15px; bottom: -15px; }
.pool-break-line { position: absolute; top: 5%; bottom: 5%; left: 25%; width: 2px; background: rgba(255,255,255,.78); box-shadow: 1px 0 0 rgba(0,0,0,.18); }
.pool-break-spot, .pool-rack-spot { position: absolute; z-index: 1; width: 10px; height: 10px; border-radius: 50%; background: #050505; box-shadow: 0 0 0 2px rgba(255,255,255,.3); transform: translate(-50%,-50%); }
.pool-break-spot { top: 50%; left: 25%; }
.pool-rack-spot { top: 50%; left: 75%; }
.pool-ball { position: absolute; width: 34px; height: 34px; border: 4px solid var(--ec-white); border-radius: 50%; background: var(--ec-black); box-shadow: 0 6px 10px rgba(0,0,0,.22); }
.pool-ball.b1 { top: 28%; left: 25%; background: var(--ec-yellow); }
.pool-ball.b2 { top: 48%; right: 24%; background: var(--ec-red); }
.pool-ball.b3 { bottom: 18%; left: 55%; background: var(--ec-black); }

.ec-section { padding: 76px 0; }
.ec-section.grey { background: var(--ec-grey); }
.ec-section.dark { color: var(--ec-white); background: var(--ec-black); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.section-head h2 { margin: 0; color: var(--ec-blue); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; }
.dark .section-head h2 { color: var(--ec-yellow); }
.section-head p { margin: 8px 0 0; max-width: 650px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ec-card { padding: 28px; background: var(--ec-white); border-top: 6px solid var(--ec-red); border-radius: var(--ec-radius); box-shadow: var(--ec-shadow); }
.ec-card h3 { margin: 10px 0 8px; color: var(--ec-black); font-size: 1.45rem; }
.ec-card p { margin: 0 0 16px; }
.ec-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--ec-white); background: var(--ec-blue); border-radius: 50%; font-weight: 700; }
.story-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 50px; align-items: start; }
.story-grid h2 { margin: 14px 0 0; color: var(--ec-blue); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; }
.story-copy { font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.feature { padding: 34px; border-left: 8px solid var(--ec-yellow); background: #1d1d1d; border-radius: var(--ec-radius); }
.feature h3 { margin: 12px 0 8px; font-size: 1.7rem; }
.label { display: inline-block; padding: 6px 10px; color: var(--ec-black); background: var(--ec-yellow); border-radius: 99px; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.news-card { overflow: hidden; background: var(--ec-white); border-radius: var(--ec-radius); box-shadow: var(--ec-shadow); }
.news-card .thumb { aspect-ratio: 16/9; display: grid; place-items: center; color: var(--ec-white); background: var(--ec-blue); font-size: 2rem; font-weight: 700; }
.news-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news-body { padding: 22px; }
.news-body h3 { margin: 8px 0; line-height: 1.2; }
.news-body a { font-weight: 700; }
.quick-links { display: flex; flex-wrap: wrap; gap: 12px; }
.quick-links a { padding: 13px 17px; color: var(--ec-black); background: var(--ec-yellow); border-radius: 9px; text-decoration: none; font-weight: 700; }
.affiliation { margin-top: 38px; padding-top: 28px; display: flex; align-items: center; gap: 20px; border-top: 1px solid #d8d8d8; }
.affiliation img { width: 160px; max-height: 90px; object-fit: contain; }

.site-main.content-area { padding: 56px 0 80px; }
.entry-header h1 { color: var(--ec-blue); font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; }
.entry-content { font-size: 1.05rem; }
.entry-content > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: var(--ec-width); }
.entry-content > .alignfull { max-width: none; }
.post-list { display: grid; gap: 24px; }
.post-item { padding: 25px 0; border-bottom: 1px solid #ddd; }
.post-item h2 { margin: 0; }

.site-footer { color: var(--ec-white); background: var(--ec-black); border-top: 6px solid var(--ec-red); }
.footer-grid { padding: 42px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 35px; }
.footer-grid a { color: var(--ec-yellow); }
.footer-meta { padding: 18px 0; border-top: 1px solid #333; font-size: .85rem; }

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; padding: 12px 0; }
  .menu-toggle { display: inline-block; }
  .main-navigation { width: 100%; display: none; }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { align-items: flex-start; flex-direction: column; padding: 18px 0; }
  .hero-grid, .story-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 60px 0; }
  .hero-art { min-height: 310px; }
  .card-grid, .news-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .admin-bar .site-header { top: 46px; }
  .ec-wrap { width: min(var(--ec-width), calc(100% - 28px)); }
  .site-branding { min-width: 0; }
  .card-grid, .news-grid, .feature-grid, .footer-grid { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .ec-section { padding: 56px 0; }
  .affiliation { align-items: flex-start; flex-direction: column; }
}
