/*
Theme Name: Africa'Talent
Theme URI: https://africatalentagence.com
Author: Africa'Talent
Description: Theme WordPress professionnel pour agence de management sportif.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: africatalent
*/

:root {
  --at-blue: #001f8f;
  --at-yellow: #ffdf55;
  --at-ink: #101728;
  --at-muted: #5c667a;
  --at-line: #dbe1eb;
  --at-bg: #f6f8fb;
  --at-white: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--at-ink);
  background: var(--at-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--at-blue);
  text-decoration: none;
}

img {
  height: auto;
  max-width: 100%;
}

.at-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.at-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(16, 23, 40, .08);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.at-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 20px;
}

.at-logo img {
  display: block;
  width: 80px;
}

.at-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  font-weight: 800;
}

.at-nav ul {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.at-menu-toggle {
  display: none;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.at-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 12px 18px;
  background: var(--at-blue);
  color: #fff;
  font-weight: 900;
}

.at-button.secondary {
  border: 1px solid var(--at-blue);
  background: #fff;
  color: var(--at-blue);
}

.at-hero {
  background: linear-gradient(110deg, #fff 0%, #fff7d6 48%, var(--at-yellow) 100%);
  border-bottom: 1px solid rgba(16, 23, 40, .08);
}

.at-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  align-items: center;
  gap: 42px;
  min-height: 620px;
  padding: 68px 0;
}

.at-kicker {
  color: var(--at-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.at-hero h1,
.at-page-title h1 {
  margin: 12px 0 18px;
  max-width: 780px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
  letter-spacing: 0;
}

.at-hero p,
.at-page-title p {
  max-width: 680px;
  color: var(--at-muted);
  font-size: 19px;
}

.at-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.at-hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.at-section {
  padding: 72px 0;
}

.at-section.alt {
  background: var(--at-bg);
}

.at-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.at-section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.at-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.at-card {
  overflow: hidden;
  border: 1px solid var(--at-line);
  border-radius: 8px;
  background: #fff;
}

.at-card-content {
  padding: 20px;
}

.at-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.at-meta {
  color: var(--at-muted);
  font-size: 14px;
  font-weight: 700;
}

.at-player-photo {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  background: #e9edf5;
}

.at-page-title {
  padding: 70px 0 44px;
  background: #fff7d6;
  border-bottom: 1px solid rgba(16, 23, 40, .08);
}

.at-content {
  padding: 56px 0;
}

.at-two-col {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: start;
}

.at-detail-list {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--at-line);
  border-radius: 8px;
  background: #fff;
}

.at-detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eef1f6;
  padding-bottom: 10px;
}

.at-detail-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.at-footer {
  padding: 42px 0;
  background: #101728;
  color: #fff;
}

.at-footer a {
  color: #fff;
}

.at-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}

.at-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

@media (max-width: 860px) {
  .at-header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 66px;
    padding: 10px 0;
  }

  .at-logo img {
    width: 152px;
  }

  .at-menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--at-line);
    border-radius: 8px;
    background: #fff;
    color: var(--at-ink);
    cursor: pointer;
  }

  .at-menu-toggle span:not(.screen-reader-text) {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .at-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    padding: 12px 0 4px;
    border-top: 1px solid var(--at-line);
  }

  .at-nav.is-open {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .at-nav ul {
    display: grid;
    gap: 8px;
    width: 100%;
  }

  .at-nav a {
    display: block;
    padding: 10px 0;
  }

  .at-nav .at-button {
    width: 100%;
  }

  .at-section-head,
  .at-footer-grid,
  .at-footer-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .at-hero-grid,
  .at-two-col {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .at-hero-logo {
    min-height: 220px;
  }
}

.at-player-card .at-card-content {
  display: grid;
  gap: 10px;
}

.at-player-card h3 {
  margin-bottom: 0;
}

.at-player-card .at-profile-button {
  margin-top: 8px;
  width: fit-content;
}

.at-player-photo-link {
  display: block;
}

.at-player-card .at-player-photo {
  display: block;
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}