/*
 * Centurions — compléments à maquette.css (feuille compilée de la maquette, à ne pas modifier) :
 * polices auto-hébergées, valeurs de la maquette absentes de la feuille publiée, panneaux, WordPress.
 */

/* ---------------------------------------------------------------- Polices */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url(../fonts/open-sans-latin.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/poppins-300-latin.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400-latin.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-500-latin.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600-latin.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-700-latin.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/poppins-800-latin.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 900; font-display: swap; src: url(../fonts/poppins-900-latin.woff2) format("woff2"); }

body { font-family: var(--font-body); color: var(--foreground); background: var(--background); }
h1, h2, h3 { font-family: var(--font-display); }

/* Un élément masqué par [hidden] le reste, même si une classe de la maquette pose display:flex. */
[hidden] { display: none !important; }

.nv-evitement { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--primary); color: var(--primary-foreground); padding: .5rem 1rem; }
.nv-evitement:focus { left: 1rem; top: 1rem; }

/* ---------------------------------------------------------------- En-tête (hauteur et logo réduits au défilement) */
.nv-entete { height: 4rem; }
.nv-logo { height: 64px; } /* mobile : +10 % (58 → 64 px), demande du client du 7 novembre */
.nv-burger { width: 1.65rem; height: 1.65rem; } /* picto du menu mobile : +10 % (24 → 26,4 px), demande du client du 7 novembre */
.est-defile .nv-entete { height: 3.5rem; }
.est-defile .nv-logo { height: 53px; }
@media (min-width: 1024px) {
  .nv-entete { height: 5rem; }
  .nv-logo { height: 62px; }
  .est-defile .nv-entete { height: 4rem; }
  .est-defile .nv-logo { height: 53px; }
}
.tracking-\[0\.2em\] { letter-spacing: .2em; }
.tracking-\[0\.15em\] { letter-spacing: .15em; }
.admin-bar [data-entete] { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar [data-entete] { top: 0; } }

/* ---------------------------------------------------------------- Menu mobile plein écran */
.nv-menu-mobile { animation: nv-apparition .2s ease-out; }
.nv-menu-mobile [aria-expanded="true"] { color: var(--primary); }
.nv-menu-mobile [aria-expanded="true"] svg { transform: rotate(180deg); }
@keyframes nv-apparition { from { opacity: 0; } to { opacity: 1; } }
body.menu-ouvert { overflow: hidden; }

/* ---------------------------------------------------------------- Barre mobile Boutique / Billetterie */
.nv-barre-mobile { padding-bottom: max(.5rem, env(safe-area-inset-bottom)); }
@media (max-width: 1023px) {
  body.avec-barre-mobile { padding-bottom: calc(4rem + env(safe-area-inset-bottom)); }
}

/* ---------------------------------------------------------------- Pied de page */
@media (min-width: 768px) {
  .nv-pied-grille { grid-template-columns: 1.3fr 1fr 1fr 1.4fr; }
}
/* Sous 768 px, tout est centré (règle de l'agence). */
@media (max-width: 767px) {
  .nv-pied-grille nav, .nv-pied-grille > div { text-align: center; }
  .nv-pied-grille a.flex { justify-content: center; }
  .nv-pied-grille .grid { text-align: left; }
}

/* ---------------------------------------------------------------- Contenu éditorial (pages sans gabarit) */
.nv-prose { max-width: 72ch; line-height: 1.7; color: var(--foreground); }
.nv-prose > * + * { margin-top: 1em; }
.nv-prose h2 { font-size: 1.5rem; font-weight: 800; text-transform: uppercase; margin-top: 2em; }
.nv-prose h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.5em; }
.nv-prose a { color: var(--primary); text-decoration: underline; }
.nv-prose ul { list-style: disc; padding-left: 1.25rem; }
.nv-prose ol { list-style: decimal; padding-left: 1.25rem; }

/* ---------------------------------------------------------------- Carrousels (Swiper) */
/* Hauteur libre : swiper-bundle.css pose height:100% sur les diapositives. */
.nv-rail .swiper-slide { height: auto; }
.nv-rail.swiper { overflow: hidden; }
.nv-rail-bloque { visibility: hidden; }
.nv-fleches .swiper-button-disabled { opacity: .3; pointer-events: none; }
/* Grille de 4 dès 1024 px (CardRail) : Swiper détruit, la piste redevient une grille. */
@media (min-width: 1024px) {
  .nv-rail-grille.swiper { overflow: visible; }
  .nv-rail-grille > .swiper-wrapper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; transform: none !important; }
  .nv-grille-2 > .swiper-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nv-grille-3 > .swiper-wrapper { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nv-grille-5 > .swiper-wrapper { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .nv-rail-grille > .swiper-wrapper > .swiper-slide { width: auto; }
}
/* Sous 1024 px, les fiches de la frise gardent la place de leur ombre au survol. */

/* ---------------------------------------------------------------- Accueil */
.nv-hero-texte p + p { margin-top: .5rem; }
.nv-video { margin: auto; width: min(56rem, calc(100vw - 2rem)); max-width: none; padding: .75rem; border: 1px solid color-mix(in oklab, var(--ink-foreground) 10%, transparent); border-radius: .75rem; background: var(--ink); color: var(--ink-foreground); }
.nv-video::backdrop { background: rgb(0 0 0 / .8); }
.nv-video__fermer { opacity: .7; transition: opacity .2s; }
.nv-video__fermer:hover { opacity: 1; }
@media (min-width: 640px) { .nv-video { padding: 1rem; } }

/* ---------------------------------------------------------------- Sous 768 px, tout est centré (règle de l'agence) */
@media (max-width: 767px) {
  .nv-c { text-align: center; }
  .nv-c.flex, .nv-c .flex { justify-content: center; }
  .nv-c.flex-col { align-items: center; }
  .nv-c .max-w-sm, .nv-c.max-w-xl { margin-left: auto; margin-right: auto; }
  .nv-titre-section { flex-direction: column; align-items: center; text-align: center; }
  .nv-titre-section > .min-w-0 { flex: none; }
  .nv-titre-section .ml-auto { margin-left: 0; }
}

/* ---------------------------------------------------------------- Boutique */
/* Volet panier : glisse depuis la droite. */
.nv-volet[hidden] { display: none !important; }
.nv-volet__fond { animation: nv-apparition .3s ease-out; }
.nv-volet__panneau { animation: nv-volet .3s ease-out; }
@keyframes nv-volet { from { transform: translateX(100%); } to { transform: none; } }
body.panier-ouvert { overflow: hidden; }

/* Fiche produit : options et joueurs choisis (boutons radio stylés comme la maquette). */
.nv-option input:checked + span { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-pop); }
.nv-option input:focus-visible + span, .nv-joueur input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.nv-option input:disabled + span { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.nv-manque .nv-option span { border-color: color-mix(in oklab, var(--destructive) 50%, transparent); }
.nv-joueur input:checked + span { border-color: var(--primary); background: var(--accent); color: var(--accent-foreground); }
.nv-interrupteur[aria-checked="true"] { background: var(--primary); }
.nv-interrupteur[aria-checked="true"] span { left: 1.5rem; }
.nv-puces button { height: .5rem; width: .5rem; border-radius: 999px; background: color-mix(in oklab, var(--foreground) 30%, transparent); transition: all .2s; }
.nv-puces button.est-active { width: 1.25rem; background: var(--primary); }
.nv-description p + p { margin-top: 0; }
@media (max-width: 767px) {
  .nv-description.est-replie { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
body.single-product .nv-barre-mobile { display: none; }

/* Pages WooCommerce : champs, boutons, tableaux à la manière de la maquette. */
.nv-woo .woocommerce-notices-wrapper:not(:empty), .nv-woo .woocommerce-message, .nv-woo .woocommerce-info, .nv-woo .woocommerce-error {
  margin-top: 1.5rem; border-radius: .75rem; border: 1px solid var(--border); background: color-mix(in oklab, var(--muted) 50%, transparent); padding: .75rem 1rem; font-size: .875rem; list-style: none;
}
.nv-woo .woocommerce-error { border-color: color-mix(in oklab, var(--destructive) 40%, transparent); color: var(--destructive); }
.nv-woo .woocommerce-info a, .nv-woo .woocommerce-message a { font-weight: 600; color: var(--primary); }
/* Bouton dans un message (« Voir le panier ») : la règle des liens ci-dessus le rendait rose sur fond rose. */
.nv-woo .woocommerce-info a.button, .nv-woo .woocommerce-message a.button, .nv-woo .woocommerce-error a.button { color: var(--primary-foreground); }
.nv-woo h3, .nv-woo h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.25rem; margin-bottom: 1.25rem; }
.nv-woo .form-row { display: block; margin-bottom: 1rem; font-size: .875rem; }
.nv-woo .form-row label { display: block; margin-bottom: .375rem; font-weight: 600; }
.nv-woo .form-row .required { color: var(--primary); text-decoration: none; }
.nv-woo .form-row .optional { font-weight: 400; color: var(--muted-foreground); }
.nv-woo input.input-text, .nv-woo textarea, .nv-woo select, .nv-woo .select2-selection, .nv-champ {
  width: 100%; border-radius: .75rem; border: 1px solid var(--border); background: var(--card); padding: .75rem 1rem; font-size: .875rem; outline: none;
}
.nv-woo .select2-container .select2-selection--single { height: auto; }
.nv-woo input.input-text:focus, .nv-woo textarea:focus, .nv-woo select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 20%, transparent); }
.nv-woo input[type="checkbox"], .nv-woo input[type="radio"] { accent-color: var(--primary); width: 1rem; height: 1rem; vertical-align: -2px; margin-right: .5rem; }
@media (min-width: 640px) {
  .nv-woo .woocommerce-billing-fields__field-wrapper, .nv-woo .woocommerce-shipping-fields__field-wrapper, .nv-woo .woocommerce-address-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .nv-woo .form-row-wide, .nv-woo #billing_country_field, .nv-woo #shipping_country_field, .nv-woo #billing_address_1_field, .nv-woo #billing_address_2_field, .nv-woo #shipping_address_1_field, .nv-woo #shipping_address_2_field, .nv-woo #billing_company_field, .nv-woo #shipping_company_field { grid-column: 1 / -1; }
}
.nv-woo #ship-to-different-address { font-size: 1.125rem; }
.nv-woo #ship-to-different-address label { display: flex; align-items: center; gap: .75rem; cursor: pointer; }
.nv-woo .woocommerce-additional-fields { margin-top: 1.5rem; }
.nv-woo .woocommerce-additional-fields h3 { display: none; }
.nv-woo .button, .nv-woo button[type="submit"], .nv-woo .woocommerce-Button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px; background: var(--primary); color: var(--primary-foreground);
  padding: .75rem 1.5rem; font-weight: 700; text-transform: uppercase; transition: opacity .2s;
}
.nv-woo .button:hover, .nv-woo button[type="submit"]:hover { opacity: .9; }
.nv-woo #place_order { width: 100%; padding: 1rem; margin-top: 1rem; }

/* Récapitulatif de commande (tableau WooCommerce) présenté en liste. */
.nv-recap { width: 100%; font-size: .875rem; border-collapse: collapse; }
.nv-recap tbody tr { border-bottom: 1px solid var(--border); }
.nv-recap td, .nv-recap th { padding: .75rem 0; vertical-align: middle; text-align: left; font-weight: 400; }
.nv-recap td:last-child { text-align: right; white-space: nowrap; padding-left: .75rem; }
.nv-recap tfoot tr:first-child th, .nv-recap tfoot tr:first-child td { padding-top: 1rem; }
.nv-recap tfoot th, .nv-recap tfoot td { padding: .25rem 0; }
.nv-recap tfoot td { font-weight: 600; }
.nv-recap .order-total th, .nv-recap .order-total td { border-top: 1px solid var(--border); padding-top: .75rem; font-size: 1rem; font-weight: 700; }
.nv-recap .order-total small { display: block; font-size: .75rem; font-weight: 400; color: var(--muted-foreground); }
.nv-recap #shipping_method { list-style: none; text-align: left; }
.nv-recap #shipping_method li { margin: .25rem 0; display: flex; gap: .25rem; align-items: baseline; justify-content: flex-end; text-align: right; }
.nv-recap .woocommerce-shipping-destination, .nv-recap .woocommerce-shipping-calculator { display: none; }
.nv-woo .wc_payment_methods { list-style: none; display: grid; gap: .5rem; margin-top: 1rem; }
.nv-woo .wc_payment_method { border: 2px solid var(--border); border-radius: .75rem; padding: .75rem; font-size: .875rem; }
.nv-woo .wc_payment_method:has(input:checked) { border-color: var(--primary); background: color-mix(in oklab, var(--primary) 5%, transparent); }
.nv-woo .wc_payment_method label { font-weight: 600; cursor: pointer; }
.nv-woo .payment_box { margin-top: .375rem; padding-left: 1.5rem; font-size: .75rem; color: var(--muted-foreground); }
.nv-woo .woocommerce-terms-and-conditions-wrapper { margin-top: 1rem; font-size: .75rem; color: var(--muted-foreground); }
.nv-woo .woocommerce-terms-and-conditions-wrapper a { text-decoration: underline; }
.nv-woo .woocommerce-terms-and-conditions-checkbox-text { font-size: .875rem; color: var(--foreground); }
.nv-woo .woocommerce-form-coupon-toggle .woocommerce-info { margin-top: 0; }
.nv-woo form.checkout_coupon { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* Compte client. */
.nv-woo #customer_login { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 768px) { .nv-woo #customer_login { grid-template-columns: 1fr 1fr; } }
.nv-woo #customer_login .col-1, .nv-woo > .woocommerce > .woocommerce-form-login { border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 1.5rem; }
.nv-woo > .woocommerce > .woocommerce-form-login { max-width: 32rem; margin-top: 2rem; }
.nv-woo #customer_login .col-2 { border-radius: 1rem; background: var(--ink); color: var(--ink-foreground); padding: 1.5rem; }
.nv-woo #customer_login .col-2 input { color: var(--foreground); }
.nv-woo .lost_password a { color: var(--primary); font-size: .875rem; }
.nv-woo .woocommerce-orders-table, .nv-woo .woocommerce-table--order-details, .nv-woo .shop_table.order_details { width: 100%; font-size: .875rem; border: 1px solid var(--border); border-radius: 1rem; border-collapse: separate; border-spacing: 0; overflow: hidden; background: var(--card); }
.nv-woo .woocommerce-orders-table th, .nv-woo .woocommerce-orders-table td, .nv-woo .order_details th, .nv-woo .order_details td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.nv-woo .woocommerce-orders-table thead th { background: color-mix(in oklab, var(--muted) 60%, transparent); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.nv-woo .woocommerce-orders-table .button { padding: .375rem 1rem; font-size: .75rem; background: transparent; color: var(--foreground); border: 2px solid var(--foreground); }
.nv-woo .woocommerce-orders-table .button:hover { background: var(--foreground); color: var(--background); opacity: 1; }
.nv-woo .woocommerce-MyAccount-content > p { margin-bottom: 1rem; }
.nv-woo .woocommerce-MyAccount-content a { color: var(--primary); }
.nv-woo .woocommerce-Addresses { display: grid; gap: 1.25rem; }
@media (min-width: 1024px) { .nv-woo .woocommerce-Addresses { grid-template-columns: 1fr 1fr; } }
.nv-woo .woocommerce-Address { border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 1.25rem; }
.nv-woo fieldset { border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; margin: 1rem 0; }
.nv-woo fieldset legend { padding: 0 .5rem; font-weight: 600; }
.nv-woo .woocommerce-order-details, .nv-woo .woocommerce-customer-details { margin-top: 1.5rem; }
.nv-woo address { font-style: normal; line-height: 1.6; }
.nv-woo .woocommerce-order-overview { list-style: none; display: grid; gap: .5rem; font-size: .875rem; margin-bottom: 1.5rem; }
.nv-woo .woocommerce-order-overview strong { display: block; }
@media (min-width: 640px) { .nv-woo .woocommerce-order-overview { grid-template-columns: repeat(4, 1fr); } }
.nv-qte { -moz-appearance: textfield; }
.nv-qte::-webkit-inner-spin-button, .nv-qte::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.nv-recap td.product-name { width: 100%; }
@media (min-width: 640px) {
  .nv-woo #billing_postcode_field, .nv-woo #billing_city_field, .nv-woo #billing_phone_field, .nv-woo #billing_email_field,
  .nv-woo #shipping_postcode_field, .nv-woo #shipping_city_field { grid-column: auto; }
}
/* Récapitulatif : chaque ligne en flex (le libellé long de la livraison n'élargit plus la colonne des montants). */
.nv-recap, .nv-recap tbody, .nv-recap tfoot { display: block; }
.nv-recap tr { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.nv-recap td.product-name { flex: 1; min-width: 0; width: auto; }
.nv-recap tfoot tr { align-items: flex-start; }
/* Livraison : trois modes aux libellés longs (« Retrait à la Narbonne Arena, un soir de match ») → titre au-dessus,
   choix sur toute la largeur, libellés qui passent à la ligne au lieu de déborder du récapitulatif. */
.nv-recap tr.woocommerce-shipping-totals { flex-direction: column; align-items: stretch; gap: .375rem; }
.nv-recap tr.woocommerce-shipping-totals td { white-space: normal; padding-left: 0; text-align: left; font-weight: 400; }
.nv-recap #shipping_method li { justify-content: flex-start; text-align: left; align-items: flex-start; gap: .5rem; }
.nv-recap #shipping_method li input { margin-top: .2rem; flex-shrink: 0; }
.nv-recap #shipping_method li label { flex: 1; min-width: 0; }
.nv-recap #shipping_method .amount { font-weight: 600; }
.nv-woo #place_order::before {
  content: ""; width: 1rem; height: 1rem; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Fiche produit sous 768 px : informations centrées (règle de l'agence). */
@media (max-width: 767px) {
  .nv-c-produit > p, .nv-c-produit h1, .nv-c-produit legend, .nv-c-produit [data-description], .nv-c-produit [data-choix-manque] { text-align: center; }
  .nv-c-produit .items-baseline { justify-content: center; }
  .nv-c-produit > ul { align-items: center; }
  .nv-c-produit [data-lire-suite] { display: block; margin-inline: auto; }
  .nv-woo #customer_login, .nv-woo h2, .nv-woo h3 { text-align: center; }
}
/* Connexion seule (inscription fermée) : le titre WooCommerce rejoint la carte du formulaire. */
.nv-woo > .woocommerce > h2 { max-width: 32rem; margin: 2rem 0 0; padding: 1.5rem 1.5rem 0; border: 1px solid var(--border); border-bottom: 0; border-radius: 1rem 1rem 0 0; background: var(--card); }
.nv-woo > .woocommerce > h2 + .woocommerce-form-login { margin-top: 0; border-top: 0; border-radius: 0 0 1rem 1rem; }

/* Icônes posées au-dessus d'un texte (Infos pratiques) ; centrées sous 768 px. */
.nv-icone-bloc { display: block; }
@media (max-width: 767px) { .nv-c .nv-icone-bloc { margin-inline: auto; } }
/* Utilitaires absents de la feuille de la maquette (centrage sous 768 px, règle de l'agence). */
@media (max-width: 767px) {
  .max-md\:items-center { align-items: center; }
  .max-md\:justify-center { justify-content: center; }
  .max-md\:mx-auto { margin-left: auto; margin-right: auto; }
  .max-md\:text-center { text-align: center; }
}
@media (min-width: 768px) { .md\:h-\[420px\] { height: 420px; } }
.nv-avantage__texte p:first-child { margin-top: .25rem; }
.nv-note p + p { margin-top: .5rem; }
.nv-note p:nth-child(2) { color: var(--primary); }
.nv-note p:nth-child(n+3) { color: var(--muted-foreground); }
.nv-note p:last-child { font-size: .75rem; }
.nv-avantage__texte p + p { margin-top: .25rem; }
.nv-note p:nth-child(3) { margin-top: .25rem; }

/* ---------------------------------------------------------------- Article */
.nv-article a { font-weight: 600; color: var(--primary); text-decoration: underline; }
.nv-article h2 { margin-top: 2rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.nv-article h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.nv-article img { margin: 1.5rem 0; height: auto; max-width: 100%; border-radius: .75rem; }
.nv-article ul { list-style: disc; padding-left: 1.25rem; }
.nv-article li { margin-left: 0; }
.nv-article figure { margin: 1.5rem 0; }
.nv-article iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: .75rem; }
.nv-paragraphes p + p { margin-top: .75rem; }
.nv-moyen p + p { margin-top: .75rem; }
.nv-moyen strong { color: inherit; font-weight: 600; }
.nv-intro strong, .nv-texte strong { color: var(--foreground); }
.nv-silhouette { fill: color-mix(in oklab, var(--ink-foreground) 15%, transparent); }

/* Carrousels dont le titre est suivi de 24 px (mb-6 dans la maquette, au lieu de mb-5). */
.nv-rail-titre-6 > .nv-titre-section { margin-bottom: 1.5rem; }

/* Cartes plus larges en carrousel mobile (maquette du 7 novembre : 82 % sur téléphone, 46 % sur tablette ; logos 42 % / 28 %). */
.w-\[82\%\] { width: 82%; }
@media (min-width: 640px) { .sm\:w-\[46\%\] { width: 46%; } .sm\:w-\[28\%\] { width: 28%; } }

/* Effectif du Centre de formation : dès 1024 px, une diapositive = une colonne de deux cartes staff, deux colonnes visibles. */
.nv-staff-colonne { width: calc((100% - 1rem) / 2); }
@media (min-width: 1024px) { .lg\:w-\[220px\] { width: 220px; } .lg\:block { display: block; } }
/* Fonds de dotation, « Par chèque » : l'adresse (2e paragraphe) est en text-sm font-semibold text-foreground, interligne 20 px. */
.nv-moyen p + p { line-height: 1.25rem; }
.nv-moyen.text-muted-foreground p + p { color: var(--foreground); }

/* Boutique, sous 768 px : catégories sur une seule ligne qui défile (jusqu'aux bords de l'écran, fondu à droite
   pour signaler la suite), tri à part en dessous. Au-delà : chips et tri côte à côte, comme la maquette. */
@media (max-width: 767px) {
  .nv-filtres-zone { flex-direction: column; width: 100%; gap: .75rem; }
  /* La boutique a 20 px de marge (px-5) sous 768 px : la ligne s'étend jusqu'aux bords de l'écran. */
  .nv-filtres { position: relative; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; width: calc(100% + 2.5rem); margin: 0 -1.25rem;
    padding: 2px 1.25rem; scroll-snap-type: x proximity; scroll-padding-inline: 1.25rem; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent); }
  .nv-filtres::-webkit-scrollbar { display: none; }
  .nv-filtres > .nv-filtre { flex: none; scroll-snap-align: start; white-space: nowrap; }
  .nv-filtres.nv-fin { -webkit-mask-image: none; mask-image: none; }
}

/* Accueil sans carte « Prochain match » (masquée en fin de saison) : sur mobile et tablette, le bandeau garde une hauteur
   qui montre la photo, accroche calée en bas. Au-delà de 1024 px, la hauteur ne dépend pas de la carte. */
@media (max-width: 1023px) {
  .nv-hero-seul > .relative.grid { min-height: 26rem; align-content: end; padding-bottom: 2rem; }
}

/* ---------------------------------------------------------------- Rythme vertical des sections (tout le site)
   Demande du client du 7 novembre (écart voulu avec la maquette, qui empilait des marges de 0 à 160 px selon les pages).
   Deux mesures par largeur d'écran :
     --nv-s : demi-écart entre deux sections sur le même fond clair (l'écart visible vaut 2 × --nv-s) ;
     --nv-t : marge intérieure de part et d'autre d'un changement de fond (bloc noir, gris, filet, bandeau photo).
   Mobile 64 / 48 px · tablette 80 / 56 px · ordinateur 96 / 64 px.
   Le bandeau d'en-tête de chaque page (premier bloc) garde sa propre mise en page ; les pages WooCommerce (un seul bloc)
   ne sont pas concernées. Une section masquée dans l'administration ne laisse pas de trou : les règles suivent les voisines. */
main { --nv-s: 2rem; --nv-t: 3rem; }
@media (min-width: 768px) { main { --nv-s: 2.5rem; --nv-t: 3.5rem; } }
@media (min-width: 1024px) { main { --nv-s: 3rem; --nv-t: 4rem; } }

/* Sections « de couleur » : fond noir, gris, blanc carte, rose, ou filet en haut. */
main > :is(section, nav, div):not(:first-child) { padding-top: var(--nv-s); padding-bottom: var(--nv-s); }
main > section:not(:first-child):is(.bg-ink, .bg-card, .bg-primary, [class*="bg-muted"], .border-t, .border-y) { padding-top: var(--nv-t); padding-bottom: var(--nv-t); }
/* Section claire au contact d'un changement de fond (après le bandeau ou un bloc de couleur, avant un bloc de couleur). */
main > :first-child + :is(section, nav, div),
main > section:is(.bg-ink, .bg-card, .bg-primary, [class*="bg-muted"], .border-t, .border-y) + :is(section, nav, div):not(.bg-ink, .bg-card, .bg-primary, [class*="bg-muted"], .border-t, .border-y) { padding-top: var(--nv-t); }
main > :is(section, nav, div):not(:first-child):not(.bg-ink, .bg-card, .bg-primary, [class*="bg-muted"], .border-t, .border-y):has(+ section:is(.bg-ink, .bg-card, .bg-primary, [class*="bg-muted"], .border-t, .border-y)) { padding-bottom: var(--nv-t); }
/* La marge est portée par la section : celle des conteneurs internes et la marge basse du dernier élément sont retirées. */
main > :is(section, nav, div):not(:first-child) > :is([class*="max-w-"], .mx-auto):not([class*="rounded"]) { padding-top: 0; padding-bottom: 0; }
main > :is(section, nav, div):not(:first-child) > :last-child,
main > :is(section, nav, div):not(:first-child) > :last-child > :last-child { margin-bottom: 0; }
main > :is(section, nav, div):not(:first-child) > :first-child { margin-top: 0; }
/* Dernier bloc avant le pied de page (noir) et bas d'un article suivi d'un bloc de couleur : marge de changement de fond. */
main > :is(section, nav, div):not(:first-child):last-child { padding-bottom: var(--nv-t); }
main > article:has(+ section:is(.bg-ink, .bg-card, .bg-primary, [class*="bg-muted"], .border-t, .border-y)) { padding-bottom: var(--nv-t); }
main > article > :last-child { margin-bottom: 0; }
/* Deux sections grises qui se suivent (séparées par un filet) : écart de même fond, pas deux changements de fond. */
main > section[class*="bg-muted"]:has(+ section[class*="bg-muted"]) { padding-bottom: var(--nv-s); }
main > section[class*="bg-muted"] + section[class*="bg-muted"] { padding-top: var(--nv-s); }

/* ---------------------------------------------------------------- Formulaires (Gravity Forms, styles d'origine coupés)
   Champs de la maquette (abonnement, SEPA) : w-full rounded-lg border bg-muted/40 px-4 py-3 text-sm, focus rose ;
   grille 12 colonnes (largeurs réglées dans Gravity Forms : moitié, tiers…), intitulés masqués quand le champ a un texte d'exemple. */
.gform_wrapper .gform_validation_container, .gform_wrapper .gform_hidden, .gform_wrapper .gfield--visibility-hidden,
.gform_wrapper .gfield_visibility_hidden, .gform_wrapper .gform_heading:empty, .gform_wrapper .gfield--type-honeypot { display: none !important; }
.gform_wrapper .gform_fields { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.gform_wrapper .gfield { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 0; border: 0; }
@media (min-width: 640px) {
  .gform_wrapper .gfield--width-half { grid-column: span 6; }
  .gform_wrapper .gfield--width-third { grid-column: span 4; }
  .gform_wrapper .gfield--width-two-thirds { grid-column: span 8; }
  .gform_wrapper .gfield--width-quarter { grid-column: span 3; }
  .gform_wrapper .ginput_container--name { grid-template-columns: 1fr 1fr; }
}
.gform_wrapper .ginput_complex { display: grid; gap: 1rem; }
.gform_wrapper .gfield_label { display: block; margin-bottom: .375rem; font-size: .875rem; font-weight: 600; }
.gform_wrapper .gfield--type-name > .gfield_label, .gform_wrapper .gfield--type-consent > .gfield_label, .gform_wrapper .gfield--type-captcha > .gfield_label,
.gform_wrapper .gfield:has(input[placeholder], textarea[placeholder]) > .gfield_label,
.gform_wrapper .ginput_complex label, .gform_wrapper .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gform_wrapper :is(input[type=text], input[type=email], input[type=tel], input[type=number], input[type=url], select, textarea) {
  width: 100%; border: 1px solid var(--border); border-radius: .5rem; background: color-mix(in oklab, var(--muted) 40%, transparent);
  padding: .75rem 1rem; font-size: .875rem; line-height: 1.25rem; color: var(--foreground); outline: none; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.gform_wrapper textarea { min-height: 8rem; resize: vertical; }
.gform_wrapper :is(input, select, textarea):focus { border-color: var(--primary); background: var(--background); box-shadow: 0 0 0 2px color-mix(in oklab, var(--primary) 20%, transparent); }
.gform_wrapper ::placeholder { color: var(--muted-foreground); opacity: 1; }
.gform_wrapper .gfield_required { color: var(--primary); margin-left: .125rem; }
.gform_wrapper .gfield_required_text { display: none; }
/* Case RGPD et sa mention (cadenas) */
.gform_wrapper .ginput_container_consent { display: flex; align-items: flex-start; gap: .5rem; font-size: .875rem; }
.gform_wrapper .ginput_container_consent input { margin-top: .25rem; accent-color: var(--primary); flex: none; }
.gform_wrapper .gfield--type-consent .gfield_description { position: relative; margin-top: .75rem; padding-left: 1.375rem; font-size: .75rem; line-height: 1rem; color: var(--muted-foreground); }
.gform_wrapper .gfield--type-consent .gfield_description::before { content: ""; position: absolute; left: 0; top: .125rem; width: .875rem; height: .875rem; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat; }
.gform_wrapper .gfield--type-choice .gchoice, .gform_wrapper .gfield_radio .gchoice, .gform_wrapper .gfield_checkbox .gchoice { display: flex; align-items: center; gap: .5rem; font-size: .875rem; margin-top: .25rem; }
.gform_wrapper .gchoice input { accent-color: var(--primary); }
/* Bouton d'envoi : pleine largeur, rose, flèche (maquette « Être recontacté ») */
.gform_wrapper .gform_footer, .gform_wrapper .gform_page_footer { margin-top: 1rem; }
.gform_wrapper .gform_button { display: flex; width: 100%; height: 3rem; align-items: center; justify-content: center; gap: .5rem; border-radius: .375rem;
  background: var(--primary); color: var(--primary-foreground); font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; transition: filter .15s; cursor: pointer; }
.gform_wrapper .gform_button:hover { filter: brightness(1.1); }
.gform_wrapper .gform_button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.gform_wrapper .gform_ajax_spinner { margin: .75rem auto 0; display: block; width: 1.25rem; }
/* reCAPTCHA : sans clés (site de test), le champ est vide ; il ne doit pas laisser de ligne. */
.gform_wrapper .gfield--type-captcha:not(:has(iframe, .g-recaptcha, [data-sitekey]:not([data-sitekey='']))) { display: none; }
/* Erreurs et confirmation */
.gform_wrapper .gform_validation_errors { grid-column: 1 / -1; margin-bottom: 1rem; border-radius: .5rem; border: 1px solid var(--destructive); padding: .75rem 1rem; font-size: .875rem; color: var(--destructive); }
.gform_wrapper .gform_validation_errors h2 { font-size: .875rem; font-weight: 600; }
.gform_wrapper .gfield_error :is(input, select, textarea) { border-color: var(--destructive); }
.gform_wrapper .validation_message { margin-top: .25rem; font-size: .75rem; color: var(--destructive); }
.gform_confirmation_message { border-radius: .75rem; background: color-mix(in oklab, var(--primary) 10%, transparent); padding: 1rem 1.25rem; font-size: .875rem; font-weight: 600; color: var(--primary); }

/* Formulaires des pages Contact (maquette ContactPage) : intitulés visibles au-dessus des champs (text-xs gras capitales,
   70 % d'opacité), champs rounded-xl sur fond blanc, gouttière 20 px, bouton pilule « Envoyer » avec avion en papier,
   pleine largeur sur mobile. */
.nv-formulaire--contact .gform_fields { gap: 1.25rem; }
.nv-formulaire--contact .gfield:not(.gfield--type-name, .gfield--type-consent, .gfield--type-captcha) > .gfield_label,
.nv-formulaire--contact .ginput_complex label {
  position: static !important; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
  display: block; margin-bottom: .375rem; font-size: .75rem; line-height: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: color-mix(in oklab, var(--foreground) 70%, transparent); }
.nv-formulaire--contact .gfield_required { color: inherit; }
.nv-formulaire--contact .gfield--type-consent .gfield_required { margin-left: .25rem; }
.nv-formulaire--contact .gfield_contains_required .ginput_complex label::after { content: " *"; }
.nv-formulaire--contact .ginput_complex { gap: 1.25rem; }
.nv-formulaire--contact :is(input[type=text], input[type=email], input[type=tel], select, textarea) { border-radius: .75rem; background: var(--background); }
.nv-formulaire--contact textarea { min-height: 0; height: 9.125rem; } /* 6 lignes, comme la maquette (rows=6) */
/* Prénom / Nom : intitulé au-dessus du champ, quel que soit l'ordre produit par Gravity Forms. */
.nv-formulaire--contact .ginput_complex > span:has(> input + label) { display: flex; flex-direction: column-reverse; }
.nv-formulaire--contact .ginput_container_consent { gap: .75rem; }
.nv-formulaire--contact .ginput_container_consent input { width: 1rem; height: 1rem; }
.nv-formulaire--contact .ginput_container_consent a { font-weight: 600; color: var(--primary); text-decoration: underline; }
.nv-formulaire--contact .gfield--type-consent .gfield_description { padding-left: 0; color: color-mix(in oklab, var(--foreground) 60%, transparent); }
.nv-formulaire--contact .gfield--type-consent .gfield_description::before { display: none; }
.nv-formulaire--contact .gform_footer { margin-top: 1.5rem; }
.nv-formulaire--contact .gform_button { height: auto; border-radius: 9999px; padding: .875rem 2rem; font-weight: 700; letter-spacing: .05em; }
.nv-formulaire--contact .gform_button svg { display: none; }
.nv-formulaire--contact .gform_button::before { content: ""; width: 1rem; height: 1rem; background: currentColor; order: -1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z'/%3E%3Cpath d='m21.854 2.147-10.94 10.939'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z'/%3E%3Cpath d='m21.854 2.147-10.94 10.939'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (min-width: 640px) { .nv-formulaire--contact .gform_button { width: auto; } }

/* Pages légales (maquette LegalPage) : texte riche dans la carte, menu défilant sur mobile. */
.nv-legal a { color: var(--primary); text-decoration: underline; }
.nv-legal h2 { margin: 2rem 0 .75rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--foreground); }
.nv-legal h3 { margin: 1.75rem 0 .5rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--foreground); }
.nv-legal p, .nv-legal ul, .nv-legal ol { margin-bottom: 1rem; }
.nv-legal ul { list-style: disc; padding-left: 1.5rem; }
.nv-legal ol { list-style: decimal; padding-left: 1.5rem; }
.nv-legal li { margin-bottom: .25rem; }
.nv-legal strong { color: var(--foreground); }
.nv-legal > :first-child { margin-top: 0; }
/* .nv-legal table : voir « tableau des traitements » plus bas */
.nv-legal-menu { scrollbar-width: none; }
.nv-legal-menu::-webkit-scrollbar { display: none; }

/* Soirée de lancement : étapes numérotées automatiquement (les étapes masquées ne comptent pas), choix en grands boutons. */
.nv-soiree { counter-reset: etape; }
.nv-soiree .nv-etape { counter-increment: etape; }
.nv-soiree .nv-etape-n::before { content: counter(etape); }
.nv-soiree .nv-choix:has(input:checked) { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }
.nv-soiree .nv-choix:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.nv-piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Accueil, carrousel de la boutique : sous 640 px, cartes au gabarit des actus (74 % de l'écran, visuel portrait 4:5) pour
   mettre le produit en avant (écart voulu avec la maquette : 65 %, carré) ; carré dès 640 px comme la maquette. */
.nv-visuel-produit { aspect-ratio: 4 / 5; }
@media (min-width: 640px) { .nv-visuel-produit { aspect-ratio: 1 / 1; } }
/* Fiche produit, « Vous aimerez aussi » : même gabarit que l'accueil sous 640 px (74 %, visuel 4:5), maquette au-delà. */
.nv-slide-lie { width: 74%; }
@media (min-width: 640px) { .nv-slide-lie { width: 38%; } }
@media (min-width: 768px) { .nv-slide-lie { width: 14rem; } }
/* Boutique, « À la une » : sous 640 px, gabarit du carrousel de l'accueil (carte de même largeur, visuel 4:5, rail jusqu'aux
   bords de l'écran) ; 240 px et rail dans la grille dès 640 px, comme la maquette. */
.nv-slide-une { width: 15rem; }
@media (max-width: 639.98px) {
  .nv-rail-une { margin-inline: -1.25rem; padding-inline: 1.25rem; }
  .nv-slide-une { width: calc((100vw - 2rem) * 0.74); }
  /* mêmes finitions que la carte de l'accueil : arrondi 20 px, nom en gras, prix en semi-gras */
  .nv-slide-une a > div, .nv-slide-une a > div::after { border-radius: 1.25rem; }
  .nv-slide-une .nv-c > p:first-child { font-weight: 700; }
  .nv-slide-une .nv-c > p:last-child { font-weight: 600; }
}

/* ---------------------------------------------------------------- Cartes produits : pastilles et ajout rapide */
/* Calque posé sur l'image (même ratio), hors du lien : pastille en haut à gauche, bouton « + » en bas à droite. */
.nv-carte-calque { position: absolute; inset: 0 0 auto 0; pointer-events: none; }
.nv-pastille { position: absolute; left: .625rem; top: .625rem; border-radius: 999px; padding: .25rem .625rem; font-size: .6875rem; font-weight: 700; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; }
.nv-pastille--epuise { background: var(--ink); color: var(--ink-foreground); }
.nv-pastille--promo { background: var(--primary); color: var(--primary-foreground); }
.nv-pastille--stock { background: var(--card); color: var(--primary); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.nv-epuise { opacity: .55; filter: grayscale(.6); }
.nv-rapide-btn { pointer-events: auto; position: absolute; right: .625rem; bottom: .625rem; display: grid; place-items: center; height: 2.75rem; width: 2.75rem; border-radius: 999px; background: var(--card); color: var(--foreground); box-shadow: 0 2px 8px rgb(0 0 0 / .15); transition: background .2s, color .2s, transform .2s; }
.nv-rapide-btn:hover, .nv-rapide-btn:focus-visible { background: var(--primary); color: var(--primary-foreground); transform: scale(1.06); }
.nv-rapide-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.nv-rapide-btn[aria-busy="true"] { pointer-events: none; }
.nv-rapide-btn[aria-busy="true"] svg { display: none; }
.nv-rapide-btn[aria-busy="true"]::after { content: ""; height: 1.125rem; width: 1.125rem; border-radius: 999px; border: 2px solid currentColor; border-right-color: transparent; animation: nv-tourne .7s linear infinite; }
.nv-rapide-btn.est-ajoute { background: var(--primary); color: var(--primary-foreground); }
@keyframes nv-tourne { to { transform: rotate(360deg); } }

/* Fenêtre d'ajout rapide : feuille en bas de l'écran sur mobile, fenêtre centrée dès 640 px. */
.nv-rapide { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.nv-rapide[hidden] { display: none !important; }
.nv-rapide__fond { position: absolute; inset: 0; background: color-mix(in oklab, var(--ink) 60%, transparent); animation: nv-apparition .25s ease-out; }
.nv-rapide__panneau { position: relative; width: 100%; max-height: 90vh; overflow-y: auto; border-radius: 1.5rem 1.5rem 0 0; background: var(--background); color: var(--foreground); padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgb(0 0 0 / .2); animation: nv-feuille .3s ease-out; }
@keyframes nv-feuille { from { transform: translateY(100%); } to { transform: none; } }
@media (min-width: 640px) {
  .nv-rapide { align-items: center; padding: 1.5rem; }
  .nv-rapide__panneau { max-width: 26rem; border-radius: 1.5rem; padding: 1.5rem; animation: nv-apparition .25s ease-out; }
}
.nv-rapide__poignee { margin: -.5rem auto .75rem; height: .3125rem; width: 2.5rem; border-radius: 999px; background: var(--border); }
@media (min-width: 640px) { .nv-rapide__poignee { display: none; } }
.nv-rapide__options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-top: .625rem; }
.nv-rapide__options .nv-option span { display: flex; min-height: 2.75rem; align-items: center; justify-content: center; border-radius: .5rem; border: 2px solid var(--border); background: var(--card); padding: .375rem .25rem; text-align: center; font-size: .875rem; font-weight: 600; cursor: pointer; transition: border-color .2s; }
.nv-rapide__options .nv-option span:hover { border-color: var(--foreground); }
.nv-rapide__ajouter { margin-top: 1.25rem; display: flex; width: 100%; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px; background: var(--primary); padding: .875rem 1rem; font-weight: 700; text-transform: uppercase; color: var(--primary-foreground); transition: opacity .2s; }
.nv-rapide__ajouter:hover { opacity: .9; }
.nv-rapide__ajouter:disabled { opacity: .6; cursor: wait; }
/* Boutique sous 640 px : 2 colonnes conservées, mais marges 20 → 16 px et gouttière 20 → 12 px pour agrandir les
   visuels de la grille (≈ 165 → 175 px à 390). Les lignes qui débordent jusqu'aux bords (catégories, « À la une »)
   suivent la nouvelle marge. */
@media (max-width: 639.98px) {
  .nv-boutique-contenu { padding-inline: 1rem; }
  .nv-grille-produits { column-gap: .75rem; }
  .nv-boutique-contenu .nv-filtres { width: calc(100% + 2rem); margin: 0 -1rem; padding-inline: 1rem; scroll-padding-inline: 1rem; }
  .nv-boutique-contenu .nv-rail-une { margin-inline: -1rem; padding-inline: 1rem; }
}

/* Accueil, « Prochains matchs » sous 640 px : cartes au gabarit des autres carrousels (74 % de l'écran) et textes
   agrandis pour la lecture (écart voulu avec la maquette : 224 px, textes 14 px, logos 56 px). */
@media (max-width: 639.98px) {
  .nv-carte-match { width: calc((100vw - 2rem) * 0.74); }
  .nv-carte-match .nv-m-date { font-size: 1rem; line-height: 1.375rem; }
  .nv-carte-match .nv-m-heure { font-size: .9375rem; }
  .nv-carte-match .nv-m-logo { height: 4rem; width: 4rem; }
  .nv-carte-match .nv-m-vs { font-size: 1.25rem; line-height: 1.75rem; }
  .nv-carte-match .nv-m-equipes { font-size: 1rem; line-height: 1.375rem; }
}

/* Accueil, « Prochains matchs » : cartes de même hauteur (la plus haute fixe la rangée), bouton calé en bas.
   Swiper donne height:100% aux slides, ce qui empêche l'étirement flex : on repasse en auto. */
.nv-carte-match { height: auto; }
.self-center { align-self: center; } /* pastille Domicile / Extérieur des cartes de match (carte en colonne flex) */

/* Tunnel allégé (inc/tunnel.php) : retrait choisi → ni adresse postale ni adresse de livraison ; match demandé pour l'Arena. */
form.checkout .nv-retrait-info, form.checkout .nv-retrait-match-champ { display: none; }
form.checkout.nv-retrait .nv-retrait-info { display: flex; }
form.checkout.nv-retrait-match .nv-retrait-match-champ { display: block; }
form.checkout.nv-retrait .nv-adresse, form.checkout.nv-retrait .woocommerce-shipping-fields { display: none; }

/* Sous-menus de l'en-tête ouverts au toucher / au clic (assets/js/main.js) : sur iPad, le survol de la maquette ne
   s'applique pas (Tailwind 4 le réserve à @media (hover: hover)). */
[data-deroulant].est-ouvert > div { visibility: visible; opacity: 1; }
[data-deroulant].est-ouvert > button { color: var(--primary); }
[data-deroulant].est-ouvert > button svg { transform: rotate(180deg); }

/* Pages légales : fiche d'identité d'une structure (jeton {identite_…}) et champ manquant (Options › Général › Entités légales). */
.nv-legal ul.nv-identite { list-style: none; padding: 1rem 1.25rem; border-radius: .75rem; background: var(--muted); }
.nv-legal ul.nv-identite li { margin-bottom: .35rem; }
.nv-legal ul.nv-identite li:last-child { margin-bottom: 0; }
.nv-a-completer { display: inline-block; padding: 0 .4em; border-radius: .25rem; background: #fee2e2; color: #b91c1c; font-weight: 600; }

/* Pages légales : tableau des traitements (politique de confidentialité). Desktop : tableau ; sous 768 px : une carte par
   ligne, intitulés des colonnes repris devant chaque valeur (ordre fixe : Traitement, Responsable, Base légale, Durée). */
.nv-legal table { display: table; width: 100%; margin: 0 0 1.25rem; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.nv-legal th, .nv-legal td { padding: .65rem .75rem; border-bottom: 1px solid #CDCDCD; text-align: left; vertical-align: top; }
.nv-legal thead th { background: var(--muted); color: var(--foreground); font-weight: 700; border-bottom: 0; }
.nv-legal thead th:first-child { border-radius: .5rem 0 0 .5rem; }
.nv-legal thead th:last-child { border-radius: 0 .5rem .5rem 0; }
.nv-legal td:first-child { color: var(--foreground); font-weight: 600; }
@media (max-width: 767px) {
  .nv-legal thead { display: none; }
  .nv-legal table, .nv-legal tbody, .nv-legal tr, .nv-legal td { display: block; width: 100%; }
  .nv-legal tr { margin-bottom: .75rem; padding: .75rem 1rem; border-radius: .75rem; background: var(--muted); }
  .nv-legal td { padding: .2rem 0; border: 0; }
  .nv-legal td:first-child { margin-bottom: .25rem; }
  .nv-legal td:nth-child(2)::before { content: "Responsable : "; font-weight: 600; color: var(--foreground); }
  .nv-legal td:nth-child(3)::before { content: "Base légale : "; font-weight: 600; color: var(--foreground); }
  .nv-legal td:nth-child(4)::before { content: "Durée : "; font-weight: 600; color: var(--foreground); }
}

/* Pastille du gestionnaire de cookies (Hermes, Cronos) : sous 1024 px, elle tombait sur le bouton « Boutique » de la barre
   d'accès rapide (65 px de haut) : on la pose 12 px au-dessus. Fiche produit : pas de barre, position d'origine. */
@media (max-width: 1023px) {
  body:not(.single-product) #hermes-badge.hermes-badge-bottom-left { bottom: calc(77px + env(safe-area-inset-bottom)) !important; }
}
/* 19/11/2026 — fiche produit sous 768 px : la barre « Ajouter » collée en bas (69 px) recouvrait la pastille → 12 px au-dessus. */
@media (max-width: 767px) {
  body.single-product #hermes-badge.hermes-badge-bottom-left { bottom: calc(81px + env(safe-area-inset-bottom)) !important; }
}
/* Pastille (z-index 999998) au-dessus des panneaux plein écran : masquée pendant le menu mobile, le panier en volet et
   l'ajout rapide, qui ont leurs propres boutons en bas d'écran. */
body.panier-ouvert #hermes-badge,
body:has(#nv-menu-mobile:not([hidden])) #hermes-badge,
body:has(#nv-panier:not([hidden])) #hermes-badge,
body:has(.nv-rapide:not([hidden])) #hermes-badge { display: none !important; }

/* Fiche produit : flocage personnalisé (choix « Un joueur de l'effectif » / « Mon flocage », champs nom et numéro).
   Classes propres au thème : la feuille compilée de la maquette ne contient pas ces combinaisons. */
.nv-flocage-modes { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; padding: .25rem; border-radius: .75rem; background: var(--muted); }
.nv-flocage-mode span { display: flex; min-height: 2.5rem; align-items: center; justify-content: center; padding: .375rem .5rem; border-radius: .5rem; text-align: center; font-size: .8125rem; font-weight: 700; line-height: 1.2; color: var(--muted-foreground); cursor: pointer; transition: background .2s, color .2s; }
.nv-flocage-mode span:hover { color: var(--foreground); }
.nv-flocage-mode input:checked + span { background: var(--card); color: var(--foreground); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.nv-flocage-mode input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
[data-flocage-libre] { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem; gap: .75rem; }
[data-flocage-libre] > p { grid-column: 1 / -1; }
.nv-champ-flocage { letter-spacing: .06em; outline: none; transition: border-color .2s; }
.nv-champ-flocage:focus { border-color: var(--primary); }
.nv-champ-flocage::placeholder { color: var(--muted-foreground); opacity: .45; }
@media (max-width: 767px) {
  [data-flocage-libre] > p { text-align: center; }
}

/* Billetterie : cartes de match sobres (fond noir, logo en filigrane coupé en haut à droite, bouton calé en bas).
   Hauteur = contenu (mobile : gabarit de la carte Abonnement) ; la grille aligne les cartes d'une même ligne. */
.nv-billet-match .nv-filigrane { position: absolute; top: -18%; right: -14%; width: 62%; max-width: 240px; height: auto; opacity: .07; filter: grayscale(1) brightness(2.2); pointer-events: none; user-select: none; transition: opacity .3s; }
.nv-billet-match--premier .nv-filigrane { top: -22%; right: -6%; width: 46%; max-width: 300px; }
.nv-billet-match:hover .nv-filigrane { opacity: .1; }
.nv-billet-match__action { margin-top: auto; padding-top: 1.5rem; }
.nv-billet-match--premier .nv-billet-match__action { padding-top: 1.75rem; }
/* Date et lieu : séparés par un espace (plus de « · » laissé seul en bout de ligne quand ils passent sur deux lignes). */
.nv-billet-match__infos { column-gap: 1.25rem; }
/* « Centurions Narbonne » toujours sur une ligne, « vs Adversaire » sur la suivante (demande du client, 17/11/2026). */
.nv-billet-match__nous { display: block; white-space: nowrap; }
@media (min-width: 1024px) { .nv-billet-match { min-height: 15rem; } }
@media (max-width: 767px) { .nv-billet-match .nv-filigrane { top: -30%; right: -10%; width: 42%; } }
/* Petits écrans : le titre suit la largeur pour que « Centurions Narbonne » tienne sur une ligne (88 px = marges de page
   et de carte ; ≈ 12,8 caractères de large à la taille du texte), sans dépasser sa taille normale (24 px / 18 px). */
@media (max-width: 767px) {
  .nv-billet-match h3 { font-size: min(1.125rem, calc((100vw - 88px) / 12.8)); }
  .nv-billet-match--premier h3 { font-size: min(1.5rem, calc((100vw - 88px) / 12.8)); }
}
/* Mobile : lieu retiré des cartes de match, sauf la carte à la une (« Prochain match »), pour des cartes plus basses. */
@media (max-width: 767px) {
  .nv-billet-match:not(.nv-billet-match--premier) .nv-billet-match__lieu { display: none; }
}
/* Mobile : compétition et journée en surtitre rose sans fond (comme « Abonnement saison »), sauf la carte à la une. */
@media (max-width: 767px) {
  .nv-billet-match:not(.nv-billet-match--premier) .nv-billet-match__type { padding: 0; border-radius: 0; background: none; color: var(--primary); letter-spacing: .2em; }
}

/* Page de réservation d'un match (templates/billet-match.php, 17/11/2026) : affiche du match, billetterie O&B en iFrame. */
.nv-billet-entete { min-height: 0; }
@media (max-width: 767px) { .nv-billet-entete h1 { font-size: min(1.5rem, calc((100vw - 88px) / 12.8)); } }
.nv-billet-iframe { height: 900px; transition: height .2s; }
.nv-billet-iframe.est-dimensionnee { min-height: 0; }
@media (max-width: 767px) { .nv-billet-iframe { height: 1100px; } }
/* Pages de réservation d'un match : pastille du gestionnaire de cookies (Hermes, Cronos) masquée, elle recouvrait le coin
   de la billetterie O&B. Le choix des cookies reste modifiable depuis toutes les autres pages. */
body.page-billet-match #hermes-badge { display: none !important; }
/* « Complétez votre look avant le match » : 2 colonnes sur mobile, 4 dès 768 px (md:grid-cols-4 absent de maquette.css). */
.nv-billet-boutique__grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 768px) { .nv-billet-boutique__grille { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }

/* Réservation en ligne fermée au coup d'envoi (inc/billetterie.php) : dans l'encart « Prochain match » de l'accueil, la
   mention prend la ligne et « Je m'abonne » passe en pleine largeur au lieu de rester seul sur une demi-colonne. */
[data-fermeture] > .nv-billet-ferme.col-span-2:not([hidden]) ~ a:last-child { grid-column: span 2 / span 2; }

/* Réseaux sociaux par structure (parts/reseaux.php) : « CENTURIONS (f)(ig)… » puis « ACADÉMIE (f)(ig)… ». */
.nv-reseaux { display: flex; flex-direction: column; gap: .75rem; }
.nv-reseaux__ligne { display: flex; align-items: center; gap: .75rem; }
.nv-reseaux__nom { width: 6.25rem; flex-shrink: 0; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in oklab, var(--ink-foreground) 55%, transparent); }
.nv-reseaux__liens { display: flex; flex-wrap: wrap; gap: .625rem; margin: 0; padding: 0; list-style: none; }
/* Sous 768 px (pied de page centré) et menu mobile : libellé au-dessus, rangées centrées. */
@media (max-width: 767px) {
  .nv-reseaux { align-items: center; gap: 1rem; }
  .nv-reseaux__ligne { flex-direction: column; gap: .5rem; }
  .nv-reseaux__nom { width: auto; text-align: center; }
  .nv-reseaux__liens { justify-content: center; }
}
.nv-reseaux--compact { align-items: center; gap: .875rem; }
.nv-reseaux--compact .nv-reseaux__ligne { flex-direction: column; gap: .5rem; }
.nv-reseaux--compact .nv-reseaux__nom { width: auto; text-align: center; }

/* Fiche équipe, « En images » au-delà de 3 photos (slider) : dès 1024 px, 3 photos + ~35 % de la 4e au bord du contenu
   (largeur = (contenu - 3 gouttières de 16 px) / 3,35). */
@media (min-width: 1024px) { .nv-photo-equipe.swiper-slide { width: calc((100% - 48px) / 3.35); } }

/* Paiement SumUp (18/11/2026) : pendant la saisie de la carte (formulaire dans la page, ou fenêtre si elle revient),
   la pastille du gestionnaire de cookies est masquée pour ne pas recouvrir les champs. */
body.sumup-modal-open #hermes-badge,
body:has(#sumup-card iframe) #hermes-badge { display: none !important; }
/* Page « Payer la commande » : totaux du récapitulatif alignés comme sur la page de commande. */
.nv-paiement .nv-recap tfoot th { text-align: left; font-weight: 500; }
.nv-paiement .nv-recap tfoot td { text-align: right; }
.nv-paiement .nv-recap tfoot .order-total th, .nv-paiement .nv-recap tfoot .order-total td { font-weight: 700; font-size: 1.05rem; }
/* Formulaire de carte SumUp affiché dans la page : le retrait sous le bouton radio est retiré une fois la carte montée,
   pour lui laisser toute la largeur (265 → 313 px à 390). */
.payment_box.payment_method_sumup:has(#sumup-card iframe) { padding-left: 0; padding-right: 0; }

/* 19/11/2026 — iPhone : avec Apple Pay, le formulaire SumUp affiche un choix « Apple Pay / Carte » plus large que la carte
   seule ; la colonne de paiement (élément de grille, min-width: auto) s'élargissait à sa largeur minimale et la page débordait
   à droite. La colonne et le formulaire sont tenus dans l'écran, et le retrait de la carte réduit sous 640 px. */
.nv-colonne-paiement, .nv-colonne-paiement #payment, .nv-colonne-paiement .wc_payment_methods,
.nv-colonne-paiement li.payment_method_sumup, .payment_box.payment_method_sumup, #wc-sumup-payment-modal, #sumup-card { min-width: 0; max-width: 100%; }
#sumup-card > * { max-width: 100%; }
/* Champs de carte trop étroits sur téléphone (182 px sur 390) : 47 px de marges du thème + 57 px de SumUp de chaque côté
   (conteneur 24, formulaire 16, cadre des champs 16 + 1). Sous 640 px, une fois la carte montée, on les réduit → ~278 px. */
@media (max-width: 639px) {
  .nv-colonne-paiement { padding: .75rem; }
  /* marge fixe : SumUp charge des cadres invisibles dès l'ouverture de « Payer la commande », un :has(iframe) collait le texte au bord */
  .nv-woo li.wc_payment_method.payment_method_sumup { padding-left: .75rem; padding-right: .75rem; }
  #sumup-card .sumup-payment-widget-theme { padding-left: .5rem; padding-right: .5rem; }
  #sumup-card .sumup-payment-widget-theme form { padding-left: 0 !important; padding-right: 0 !important; }
  #sumup-card .sumup-payment-widget-theme fieldset { padding-left: .75rem; padding-right: .75rem; }
}
