/*
Theme Name: PCCTT Minimal
Theme URI: https://www.pcctt.fr
Author: PCCTT
Author URI: https://www.pcctt.fr
Description: Thème minimaliste et pratique pour le club Prades Conflent Canigó Tennis de Table. Identité visuelle inspirée du logo du club : bleu ciel, montagnes, soleil catalan.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: pcctt-minimal
*/

/* ==========================================================================
   1. VARIABLES — modifie ces couleurs pour changer toute l'identité du site
   ========================================================================== */
:root{
  --pcctt-blue:        #2F6FB0;   /* bleu ciel du logo */
  --pcctt-blue-dark:   #163259;   /* bleu montagnes / header */
  --pcctt-red:         #D21F3C;   /* rouge catalan */
  --pcctt-yellow:      #FFC93C;   /* jaune catalan / soleil */
  --pcctt-cream:       #FAF7F0;   /* fond principal */
  --pcctt-text:        #1C1C1E;
  --pcctt-text-light:  #5B6470;
  --pcctt-white:       #FFFFFF;
  --pcctt-radius:      14px;
  --pcctt-max-width:   1140px;
  --pcctt-font-head:   'Poppins', sans-serif;
  --pcctt-font-body:   'Inter', sans-serif;
}

/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--pcctt-font-body);
  color: var(--pcctt-text);
  background: var(--pcctt-cream);
  line-height: 1.6;
  font-size: 17px;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: var(--pcctt-blue); text-decoration: none; }
a:hover{ color: var(--pcctt-red); }
h1, h2, h3, h4{
  font-family: var(--pcctt-font-head);
  color: var(--pcctt-blue-dark);
  line-height: 1.25;
  margin: 0 0 .5em;
}
h1{ font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2{ font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; }
.container{
  max-width: var(--pcctt-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   3. HEADER
   ========================================================================== */
.site-header{
  background: var(--pcctt-white);
  border-bottom: 4px solid var(--pcctt-yellow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-branding{ display: flex; align-items: center; gap: 12px; }
.site-branding img{ height: 52px; width: auto; }
.site-branding .site-title{
  font-family: var(--pcctt-font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--pcctt-blue-dark);
  margin: 0;
}
.main-nav ul{
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.main-nav a{
  color: var(--pcctt-blue-dark);
  font-weight: 600;
  font-size: .97rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover{ border-bottom-color: var(--pcctt-red); }
.menu-toggle{ display: none; }

@media (max-width: 780px){
  .main-nav{
    display: none;
    width: 100%;
    order: 3;
  }
  .main-nav.is-open{ display: block; }
  .main-nav ul{ flex-direction: column; gap: 4px; padding: 12px 0; }
  .site-header .container{ flex-wrap: wrap; }
  .menu-toggle{
    display: inline-block;
    background: var(--pcctt-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
  }
}

/* ==========================================================================
   4. HERO (page d'accueil)
   ========================================================================== */
.hero{
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #7fb4e0 0%, var(--pcctt-blue) 55%, var(--pcctt-blue-dark) 100%);
  color: #fff;
  padding: 90px 0 70px;
  text-align: center;
}
.hero::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60px;
  background: repeating-linear-gradient(90deg, var(--pcctt-yellow) 0 40px, var(--pcctt-red) 40px 80px);
  clip-path: polygon(0 60%, 100% 40%, 100% 100%, 0% 100%);
  opacity: .9;
}
.hero h1{ color: #fff; position: relative; z-index: 2; }
.hero p{
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 1.1rem;
  position: relative;
  z-index: 2;
  color: #eef4fb;
}
.btn{
  display: inline-block;
  background: var(--pcctt-red);
  color: #fff;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--pcctt-font-head);
  letter-spacing: .3px;
  position: relative;
  z-index: 2;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover{ background: var(--pcctt-yellow); color: var(--pcctt-blue-dark); transform: translateY(-2px); }

/* ==========================================================================
   5. SECTIONS GÉNÉRIQUES
   ========================================================================== */
.section{ padding: 64px 0; }
.section-title{ text-align: center; margin-bottom: 36px; }
.section-alt{ background: var(--pcctt-white); }

/* ==========================================================================
   6. GRILLE ARTICLES
   ========================================================================== */
.news-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px){ .news-grid{ grid-template-columns: 1fr; } }

.news-card{
  background: #fff;
  border-radius: var(--pcctt-radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(22,50,89,.08);
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover{ transform: translateY(-4px); box-shadow: 0 10px 26px rgba(22,50,89,.14); }
.news-card img{ aspect-ratio: 16/10; object-fit: cover; }
.news-card .news-card-body{ padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.news-card .news-cat{
  font-size: .78rem;
  font-weight: 700;
  color: var(--pcctt-red);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.news-card .news-date{ font-size: .82rem; color: var(--pcctt-text-light); margin-bottom: 10px; }
.news-card h3{ font-size: 1.15rem; margin-bottom: 8px; }
.news-card p{ color: var(--pcctt-text-light); font-size: .95rem; flex: 1; }
.news-card .read-more{ font-weight: 700; font-size: .9rem; margin-top: 12px; }

/* ==========================================================================
   7. BLOC ENTRAÎNEMENTS (pratique, éditable dans functions.php)
   ========================================================================== */
.schedule{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.schedule-card{
  background: var(--pcctt-cream);
  border-left: 5px solid var(--pcctt-blue);
  border-radius: 10px;
  padding: 20px 22px;
}
.schedule-card h4{ margin-bottom: 6px; font-size: 1.05rem; }
.schedule-card p{ margin: 0; color: var(--pcctt-text-light); font-size: .93rem; }

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.site-footer{
  background: var(--pcctt-blue-dark);
  color: #dfe8f3;
  padding: 50px 0 24px;
  margin-top: 40px;
}
.footer-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 30px;
}
@media (max-width: 780px){ .footer-grid{ grid-template-columns: 1fr; } }
.site-footer h4{ color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer a{ color: #cfe0f2; }
.site-footer a:hover{ color: var(--pcctt-yellow); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 18px;
  text-align: center;
  font-size: .85rem;
  color: #9fb3cc;
}

/* ==========================================================================
   9. PAGES / ARTICLES SIMPLES
   ========================================================================== */
.page-content{ padding: 60px 0; max-width: 780px; margin: 0 auto; }
.page-content img{ border-radius: var(--pcctt-radius); margin: 20px 0; }
