/* =====================================================
   PAGE D'ACCUEIL — FC Luy de Béarn
   Fichier : assets/css/front-page.css (chargé uniquement sur l'accueil)
   ===================================================== */

.page-accueil {
  --g:     #2A5C1E;
  --gl:    #9FDF6A;
  --gp:    #EAF3DE;
  --night: #1B2618;
  --gold:  #B98A1E;
}

/* ── Éléments communs ── */
.acc-eyebrow {
  font-size: clamp(17px, 0.9vw + 14px, 18px);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g);
  margin-bottom: 6px;
}
.acc-eyebrow--center { text-align: center; }

.acc-section h2 {
  font-size: clamp(24px, 2.5vw + 16px, 36px);
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.acc-section {
  padding: clamp(48px, 5vw, 72px) var(--fclb-gutter, clamp(20px, 5vw, 80px));
}
.acc-section--alt {
  background: var(--color-background-secondary, #F6F7F2);
}
.acc-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.acc-section__head h2 { margin-bottom: 0; }

.acc-see-all {
  font-size: clamp(17px, 0.9vw + 14px, 18px);
  color: var(--g);
  text-decoration: none;
  border-bottom: 1px solid #C0DD97;
  padding-bottom: 2px;
  white-space: nowrap;
  transition: border-color 0.15s;
}
.acc-see-all:hover { border-color: var(--g); }

/* ── Boutons ── */
.acc-btn-primary {
  display: inline-block;
  background: #fff;
  color: var(--g);
  font-size: clamp(17px, 1vw + 14px, 18px);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
}
.acc-btn-primary:hover { background: var(--gp); }
.acc-btn-primary--green {
  background: var(--g);
  color: #fff;
}
.acc-btn-primary--green:hover { background: #1B3D12; color: #fff; }

.acc-btn-ghost {
  display: inline-block;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: clamp(17px, 1vw + 14px, 18px);
  font-family: var(--font-body);
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.acc-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ── Hero ── */
.acc-hero {
  background: var(--g) !important;
  padding: clamp(52px, 6vw, 88px) var(--fclb-gutter, clamp(20px, 5vw, 80px));
  position: relative;
  overflow: hidden;
  isolation: isolate; /* contexte d'empilement : photo (-2) < dégradé (-1) < bande diagonale < contenu (1) */
}

/* Photo de fond : vraie <img> responsive (srcset) + dégradé vert club pour la lisibilité du texte */
.acc-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: -2;
  max-width: none;
}
.acc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(20, 46, 13, 0.90) 0%, rgba(20, 46, 13, 0.55) 42%, rgba(20, 46, 13, 0.15) 78%);
}

/* Bande diagonale décorative */
.acc-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: rgba(0, 0, 0, 0.08);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
}

.acc-hero__inner {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: center;
  gap: clamp(32px, 4vw, 60px);
  position: relative;
  z-index: 1;
}
.acc-hero__left { flex: 1; }

/* Pastille */
.acc-hero .hero-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: clamp(17px, 0.8vw + 14px, 18px) !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  padding: 5px 14px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  margin-bottom: 20px !important;
}
.acc-hero .hero-dot {
  width: 6px !important;
  height: 6px !important;
  background: var(--gl) !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

.acc-hero__title {
  font-size: clamp(48px, 7vw + 10px, 88px) !important;
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  line-height: 0.95 !important;
  color: #ffffff !important;
  letter-spacing: -0.03em !important;
  margin: 16px 0 22px !important;
}
.acc-hero__title em {
  color: var(--gl) !important;
  font-style: normal !important;
}
.acc-hero__sub {
  font-size: clamp(17px, 1.1vw + 14px, 19px) !important;
  color: rgba(255, 255, 255, 0.92) !important; /* contraste AA sur la photo */
  line-height: 1.65 !important;
  max-width: 480px !important;
  margin-bottom: 36px !important;
}
.acc-hero__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

/* Stats */
.acc-stats {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.acc-stat { background: transparent; border-radius: 0; padding: 0; }
.acc-stat--light { background: transparent; }

.acc-stat__val {
  display: block !important;
  font-size: clamp(28px, 3.5vw + 14px, 44px) !important;
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em !important;
  line-height: 1 !important;
  margin-bottom: 5px !important;
}
.acc-stat--light .acc-stat__val { color: var(--gl) !important; }
.acc-stat__lbl {
  display: block !important;
  font-size: clamp(17px, 0.8vw + 14px, 18px) !important;
  color: rgba(255, 255, 255, 0.82) !important; /* contraste AA sur la photo */
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}
.acc-stat--light .acc-stat__lbl { color: rgba(255, 255, 255, 0.82) !important; }

/* Logo à droite — grand et bien visible */
.acc-hero__right {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.acc-hero__logo {
  width: clamp(140px, 16vw, 220px) !important;
  height: auto !important;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.35)) !important;
  opacity: 1 !important;
}

/* ── Prochains matchs ── */
.acc-matchs__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.acc-match {
  background: var(--color-background-primary, #fff);
  border: 0.5px solid #DDE8D5;
  border-radius: 10px;
  padding: clamp(16px, 2vw, 20px) clamp(20px, 2.5vw, 28px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}
.acc-match__badge {
  display: inline-block;
  font-size: clamp(17px, 0.8vw + 14px, 18px);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--gp);
  color: var(--g);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.acc-match__teams {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.acc-match__home {
  font-size: clamp(17px, 1.1vw + 14px, 19px);
  font-weight: 700;
  color: #111;
}
.acc-match__away {
  font-size: clamp(17px, 1.1vw + 14px, 19px);
  color: #666;
}
.acc-match__vs {
  font-size: clamp(17px, 0.8vw + 14px, 18px);
  color: #bbb;
  font-weight: 500;
}
.acc-match__right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.acc-match__info { text-align: right; }
.acc-match__date {
  display: block;
  font-size: clamp(17px, 1vw + 14px, 18px);
  font-weight: 600;
  color: #111;
  white-space: nowrap;
}
.acc-match__lieu {
  display: block;
  font-size: clamp(17px, 0.8vw + 14px, 18px);
  color: #777;
  margin-top: 3px;
  white-space: nowrap;
}

/* ── Actualités ── */
.acc-actus__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.acc-actu-card {
  background: var(--color-background-primary, #fff);
  border: 0.5px solid #E2E8DA;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.acc-actu-card__img-link { display: block; }
.acc-actu-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: opacity 0.15s;
}
.acc-actu-card__img:hover { opacity: 0.9; }
.acc-actu-card__img-ph {
  width: 100%;
  height: 180px;
  background: var(--gp);
}
.acc-actu-card__body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.acc-actu-card__tag {
  font-size: clamp(17px, 0.8vw + 14px, 18px);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--g);
  margin-bottom: 8px;
}
.acc-actu-card__title {
  font-size: clamp(17px, 1vw + 14px, 19px);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
}
.acc-actu-card__title a {
  color: #111;
  text-decoration: none;
}
.acc-actu-card__title a:hover { color: var(--g); }
.acc-actu-card__excerpt {
  font-size: clamp(17px, 0.9vw + 14px, 18px);
  color: #555;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 14px;
}
.acc-actu-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 0.5px solid #E2E8DA;
}
.acc-actu-card__date {
  font-size: clamp(17px, 0.8vw + 14px, 18px);
  color: #666;
}
.acc-actu-card__lire {
  font-size: clamp(17px, 0.9vw + 14px, 18px);
  font-weight: 600;
  color: var(--g);
  text-decoration: none;
}
.acc-actu-card__lire:hover { text-decoration: underline; }

/* ── Présentation du club ── */
.acc-club__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.acc-club__text h2 { margin-bottom: 20px; }
.acc-club__text p {
  font-size: clamp(17px, 1vw + 14px, 19px);
  color: #444;
  line-height: 1.75;
  margin-bottom: 16px;
}
.acc-club__equipes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.acc-equipe-card {
  background: var(--gp);
  border: 0.5px solid #C0DD97;
  border-radius: 8px;
  padding: 14px 16px;
  border-left: 3px solid var(--g);
}
.acc-equipe-card__label {
  font-size: clamp(17px, 1vw + 14px, 18px);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--g);
  margin-bottom: 2px;
}
.acc-equipe-card__age {
  font-size: clamp(17px, 0.8vw + 14px, 18px);
  color: #2A5C1E;
}

/* ── Valeurs ── */
.acc-valeurs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0 28px;
}
.acc-valeur {
  background: var(--color-background-primary, #fff);
  border: 0.5px solid #DDE8D5;
  border-radius: 10px;
  padding: 22px 18px;
  border-top: 3px solid var(--g);
  text-align: center;
}
.acc-valeur__mot {
  font-size: clamp(18px, 1.2vw + 14px, 22px);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--g);
  margin-bottom: 8px;
}
.acc-valeur__texte {
  font-size: clamp(17px, 0.9vw + 14px, 18px);
  color: #555;
  line-height: 1.55;
}
.acc-valeurs__liens { text-align: center; }

/* ── Esprit club (photos d'ambiance) ── */
.acc-esprit__intro {
  font-size: clamp(17px, 1vw + 14px, 19px);
  color: #444;
  line-height: 1.7;
  max-width: 560px;
  margin: -8px 0 28px;
}
.acc-esprit__strip {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
}
.acc-esprit__strip img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
@media (max-width: 960px) {
  .acc-esprit__strip { grid-template-columns: 1fr 1fr; }
  .acc-esprit__strip img:first-child { grid-column: 1 / -1; height: 260px; }
}
@media (max-width: 640px) {
  .acc-esprit__strip { grid-template-columns: 1fr; }
  .acc-esprit__strip img { height: 220px; }
  .acc-esprit__strip img:first-child { grid-column: auto; }
}

/* ── Réseaux sociaux (page d'accueil) ── */
.archive-social {
  background: var(--color-background-secondary, #F6F7F2);
  padding: clamp(48px, 5vw, 72px) var(--fclb-gutter, clamp(20px, 5vw, 80px));
}
.archive-social__inner {
  max-width: 1280px;
  margin: 0 auto;
}
.archive-social__header {
  margin-bottom: 28px;
}
.archive-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(17px, 0.9vw + 14px, 18px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fclb-green-dark, #2A5C1E);
  margin-bottom: 6px;
}
.archive-social__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: start;
}
.archive-social__block {
  background: #fff;
  border: 0.5px solid #DDE8D5;
  border-radius: 12px;
  padding: 20px;
}
.archive-social__block--links {
  display: flex;
  flex-direction: column;
}
.archive-social__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(17px, 0.9vw + 14px, 18px);
  color: #1A1A1A;
  margin-bottom: 12px;
}
.archive-social__cta {
  display: inline-block;
  align-self: flex-start;
  background: var(--fclb-green-dark, #2A5C1E);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(17px, 0.9vw + 14px, 18px);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
}
.archive-social__cta:hover { background: #1B3D12; color: #fff; }
.archive-social__note {
  font-size: clamp(17px, 0.9vw + 14px, 18px);
  color: #555;
  line-height: 1.65;
  margin-top: 20px;
  margin-bottom: 0;
}
@media (max-width: 820px) {
  .archive-social__grid { grid-template-columns: 1fr; }
}

/* ── Décathlon — carte club & boutique ── */
.acc-decathlon {
  background: var(--gp);
  padding: clamp(40px, 4.5vw, 60px) var(--fclb-gutter, clamp(20px, 5vw, 80px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.acc-decathlon--boutique {
  background: var(--color-background-primary, #fff);
}
.acc-decathlon__logo {
  height: 44px;
  width: auto;
  margin-bottom: 14px;
  display: block;
}
.acc-decathlon__text {
  max-width: 620px;
}
.acc-decathlon__text h2 { margin-bottom: 12px; }
.acc-decathlon__text p {
  font-size: clamp(17px, 1vw + 14px, 19px);
  color: #444;
  line-height: 1.7;
  margin-bottom: 10px;
}
.acc-decathlon__carte-line {
  font-size: clamp(17px, 0.95vw + 14px, 18px);
  color: var(--night);
  margin-bottom: 0;
}
.acc-decathlon__carte-line strong {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #7A5A00;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.acc-decathlon__btn {
  display: inline-block;
  background: var(--g);
  color: #fff;
  font-size: clamp(17px, 1vw + 14px, 18px);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
.acc-decathlon__btn:hover { background: #1B3D12; }

/* ── CTA inscription ── */
.acc-cta {
  background: var(--night);
  padding: clamp(36px, 4vw, 52px) var(--fclb-gutter, clamp(20px, 5vw, 80px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.acc-cta__titre {
  font-size: clamp(20px, 2vw + 14px, 28px);
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.acc-cta__sous {
  font-size: clamp(17px, 1vw + 14px, 18px);
  color: rgba(255, 255, 255, 0.5);
}
.acc-cta__btn {
  background: var(--gl);
  color: var(--night);
  font-size: clamp(17px, 1vw + 14px, 18px);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.acc-cta__btn:hover { opacity: 0.85; }

/* ── Responsive ── */
@media (max-width: 960px) {
  /* Mobile : le texte occupe toute la largeur, le voile vert doit donc être uniforme
     (le dégradé horizontal laissait la photo trop claire à droite → contraste insuffisant). */
  .acc-hero::before {
    background: linear-gradient(180deg, rgba(20, 46, 13, 0.84) 0%, rgba(20, 46, 13, 0.78) 100%);
  }
  .acc-hero__inner    { grid-template-columns: 1fr; }
  .acc-hero__right    { display: none; }
  .acc-hero::after    { display: none; }
  .acc-stats          { gap: 24px; }
  .acc-actus__grid    { grid-template-columns: 1fr 1fr; }
  .acc-club__inner    { grid-template-columns: 1fr; }
  .acc-valeurs__grid  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .acc-actus__grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 14px !important;
    padding-bottom: 12px !important;
    scrollbar-width: none;
  }
  .acc-actus__grid::-webkit-scrollbar { display: none; }
  .acc-actu-card {
    flex: 0 0 78vw !important;
    scroll-snap-align: start !important;
    max-width: 300px !important;
  }
  .acc-valeurs__grid  { grid-template-columns: 1fr 1fr; }
  .acc-club__equipes  { grid-template-columns: 1fr 1fr; }
  .acc-cta            { flex-direction: column; align-items: flex-start; }
  .acc-decathlon      { flex-direction: column; align-items: flex-start; }
  .acc-stats          { gap: 20px; }

  /* Carte match mobile */
  .acc-match {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .acc-match__right {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border-top: 0.5px solid #EEF3EA;
    padding-top: 12px;
  }
  .acc-match__info   { text-align: left; }
  .acc-match__date   { white-space: normal; }
  .acc-match__lieu   { white-space: normal; }
}

/* ── Widget Score'n'co home ── */
.acc-matchs__widget {
  border-radius: 10px;
  overflow: hidden;
  border: 0.5px solid #DDE8D5;
}
.acc-matchs__widget iframe {
  display: block;
  width: 100%;
  height: 500px;
  border: none;
}
@media (max-width: 640px) {
  .acc-matchs__widget iframe { height: 600px; }
}

/* ── Niveaux hero ── */
.acc-hero__niveaux {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.acc-hero__niveau {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border: 0.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: clamp(17px, 0.75vw + 14px, 18px);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.acc-hero__niveau--green {
  background: rgba(159,223,106,0.15);
  border-color: rgba(159,223,106,0.35);
  color: #9FDF6A;
}