/*
 * aappma-global.css
 * Tokens, typographie et composants réutilisables — AAPPMA Le Gardon Queyracais
 * Chargé sur toutes les pages via functions.php (gardon_enqueue)
 * Ne pas modifier les tokens ici sans mettre à jour les templates de page.
 */

/* ══════════════════════════════════════════
   TOKENS DESIGN
══════════════════════════════════════════ */
:root {
  /* Couleurs */
  --cream:  #f5f0e8;
  --green:  #1b3d28;
  --green2: #254d34;
  --gold:   #c8952a;
  --gold2:  #e0a830;
  --gold3:  #f0c060;
  --nuit:   #060e0a;
  --nuit2:  #0d1e14;

  /* Typographie */
  --ff-s:   'Playfair Display', Georgia, serif;
  --ff-ss:  'DM Sans', system-ui, sans-serif;

  /* Easing */
  --ease:   cubic-bezier(.77, 0, .175, 1);
}

/* ══════════════════════════════════════════
   TYPOGRAPHIE GLOBALE
══════════════════════════════════════════ */
body {
  font-family: var(--ff-ss);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-s);
  line-height: 1.15;
}

/* ══════════════════════════════════════════
   COMPOSANTS PARTAGÉS
══════════════════════════════════════════ */

/* — Conteneur centré — */
.ac-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* — Eyebrow (étiquette de section) — */
.ac-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.ac-eyebrow-line {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: .2;
  max-width: 52px;
}
.ac-eyebrow-text {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .65;
}

/* — Boutons — */
.ac-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: var(--ff-ss);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: all .25s;
  border: none;
  text-decoration: none;
  cursor: pointer;
}
.ac-btn-gold {
  background: var(--gold);
  color: #fff;
}
.ac-btn-gold:hover {
  background: var(--gold2);
  box-shadow: 0 10px 30px rgba(200, 149, 42, .4);
  transform: translateY(-2px);
}
.ac-btn-ghost {
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .8);
  border: 1px solid rgba(255, 255, 255, .15);
  backdrop-filter: blur(12px);
}
.ac-btn-ghost:hover {
  background: rgba(255, 255, 255, .14);
  transform: translateY(-2px);
}
.ac-btn-green {
  background: var(--green);
  color: #fff;
}
.ac-btn-green:hover {
  background: var(--green2);
  box-shadow: 0 10px 30px rgba(27, 61, 40, .4);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes acFadeIn { to { opacity: 1; } }
@keyframes acPulse  { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }

@keyframes acShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes acCountUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* Clip-path reveal (gauche → droite) */
.ac-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path .9s var(--ease);
}
.ac-reveal.vis { clip-path: inset(0 0% 0 0); }

/* Fade + montée au scroll */
.ac-fade {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s ease, transform .8s ease;
}
.ac-fade.vis { opacity: 1; transform: none; }
.ac-fade-d1 { transition-delay: .12s; }
.ac-fade-d2 { transition-delay: .24s; }
.ac-fade-d3 { transition-delay: .36s; }
.ac-fade-d4 { transition-delay: .48s; }
.ac-fade-d5 { transition-delay: .60s; }

/* Slide depuis la gauche */
.ac-slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .8s ease, transform .8s ease;
}
.ac-slide-left.vis { opacity: 1; transform: none; }

/* Shimmer sur texte doré */
.ac-shimmer {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold3) 40%, var(--gold) 60%, var(--gold2) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: acShimmer 4s linear infinite;
}

/* ══════════════════════════════════════════
   ÉLÉMENTS THÈME WORDPRESS
   Masquer titres/breadcrumbs auto-injectés
   sur les pages templates personnalisées
══════════════════════════════════════════ */
body.page-template-page-accueil-new .ct-page-title-row,
body.page-template-page-accueil-new .page-header-default,
body.page-template-page-accueil-new .page-header,
body.page-template-page-accueil-new .entry-header,
body.page-template-page-accueil-new .wp-block-post-title,
body.page-template-page-accueil-new .ast-breadcrumbs-wrapper,
body.page-template-page-accueil-new .ast-breadcrumbs,
body.page-template-page-accueil-new .breadcrumb-trail,
body.page-template-page-accueil-new .breadcrumbs,
body.page-template-page-accueil-new .ast-above-header-wrap { display: none !important; }

/* ══════════════════════════════════════════
   UTILITAIRES COULEUR
══════════════════════════════════════════ */
.text-gold   { color: var(--gold); }
.text-green  { color: var(--green); }
.text-cream  { color: var(--cream); }
.bg-nuit     { background: var(--nuit); }
.bg-green    { background: var(--green); }
.bg-cream    { background: var(--cream); }

/* ══════════════════════════════════════════
   CARTE GÉNÉRIQUE (réutilisable)
══════════════════════════════════════════ */
.ac-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.ac-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}

/* ══════════════════════════════════════════
   SECTION HEADER PARTAGÉ (toutes les pages)
══════════════════════════════════════════ */
.ac-section-header {
  text-align: center;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.ac-section-title {
  font-family: var(--ff-s);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}
.ac-section-sub {
  font-family: var(--ff-ss);
  font-size: 1rem;
  line-height: 1.65;
  opacity: .7;
  max-width: 560px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════
   RESPONSIVE — garder cohérence mobile
══════════════════════════════════════════ */
@media (max-width: 600px) {
  .ac-btn {
	padding: 14px 24px;
	font-size: .75rem;
  }
}