/*
Theme Name: Au Cœur du Peloton
Author: Clément Dormoy
Description: Thème sur mesure d'Au Cœur du Peloton — le cyclisme expliqué à ceux qui le regardent. Design moderne noir et jaune maillot.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: au-coeur-du-peloton
*/

/* ===== En-tête ===== */
.acdp-header {
  background: rgba(11, 12, 16, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
}
.acdp-header-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 14px 24px;
}
.acdp-header .wp-block-site-title a {
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.acdp-header .wp-block-site-title a::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #FFD400;
  box-shadow: 0 0 14px rgba(255, 212, 0, 0.5);
  margin-right: 9px;
}
.acdp-header .wp-block-navigation a {
  color: #9aa0ab;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 100px;
  transition: all 0.2s ease;
}
.acdp-header .wp-block-navigation a:hover {
  color: #FFD400;
  text-decoration: none;
}

/* ===== Héros ===== */
.acdp-hero {
  position: relative;
  background: #0b0c10;
  color: #fff;
  padding: 80px 24px 90px;
  text-align: center;
  overflow: hidden;
}
.acdp-hero::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(255, 212, 0, 0.16) 0%, transparent 65%);
  pointer-events: none;
}
.acdp-hero > * { position: relative; z-index: 1; }
.acdp-hero h1,
.acdp-hero .wp-block-site-title a {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-decoration: none;
}
.acdp-hero .acdp-jaune { color: #FFD400; }
.acdp-hero p, .acdp-hero .wp-block-site-tagline {
  color: #a6acb8;
  font-size: 1.1rem;
  max-width: 580px;
  margin: 14px auto 0;
}

/* ===== Grille d'articles ===== */
.acdp-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  max-width: 1060px;
  margin: 48px auto;
  padding: 0 24px;
  list-style: none;
}
.acdp-grid > li { margin: 0 !important; }
.acdp-card {
  background: #ffffff;
  border: 1px solid #e9eaee;
  border-radius: 18px;
  padding: 28px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.22s ease;
}
.acdp-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FFD400, #ffb800);
  opacity: 0;
  transition: opacity 0.22s;
}
.acdp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(16, 18, 24, 0.09);
  border-color: transparent;
}
.acdp-card:hover::before { opacity: 1; }
.acdp-card .wp-block-post-date {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #92660a;
  background: #fff6d6;
  display: inline-block;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.acdp-card .wp-block-post-title {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin: 0 0 10px;
}
.acdp-card .wp-block-post-title a { text-decoration: none; color: #101218; }
.acdp-card .wp-block-post-title a:hover { color: #92660a; }
.acdp-card .wp-block-post-excerpt { font-size: 0.93rem; color: #6b7280; }
.acdp-card .wp-block-post-excerpt__more-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  font-size: 0.86rem;
  color: #101218;
  text-decoration: none;
}

/* ===== Pagination ===== */
.wp-block-query-pagination {
  max-width: 1060px;
  margin: 0 auto 48px;
  padding: 0 24px;
  font-weight: 700;
}

/* ===== Article seul / pages ===== */
.acdp-article-header {
  background: #0b0c10;
  color: #fff;
  padding: 60px 24px;
  text-align: center;
}
.acdp-article-header .wp-block-post-title,
.acdp-article-header h1 {
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 780px;
  margin: 0 auto;
}
.acdp-article-header .wp-block-post-date {
  display: block;
  color: #FFD400;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 16px;
}
.acdp-content { padding: 48px 24px 24px; }
.acdp-content h2 {
  font-size: 1.5rem;
  margin-top: 2em;
}
.acdp-content a { color: #92660a; }

/* ===== Pied de page ===== */
.acdp-footer {
  position: relative;
  background: #0b0c10;
  color: #6f7683;
  text-align: center;
  padding: 48px 24px;
  margin-top: 72px;
  overflow: hidden;
}
.acdp-footer::before {
  content: "";
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(255, 212, 0, 0.12) 0%, transparent 65%);
  pointer-events: none;
}
.acdp-footer > * { position: relative; }
.acdp-footer .wp-block-site-title a {
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  font-size: 1.05rem;
}
.acdp-footer .wp-block-site-tagline { color: #a6acb8; font-size: 0.9rem; }
.acdp-footer .wp-block-jetpack-subscriptions { max-width: 480px; margin: 20px auto 0; }
.acdp-footer input[type="email"] {
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  padding: 12px 18px;
}
.acdp-footer button, .acdp-footer .wp-block-button__link {
  background: #FFD400;
  color: #0b0c10;
  border-radius: 100px;
  font-weight: 800;
  border: none;
}
