/* =============================================================================
   CLUB 100 — Design system (direction « Or structurant »)
   Porté depuis oldsite/app/globals.css. Source de vérité des couleurs : toute
   dérive crée une fausse référence. Réutilisé par le site public ET le
   backoffice (admin/css/theme-club100.css en est une copie synchronisée).
   ============================================================================= */

:root {
  /* ---- Charte « Or structurant » ---- */
  --c100-blue: #0f1012;        /* primaire = Noir Encre */
  --c100-blue-dark: #1b1c1f;   /* hover = Anthracite */
  --c100-blue-light: #f7f7f8;  /* puce / badge (gris neutre) */
  --c100-anthracite: #0f1012;  /* ink (titres, barre) */
  --c100-gold: #c5a059;        /* Or Champagne Mat — filets et aplats */
  --c100-gold-ink: #8a6a2c;    /* l'or en TEXTE sur fond clair */
  --c100-grey-dark: #2b2c30;   /* texte fort */
  --c100-grey-med: #6b6c72;    /* texte secondaire */
  --c100-grey-light: #eeeef0;  /* surface secondaire */
  --c100-red: #a83b32;
  --c100-green: #2f7d5f;

  /* Teintes utilitaires */
  --c100-cream: #ffffff;       /* fond principal — blanc */
  --c100-surface: #f7f7f8;     /* fond de zone, gris très clair */
  --c100-line: #e3e3e6;        /* filets / bordures */

  /* Jumeaux « club-* » de la page publique (mêmes valeurs) */
  --club-navy: #0f1012;
  --club-slate: #2b2c30;
  --club-gold: #c5a059;
  --club-gold-deep: #8a6a2c;
  --club-bg: #ffffff;
  --club-surface: #f7f7f8;
  --club-border: #e3e3e6;
  --club-grey: #6b6c72;
  --club-white: #ffffff;

  --radius: 0.75rem;
  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--c100-grey-dark);
  background: var(--c100-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv01", "cv03", "ss01";
  line-height: 1.5;
  /* Garde-fou responsive : jamais de débordement horizontal (320px → grand écran). */
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}
/* Les médias restent dans leur conteneur quel que soit le viewport. */
img, svg, video, canvas, iframe { max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c100-anthracite);
  margin: 0;
}
a { color: inherit; }
img { max-width: 100%; }

/* ---- Utilitaires charte ---- */
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.font-display { font-family: var(--font-sans); letter-spacing: -0.01em; }

/* Sur-titre éditorial : petit, capitales, espacé. Or LISIBLE sur fond clair. */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c100-gold-ink);
}
/* Même sur-titre posé sur fond NOIR : l'or champagne y est lisible. */
.eyebrow-sur-noir { color: var(--c100-gold); }

.section-no {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--c100-gold-ink);
}

/* Filets FRANCS (jamais de dégradé : il virerait au crème écarté par le client). */
.hairline-gold { height: 2px; background: var(--c100-gold); }
.club-goldline { width: 72px; height: 2px; background: var(--club-gold); }
.club-goldline-left { width: 60px; height: 2px; background: var(--club-gold); }
.filet-page { height: 3px; background: var(--c100-gold); }

/* Titre de bloc souligné d'un filet or court. */
.titre-bloc { position: relative; padding-bottom: 0.5rem; }
.titre-bloc::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 2rem; height: 2px; background: var(--c100-gold);
}

.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ---- Boutons ---- */
.club-btn-primary,
.club-btn-secondary,
.club-btn-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 15px 28px;
  font-weight: 600;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}
.club-btn-primary {
  background: var(--club-gold);
  color: var(--club-navy);
  border: 0;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 28px rgba(15, 16, 18, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.club-btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(0.92);
  box-shadow: 0 16px 36px rgba(15, 16, 18, 0.24);
  color: var(--club-navy);
}
.club-btn-secondary {
  background: var(--club-white);
  color: var(--club-navy);
  border: 1px solid var(--club-border);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.club-btn-secondary:hover {
  border-color: var(--club-gold);
  background: var(--club-surface);
  color: var(--club-navy);
}
.club-btn-light {
  background: rgba(255, 255, 255, 0.06);
  color: var(--club-white);
  border: 1px solid rgba(197, 160, 89, 0.6);
  transition: background 0.2s ease;
}
.club-btn-light:hover { background: rgba(197, 160, 89, 0.16); color: var(--club-white); }

/* ---- Cartes ---- */
.club-card {
  background: var(--club-white);
  border: 1px solid var(--club-border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.club-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.1);
  border-color: var(--club-gold);
}
.card-premium {
  background: #fff;
  border: 1px solid var(--c100-line);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(31, 41, 55, 0.04), 0 8px 24px -16px rgba(31, 41, 55, 0.12);
}
/* Carte COIFFÉE d'un filet or : réservée à ce qui appelle une décision. */
.card-coiffe {
  background: #fff;
  border: 1px solid var(--c100-line);
  border-top: 2px solid var(--c100-gold);
  border-radius: 0 0 0.75rem 0.75rem;
  box-shadow: 0 1px 2px rgba(31, 41, 55, 0.04), 0 8px 24px -16px rgba(31, 41, 55, 0.12);
}

/* ---- Champs obligatoires manquants / refusés (standard 12/10/2026) ---- */
:is(input, select, textarea):is([aria-invalid="true"], [data-manquant="true"]) {
  border-color: var(--c100-red);
  background-color: color-mix(in srgb, var(--c100-red) 4%, transparent);
}
:is(input:not([type="checkbox"], [type="radio"]), select, textarea):is([aria-invalid="true"], [data-manquant="true"]):not(:focus-visible) {
  box-shadow: 0 0 0 1px var(--c100-red);
}

/* ---- Cibles tactiles (≥ 44px) sur mobile (critère d'acceptation responsive) ---- */
@media (max-width: 767.98px) {
  .club-btn-primary,
  .club-btn-secondary,
  .club-btn-light {
    min-height: 44px;
    padding: 13px 24px;
  }
  /* Action primaire étirée sur mobile : pleine largeur, centrée. */
  .club-btn-primary { width: 100%; justify-content: center; }
}
