/*
Theme Name: Lescar'n Roller
Theme URI: https://lescarnroller.com
Author: Lescar'n Roller Club
Author URI: https://lescarnroller.com
Description: Thème WordPress custom pour le club de roller de Lescar. Design intégré, autonome — aucun plugin builder requis. Homepage complète (hero, activités, actualités dynamiques, événements, contact), header/footer inclus, personnalisation via l'outil de personnalisation WordPress natif.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lescarnroller
Tags: sport, association, roller
*/

:root {
  --rouge: #A82339;
  --rouge-hover: #862033;
  --rouge-clair: #FBEEF1;
  --rouge-vif: #862033;
  --noir: #1A1A1A;
  --noir-fonce: #0F0F0F;
  --gris-tres-clair: #F5F4EF;
  --gris-clair: #BDBBB2;
  --gris: #8A8983;
  --gris-moyen: #6F6E69;
  --gris-fonce: #3F3E3A;
  --bordure: #E8E7E2;
  --blanc: #FFFFFF;
  --surface: #FAFAF6;
  --surface-2: #F3F2EC;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--noir); line-height: 1.5; background: var(--surface); }
a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

/* Header */
.header { background: var(--noir); padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--noir-fonce); position: sticky; top: 0; z-index: 100; }
.header-brand { display: flex; flex-direction: row; align-items: center; gap: 16px; flex-shrink: 0; }
.header-brand img, .header-brand .custom-logo { width: 80px !important; height: 80px !important; object-fit: contain; display: block; }
.header-title { display: flex; flex-direction: column; align-items: flex-start; }
.header-text { color: var(--blanc); font-size: 18px; font-weight: 500; letter-spacing: 0.3px; line-height: 1.2; }
.header-subtitle { color: var(--gris); font-size: 12px; margin-top: 2px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--gris-clair); font-size: 13px; transition: color 0.2s; }
.nav a:hover, .nav .current-menu-item a, .nav .current_page_item a { color: var(--blanc); }
.nav .cta a, .nav a.cta { background: var(--rouge); color: var(--blanc); padding: 8px 16px; border-radius: 20px; font-size: 12px; font-weight: 500; transition: background 0.2s; }
.nav .cta a:hover, .nav a.cta:hover { background: var(--rouge-hover); color: var(--blanc); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--blanc) 0%, var(--surface) 100%); padding: 72px 32px; position: relative; overflow: hidden; }
.hero-content { max-width: 600px; position: relative; z-index: 2; }
.hero-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-streak { position: absolute; height: 5px; background: linear-gradient(90deg, transparent 0%, rgba(168,35,57,0.55) 60%, rgba(168,35,57,0.85) 100%); border-radius: 4px; opacity: 0; animation: streak 1.8s linear infinite; }
.hero-streak.s1 { top: 18%; left: 55%; width: 22%; height: 4px; animation-duration: 1.8s; }
.hero-streak.s2 { top: 28%; left: 55%; width: 28%; height: 7px; animation-delay: 0.3s; animation-duration: 2.1s; }
.hero-streak.s3 { top: 40%; left: 55%; width: 20%; height: 5px; animation-delay: 0.7s; animation-duration: 1.7s; }
.hero-streak.s4 { top: 52%; left: 55%; width: 26%; height: 8px; animation-delay: 1.0s; animation-duration: 2.2s; }
.hero-streak.s5 { top: 64%; left: 55%; width: 30%; height: 6px; animation-delay: 1.4s; animation-duration: 1.9s; }
.hero-streak.s6 { top: 74%; left: 55%; width: 24%; height: 4px; animation-delay: 0.4s; animation-duration: 1.8s; }
.hero-streak.s7 { top: 84%; left: 55%; width: 26%; height: 5px; animation-delay: 1.1s; animation-duration: 2.0s; }
@keyframes streak {
  0% { transform: translateX(0); opacity: 0; }
  15% { opacity: 0.55; }
  75% { opacity: 0.35; }
  100% { transform: translateX(180%); opacity: 0; }
}
.hero-tag { display: inline-block; background: var(--rouge-clair); color: var(--rouge-vif); padding: 5px 12px; border-radius: 14px; font-size: 11px; font-weight: 500; margin-bottom: 16px; letter-spacing: 0.5px; }
.hero h1 { color: var(--noir); font-size: 44px; font-weight: 500; margin: 0 0 14px; line-height: 1.15; }
.hero h1 span { color: var(--rouge); }
.hero p { color: var(--gris-fonce); font-size: 16px; line-height: 1.6; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary { background: var(--rouge); color: var(--blanc); padding: 12px 26px; border-radius: 24px; font-size: 14px; font-weight: 500; display: inline-block; transition: background 0.2s; cursor: pointer; border: none; }
.btn-primary:hover { background: var(--rouge-hover); }
.btn-secondary { background: transparent; color: var(--noir); padding: 12px 26px; border: 1px solid var(--bordure); border-radius: 24px; font-size: 14px; display: inline-block; transition: border 0.2s; cursor: pointer; }
.btn-secondary:hover { border-color: var(--noir); }

/* Stats */
.stats { background: var(--blanc); padding: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; border-bottom: 1px solid #eee; }
.stat { text-align: center; }
.stat:not(:first-child) { border-left: 1px solid #eee; }
.stat-num { font-size: 30px; font-weight: 500; color: var(--rouge); }
.stat-label { font-size: 12px; color: var(--gris-fonce); margin-top: 4px; }

/* Sections */
.section { padding: 56px 32px; }
.section-light { background: var(--blanc); }
.section-grey { background: var(--surface); }
.section-header { text-align: center; margin-bottom: 32px; }
.section-header-left { text-align: left; }
.section-eyebrow { color: var(--rouge); font-size: 12px; font-weight: 500; letter-spacing: 1.5px; margin-bottom: 8px; }
.section-title { font-size: 28px; font-weight: 500; margin: 0 0 8px; color: var(--noir); }
.section-sub { color: var(--gris-fonce); font-size: 14px; margin: 0; }

/* Activity cards */
.sections-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.section-card { background: var(--blanc); border: 0.5px solid var(--bordure); border-radius: 12px; padding: 0; border-top: 3px solid var(--rouge); transition: transform 0.25s ease, box-shadow 0.25s ease; cursor: pointer; position: relative; overflow: hidden; }
.section-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.section-card.hockey { border-top-color: var(--noir); }
.section-card-image { width: 100%; height: 150px; object-fit: cover; display: block; background: var(--gris-tres-clair); transition: transform 0.5s ease; }
.section-card:hover .section-card-image { transform: scale(1.04); }
.section-card-body { padding: 18px 22px 22px; }
.section-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.section-card-icon { width: 38px; height: 38px; background: var(--rouge-clair); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.section-card.hockey .section-card-icon { background: var(--gris-tres-clair); }
.section-card-icon i { font-size: 20px; color: var(--rouge); }
.section-card.hockey .section-card-icon i { color: var(--noir); }
.section-card-title { font-weight: 500; font-size: 15px; }
.section-card p { font-size: 13px; color: var(--gris-fonce); margin: 0 0 12px; line-height: 1.5; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { background: var(--gris-tres-clair); color: var(--gris-fonce); padding: 3px 10px; border-radius: 10px; font-size: 11px; }
.section-card-extra { max-height: 0; opacity: 0; margin-top: 0; padding-top: 0; border-top: 1px solid transparent; overflow: hidden; transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.35s ease, padding-top 0.35s ease, border-top-color 0.35s ease; }
.section-card:hover .section-card-extra { max-height: 220px; opacity: 1; margin-top: 14px; padding-top: 14px; border-top-color: var(--bordure); }
.extra-line { display: flex; align-items: start; gap: 8px; font-size: 12px; color: var(--gris-fonce); line-height: 1.5; margin-bottom: 6px; }
.extra-line:last-child { margin-bottom: 0; }
.extra-line i { font-size: 14px; color: var(--rouge); flex-shrink: 0; margin-top: 1px; }
.section-card.hockey .extra-line i { color: var(--noir); }

/* News */
.news-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.news-link { color: var(--rouge); font-size: 13px; font-weight: 500; }
.news-link:hover { text-decoration: underline; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card { background: var(--blanc); border: 0.5px solid var(--bordure); border-radius: 12px; overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.news-card-image { width: 100%; height: 160px; object-fit: cover; display: block; background: var(--gris-tres-clair); }
.news-card-body { padding: 18px 22px 22px; }
.news-date { color: var(--rouge); font-size: 11px; font-weight: 500; letter-spacing: 1px; margin-bottom: 8px; text-transform: uppercase; }
.news-title { font-weight: 500; font-size: 16px; margin-bottom: 8px; color: var(--noir); line-height: 1.35; }
.news-excerpt { font-size: 13px; color: var(--gris-fonce); line-height: 1.55; margin-bottom: 12px; }
.news-read { color: var(--rouge); font-size: 13px; font-weight: 500; }
.news-read:hover { text-decoration: underline; }

/* Events */
.events-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.events-link { color: var(--rouge); font-size: 13px; font-weight: 500; }
.events-link:hover { text-decoration: underline; }
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.event { background: var(--blanc); border-radius: 12px; overflow: hidden; border: 0.5px solid var(--bordure); }
.event-date { background: var(--noir); padding: 20px; color: var(--blanc); position: relative; }
.event-date.rouge { background: var(--rouge); }
.event-date.rouge .event-month { color: rgba(255, 255, 255, 0.8); }
.event-badge { position: absolute; top: 12px; right: 12px; background: var(--rouge); color: var(--blanc); font-size: 10px; padding: 3px 8px; border-radius: 10px; font-weight: 500; }
.event-badge.dark { background: rgba(0,0,0,0.3); }
.event-day { font-size: 32px; font-weight: 500; line-height: 1; }
.event-month { font-size: 12px; color: var(--gris); margin-top: 4px; }
.event-body { padding: 18px; }
.event-title { font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.event-meta { font-size: 12px; color: var(--gris-fonce); margin-bottom: 10px; }
.event-desc { font-size: 13px; color: var(--gris-fonce); line-height: 1.5; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info p { color: var(--gris-fonce); font-size: 15px; line-height: 1.6; margin-bottom: 24px; }
.contact-items { display: flex; flex-direction: column; gap: 14px; }
.contact-item { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.contact-item-icon { width: 36px; height: 36px; background: var(--rouge-clair); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.contact-item-icon i { font-size: 18px; color: var(--rouge); }
.contact-item-label { color: var(--gris-moyen); font-size: 11px; }
.contact-item-value { color: var(--noir); }
.form-card { background: var(--blanc); border-radius: 12px; padding: 24px; border: 0.5px solid var(--bordure); }
.form-card h3 { font-weight: 500; font-size: 15px; margin-bottom: 16px; }

/* Footer */
.footer { background: var(--noir); padding: 36px 32px 24px; color: var(--blanc); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; font-size: 13px; max-width: 1200px; margin: 0 auto; }
.footer-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand-row img { width: 48px; height: 48px; object-fit: contain; }
.footer-brand-text { font-weight: 500; font-size: 14px; color: var(--blanc); }
.footer-tagline { color: var(--gris); line-height: 1.6; }
.footer h4 { font-weight: 500; margin-bottom: 10px; font-size: 13px; color: var(--blanc); }
.footer ul li { color: var(--gris); padding: 3px 0; }
.footer ul li a:hover { color: var(--blanc); }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.social { width: 34px; height: 34px; background: rgba(255,255,255,0.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--blanc); transition: background 0.2s; }
.social:hover { background: var(--rouge); color: var(--blanc); }
.social i { font-size: 16px; }
.footer-bottom { max-width: 1200px; margin: 24px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 11px; color: var(--gris); text-align: center; }

/* Article / Blog */
.entry-single { max-width: 780px; margin: 0 auto; padding: 56px 32px; }
.entry-single .entry-header { margin-bottom: 32px; }
.entry-single h1 { font-size: 36px; font-weight: 500; color: var(--noir); margin-bottom: 12px; line-height: 1.2; }
.entry-single .entry-meta { color: var(--gris-moyen); font-size: 13px; margin-bottom: 16px; }
.entry-single .entry-thumbnail { margin-bottom: 32px; border-radius: 12px; overflow: hidden; }
.entry-single .entry-content { color: var(--gris-fonce); font-size: 16px; line-height: 1.7; }
.entry-single .entry-content p { margin-bottom: 16px; }
.entry-single .entry-content h2 { font-size: 24px; font-weight: 500; color: var(--noir); margin: 32px 0 12px; }
.entry-single .entry-content h3 { font-size: 18px; font-weight: 500; color: var(--noir); margin: 24px 0 8px; }
.entry-single .entry-content a { color: var(--rouge); text-decoration: underline; }
.entry-single .back-link { display: inline-block; margin-top: 32px; color: var(--rouge); font-size: 14px; }

.archive-header { padding: 56px 32px 24px; text-align: center; background: var(--surface); }
.archive-header h1 { font-size: 36px; font-weight: 500; color: var(--noir); }
.archive-header p { color: var(--gris-fonce); margin-top: 8px; }

/* Responsive */
@media (max-width: 900px) {
  .nav a:not(.cta) { display: none; }
  .sections-grid, .events-grid, .news-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 32px; }
  .stat:nth-child(3) { border-left: none; }
}
@media (max-width: 600px) {
  .header { padding: 10px 16px; }
  .header-brand img, .header-brand .custom-logo { width: 60px !important; height: 60px !important; }
  .header-text { display: none; }
  .hero { padding: 48px 20px; }
  .hero h1 { font-size: 28px; }
  .section { padding: 40px 20px; }
  .sections-grid, .events-grid, .news-grid, .stats { grid-template-columns: 1fr; }
  .stat { border-left: none !important; }
  .events-head, .news-head { flex-direction: column; align-items: start; gap: 12px; }
}
