/* ------------------------------------------------------------------
   Charte « v2 » : titres en Barlow Condensed italique, textes en
   Hanken Grotesk, angles arrondis, plus de filet coloré en haut des
   cartes, plus de vert. Chargée après les autres feuilles : elle
   l'emporte sur les styles écrits dans chaque page.
   ------------------------------------------------------------------ */

:root {
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-ui: 'Hanken Grotesk', system-ui, sans-serif;
  --radius-card: 14px;
  --radius-btn: 10px;
}

/* Textes */
html body, html body * {
  font-family: 'Hanken Grotesk', system-ui, sans-serif !important;
}
/* Titres : tout ce qui est en gras oblique (la signature de la charte) */
html body h1, html body h2, html body h3,
html body [style*="font-style: italic"],
html body [style*="font-style:italic"],
html body [class*="titre"] {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif !important;
  font-style: italic;
}
html body h1, html body h2 { letter-spacing: -0.005em !important; }

/* Pas de filet coloré en haut des cartes */
html body [style*="border-top: 3px solid"],
html body [style*="border-top:3px solid"],
html body [style*="border-top: 2px solid rgb"],
html body [style*="border-top: 2px solid #"] {
  border-top: 0 !important;
}

/* Angles arrondis */
html body [style*="border: 1px solid rgba(159"],
html body [style*="border:1px solid rgba(159"],
html body [style*="border: 1px solid rgb(45"],
html body [style*="border: 1px solid rgba(255, 255, 255"] {
  border-radius: var(--radius-card) !important;
}
html body :not(section):not(header):not(footer):not(main):not(body)[style*="background: rgb(9, 35, 22)"],
html body :not(section):not(header):not(footer):not(main)[style*="background: rgb(8, 33, 20)"],
html body :not(section):not(header):not(footer):not(main)[style*="background: rgb(11, 47, 29)"],
html body [data-cms-item][style*="overflow: hidden"],
html body a[style*="aspect-ratio"] {
  border-radius: var(--radius-card) !important;
}
html body input, html body select, html body textarea { border-radius: var(--radius-btn) !important; }
html body img[style*="object-fit: cover"] { border-radius: inherit; }

/* Longues listes : les cartes au-delà des premières restent cachées jusqu au clic sur « voir plus ». */
[data-vp-cache] { display: none !important; }

/* ------------------------------------------------------------------
   Boutons : une seule forme (rectangle arrondi, sans obliques)
   ------------------------------------------------------------------ */
html body [style*="skewX(-14deg)"],
html body [style*="skewX(14deg)"],
html body [style*="skewX(-24deg)"] {
  transform: none !important;
}
html body a[style*="skewX(-14deg)"],
html body button[style*="skewX(-14deg)"],
html body div[style*="skewX(-14deg)"],
html body span[style*="skewX(-14deg)"] {
  border-radius: 10px !important;
}
/* Boutons d'action : même gabarit partout */
html body a[style*="skewX(-14deg)"][style*="font-weight: 700"],
html body button[style*="skewX(-14deg)"][style*="font-weight: 700"]:not([data-filter-value]):not([data-tab-value]) {
  padding: 14px 24px !important;
  font-size: 13px !important;
  letter-spacing: .12em !important;
  line-height: 1.1 !important;
}
/* Puces de filtre et onglets : plus petites, toutes pareilles */
html body button[data-filter-value][style*="skewX"],
html body button[data-tab-value][style*="skewX"] {
  padding: 10px 18px !important;
  font-size: 12px !important;
  letter-spacing: .12em !important;
  border-radius: 999px !important;
}
html body [data-tab-group] { border-radius: 999px !important; overflow: hidden; }
/* Boutons pleins bleus (actions) : le rouge de la charte */
html body a[style*="skewX(-14deg)"][style*="background: rgb(30, 168, 90)"],
html body button[style*="skewX(-14deg)"][style*="background: rgb(30, 168, 90)"]:not([data-filter-value]):not([data-tab-value]) {
  background: rgb(228, 20, 27) !important;
  border-color: rgb(228, 20, 27) !important;
  color: #ffffff !important;
}

/* Titres de page plus grands, comme sur l'accueil */
html body main h1, html body > div > h1, html body section h1:not(.tf-titre):not(.v2-hero-h1) {
  font-size: clamp(54px, 8.4vw, 124px) !important;
  line-height: .88 !important;
}
/* Tous les boutons : même forme */
html body button:not([data-filter-value]):not([data-tab-value]):not([data-slide]):not(summary),
html body a[data-form-submit] {
  border-radius: 10px !important;
}
html body button[style*="background: rgb(30, 168, 90)"]:not([data-filter-value]):not([data-tab-value]) {
  background: rgb(228, 20, 27) !important;
  border-color: rgb(228, 20, 27) !important;
}
html body button[data-form-submit] { padding: 16px 24px !important; letter-spacing: .12em !important; }

/* Dans un titre, tout ce qui est en ligne (mot en bleu, etc.) garde la police du titre */
html body h1 *, html body h2 *, html body h3 * {
  font-family: inherit !important;
  font-style: inherit;
}

/* Bandeaux de chiffres (cases séparées par un filet de 1 px) : le cadre est arrondi, les cases intérieures restent droites */
html body [style*="gap: 1px"] { border-radius: var(--radius-card); overflow: hidden; }
html body [style*="gap: 1px"] > :not(#x):not(#y):not(#z) { border-radius: 0 !important; }

/* Lignes et cases avec un filet de couleur à gauche : le filet suivait mal l'arrondi, on le retire */
html body [style*="border-left: 3px solid"],
html body [style*="border-left:3px solid"] {
  border-left: 0 !important;
}

/* Les fonds clairs recouvrent la lueur fixe du site */
.v2-fond-clair { position: relative; z-index: 1; }

/* Liens (réseaux, site web) et blocs facultatifs des fiches pilotes et teams */
.v2-liens:not(:has(a)) { display: none; }
.v2-team-plus:not(:has(.v2-ambitions, .v2-sponsors, .v2-lien)) { display: none; }
.v2-lien { display: inline-block; border: 1px solid rgba(168, 189, 179, .4); border-radius: 999px; padding: 9px 16px; color: #ecefee; font-weight: 700; font-size: 12px; letter-spacing: .12em; transition: .2s; }
.v2-lien:hover { background: #e4141b; border-color: #e4141b; color: #ffffff; }

.v2-staff-vide, .v2-staff-carte img { border-radius: 50% !important; }
.v2-staff-carte { border-radius: 16px !important; }
