:root {
  --primary: #14203e;
  --primary-light: #253359;
  --accent: #e8a33d;
  --accent-rgb: 232, 163, 61;
  --text-dark: #1c2841;
  --text-light: #667085;
  --bg-light: #f8f9fc;
  --bg-white: #ffffff;
  --danger: #b5342a;
  --radius: 12px;
  --radius-lg: 24px;
  --shadow: 0 8px 30px rgba(20, 32, 62, 0.08);
  --shadow-sm: 0 4px 12px rgba(20, 32, 62, 0.04);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', "Segoe UI", system-ui, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* HEADER */
.site-header {
  background: var(--bg-white);
  color: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--primary);
}
.header-inner {
  max-width: 1300px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 5%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.logo img {
  height: 56px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.logo span {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}
nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  padding: 8px 12px;
  border-radius: 6px;
}
nav a:hover, nav a.active {
  color: var(--accent);
  background: rgba(20, 32, 62, 0.04);
}

/* HERO HIGHLIGHTS */
.hero-highlights {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 80px 5% 60px;
  text-align: center;
  position: relative;
}
.hero-highlights h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero-highlights p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 40px;
}
.shortcuts-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
}
.shortcut-tag {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.shortcut-tag:hover {
  background: var(--bg-white);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* SECTION TITLES */
section {
  padding: 80px 5%;
  max-width: 1300px;
  margin: auto;
}
.section-title {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}
.section-sub {
  color: var(--text-light);
  margin-top: 15px;
  margin-bottom: 48px;
  font-size: 1.1rem;
}

/* EN UN CLIC */
.clic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.clic-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(20, 32, 62, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.clic-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.clic-icon {
  font-size: 2.5rem;
  color: var(--accent);
}
.clic-card span {
  font-weight: 600;
  font-size: 1rem;
}

/* NEWS & AGENDA CARDS */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(20, 32, 62, 0.05);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.card-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.card:hover img {
  transform: scale(1.05);
}
.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-body h3 {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
}
.card-date {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.badge.avenir {
  background: rgba(232, 163, 61, 0.1);
  color: var(--accent);
}
.badge.passee {
  background: #eee;
  color: #555;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* FILTRES */
.filtres {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.filtres button {
  padding: 10px 20px;
  border-radius: 50px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.filtres button.active, .filtres button:hover {
  background: var(--primary);
  color: white;
}

/* PETANQUE BOXES */
.box {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  margin-bottom: 32px;
  border: 1px solid rgba(20, 32, 62, 0.05);
}
.box h2 {
  color: var(--primary);
  margin-bottom: 24px;
  font-weight: 700;
}
.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
input, .form-row input {
  padding: 14px 18px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 1rem;
  flex: 1;
  min-width: 200px;
  transition: var(--transition);
}
input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(20, 32, 62, 0.1);
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}
th, td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #eaecf0;
}
th {
  background: var(--primary);
  color: white;
  font-weight: 600;
}
tr:hover {
  background: #f9fafb;
}
.match-card {
  border: 1px solid #eaecf0;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
}
.match-card input[type=number] {
  width: 80px;
  text-align: center;
  padding: 8px;
  min-width: unset;
}
.numero-pill {
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

/* FOOTER */
footer {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 60px 5%;
  margin-top: 80px;
}
footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
footer a:hover {
  text-decoration: underline;
}

@media(max-width: 768px) {
  nav ul {
    display: none;
  }
  .hero-highlights h1 {
    font-size: 2rem;
  }
}
