/* =====================================================================
   Direction « Cabinet » — surcharges transverses (composants réutilisés
   sur plusieurs pages). Chargée par base.html juste après tailwind.css.
   Réversible : retirer le <link> dans base.html.
   ===================================================================== */

/* Cartes d'événement mises en avant : plus de dégradé blanc→rose */
body .evt-card--highlight { background: #fff !important; border-color: #50A8CB !important; }

/* En-têtes de sections de réglages Pages Pro : aplat */
.pp-settings-section__head { background: #F7FAFB !important; }

/* Qualification (profil / compte) : aplats brume au lieu des dégradés bleus */
.qualif-header-card { background: #EDF3F5 !important; }
.qualif-tile.is-active { background: #EDF3F5 !important; border-color: #006289 !important; }

/* Avatar à initiales : bleu Contacto uni */
.profil-avatar-inner { background: #006289 !important; }

/* Héros des back-offices actualités et bannière « événement en direct » : pétrole */
.abo-hero { background: #FFFFFF !important; border: 1px solid #DCE6EA !important; box-shadow: none !important; border-radius: .75rem !important; color: #335566 !important; }
.abo-hero .abo-hero__title { color: #0D2B3A !important; font-family: Newsreader, Georgia, serif; font-weight: 500; }
.abo-hero .abo-hero__title small, .abo-hero .abo-hero__back { color: #5B7684 !important; }
.abo-hero .abo-hero__back:hover { color: #006289 !important; }
.abo-hero .abo-hero__sub { color: #335566 !important; }
.abo-hero .abo-help { color: #5B7684 !important; }
#live-event-banner { background: #073A50 !important; }

/* Notifications toast : pétrole plutôt qu'ardoise */
#toast.toast, .toast { background-color: #073A50 !important; }
/* Messages flottants (toasts) : toujours entiers et lisibles, au-dessus de la barre du bas mobile (68 px + zone sûre/PWA), texte à la ligne. */
.site-toast, #toast.toast, .toast, .pd-toast, #pp-attach-toast { max-width: min(92vw, 420px); overflow-wrap: anywhere; white-space: normal; z-index: 2147483000 !important; }
@media (max-width: 767.98px) {
  .site-toast, #toast.toast, .toast, .pd-toast { bottom: calc(68px + var(--sab, env(safe-area-inset-bottom, 0px)) + 16px) !important; top: auto !important; }
}

/* ---------- Dégradés restants relevés par l'audit (aplats Cabinet) ---------- */
/* Teintes claires → blanc / brume */
body .ep-entity-card, body .ep-uploader--hero, body .pp-mes-pages-cta, body .mpp-bottom-stack,
body #support-contacto, body .bg-gradient-to-r.from-rose-50, body .mb-6.p-4.bg-gradient-to-br {
  background-image: none !important; background-color: #EDF3F5 !important;
}
body .mpp-hero-pattern { background-image: none !important; }
body .ep-step.is-active { background-image: none !important; background-color: #073A50 !important; }
/* Teintes sombres à texte blanc → pétrole (lisibilité garantie) */
body .em-hero, body .bg-gradient-to-r.from-blue-700, body .bg-gradient-to-r.from-\[\#E71D72\] {
  background-image: none !important; background-color: #073A50 !important;
}
/* Avatars à initiales : bleu Contacto uni */
body .profil-avatar-initials, body .profil-avatar-ring, body .w-16.h-16.rounded-2xl.bg-gradient-to-br {
  background-image: none !important; background-color: #006289 !important;
}
/* Boutons : action principale en rose plein, IA en pétrole */
body #btn-submit-contact { background-image: none !important; background-color: #E71D72 !important; border-radius: 0.375rem !important; }
body .ep-ai-btn { background-image: none !important; background-color: #073A50 !important; border-radius: 0.375rem !important; }

/* ---------- Arrondis : cartes et panneaux plafonnés à 12 px ---------- */
body .faf-contact-card, body .wiz-card, body .abo-panel, body .abo-form-card, body .contact-card,
body .ep-sidebar, body .ep-card, body .ep-actionbar, body .ppf-card, body .mpp-card, body .mpp-hero-wrap,
body .pp-settings-section, body .em-hero {
  border-radius: 0.75rem !important;
}

/* ---------- Textes éditoriaux (À propos, Mentions légales) ---------- */
body .prose-contacto { max-width: 68ch; color: #0D2B3A; font-size: .95rem; line-height: 1.65; }
body .prose-contacto h2 { font-family: "Newsreader", Georgia, serif; font-weight: 500; font-size: 1.45rem; line-height: 1.25; color: #073A50; margin: 1.6em 0 .5em; }
body .prose-contacto h2:first-child { margin-top: 0; }
body .prose-contacto h3 { font-family: "Newsreader", Georgia, serif; font-weight: 500; font-size: 1.15rem; color: #073A50; margin: 1.4em 0 .4em; }
body .prose-contacto p { margin: 0 0 .9em; }
body .prose-contacto ul { list-style: disc; padding-left: 1.2em; margin: 0 0 1em; }
body .prose-contacto li { margin: .35em 0; }
body .prose-contacto li::marker { color: #50A8CB; }
body .prose-contacto strong { font-weight: 600; color: #073A50; }

/* ===== En-tête de page éditorial (remplace les anciens bandeaux pétrole en capitales) ===== */
.cab-pagehead{
  position:relative; left:0; right:0; width:100vw;
  margin:0 calc(-50vw + 50%) 1.75rem;
  background:#FFFFFF; border-bottom:1px solid #DCE6EA;
  padding:2.25rem 0 1.5rem;
}
.cab-pagehead__title{
  box-sizing:border-box; max-width:42rem; margin:0 auto; padding:0 1rem;
  font-family:Newsreader, Georgia, 'Times New Roman', serif; font-weight:500;
  font-size:clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem); line-height:1.12; letter-spacing:-0.015em;
  color:#0D2B3A; text-align:center; text-wrap:balance;
}
.cab-pagehead__title::before{
  content:""; display:block; width:2rem; height:2px; background:#50A8CB; margin:0 auto .85rem;
}
.cab-pagehead__title > span{ display:block; max-width:none; white-space:normal; overflow:visible; text-overflow:clip; }
/* Pages larges : titre aligné à gauche, sur la même colonne que le contenu (max-w-* mx-auto px-3 sm:px-6) */
.cab-pagehead[data-w="4xl"] .cab-pagehead__title,
.cab-pagehead[data-w="5xl"] .cab-pagehead__title,
.cab-pagehead[data-w="6xl"] .cab-pagehead__title,
.cab-pagehead[data-w="7xl"] .cab-pagehead__title{ text-align:left; padding:0 .75rem; }
.cab-pagehead[data-w="4xl"] .cab-pagehead__title{ max-width:56rem; }
.cab-pagehead[data-w="5xl"] .cab-pagehead__title{ max-width:64rem; }
.cab-pagehead[data-w="6xl"] .cab-pagehead__title{ max-width:72rem; }
.cab-pagehead[data-w="7xl"] .cab-pagehead__title{ max-width:80rem; }
.cab-pagehead[data-w$="xl"]:not([data-w="xl"]) .cab-pagehead__title::before{ margin-left:0; }
.cab-pagehead[data-w="2xl"] .cab-pagehead__title::before{ margin:0 auto .85rem; }
@media (min-width:640px){
  .cab-pagehead[data-w="4xl"] .cab-pagehead__title,
  .cab-pagehead[data-w="5xl"] .cab-pagehead__title,
  .cab-pagehead[data-w="6xl"] .cab-pagehead__title,
  .cab-pagehead[data-w="7xl"] .cab-pagehead__title{ padding:0 1.5rem; }
}
@media (max-width:640px){
  .cab-pagehead{ padding:1.5rem 0 1.1rem; margin-bottom:1.25rem; }
  .cab-pagehead__title::before{ margin-bottom:.6rem; }
}

/* Menu latéral fermé : son ombre débordait dans l'écran (bande grise sur le bord droit) */
.contacto-drawer-panel.translate-x-full{ box-shadow:none !important; }

/* En-tête de l'accueil connecté : titre à gauche + bascule à droite, même colonne que .lp-home (1080 px) */
.lp-home > .cab-pagehead:first-child{ margin-top:-1.25rem; }
.cab-pagehead[data-w="home"]{ padding:1.75rem 0 1.25rem; }
.cab-pagehead__row{
  box-sizing:border-box; width:min(1080px, calc(100% - 2rem)); margin:0 auto;
  display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; flex-wrap:wrap;
}
.cab-pagehead[data-w="home"] .cab-pagehead__title{
  max-width:none; margin:0; padding:0; text-align:left; display:flex; align-items:center; gap:.65rem;
}
.cab-pagehead[data-w="home"] .cab-pagehead__title::before{ display:none; }
.cab-pagehead[data-w="home"] .cab-pagehead__title > span:not(.cab-live){ display:inline; }
.cab-pagehead__aside{ display:flex; align-items:center; gap:.75rem; flex-wrap:wrap; }
.cab-pagehead__count{
  font-size:.75rem; font-weight:600; color:#006289; background:#EEF6F9; border:1px solid #D7E9F0;
  padding:.3rem .7rem; border-radius:999px;
}
/* Pastille « en direct » */
.cab-live{
  position:relative; display:inline-block; width:.6rem; height:.6rem; border-radius:50%;
  background:#E71D72; flex:0 0 auto;
}
.cab-live::after{
  content:""; position:absolute; inset:-5px; border-radius:50%; border:2px solid rgba(231,29,114,.35);
  animation:cab-live 1.8s ease-out infinite;
}
@keyframes cab-live{ from{ transform:scale(.6); opacity:1 } to{ transform:scale(1.5); opacity:0 } }
@media (prefers-reduced-motion:reduce){ .cab-live::after{ animation:none; } }
/* Bascule d'affichage : contrôle segmenté sobre (pétrole), le rose reste aux actions */
.cab-pagehead .evt-switcher{ background:#EDF3F5 !important; border:1px solid #DCE6EA !important; box-shadow:none !important; padding:3px !important; border-radius:999px !important; }
.cab-pagehead .evt-switcher__btn{ font-size:.8125rem !important; padding:.4rem .9rem !important; border-radius:999px !important; }
.cab-pagehead .evt-switcher__btn--active{ background:#073A50 !important; color:#fff !important; box-shadow:none !important; }
.cab-pagehead .evt-switcher__btn--inactive{ background:transparent !important; color:#335566 !important; }
@media (max-width:640px){
  .cab-pagehead[data-w="home"]{ padding:1.1rem 0 1rem; }
  .cab-pagehead__row{ align-items:flex-start; flex-direction:column; gap:.75rem; }
  .cab-pagehead__aside{ width:100%; }
  .cab-pagehead .evt-switcher{ width:100%; display:flex !important; }
  .cab-pagehead .evt-switcher__btn{ flex:1 1 0; text-align:center; justify-content:center; }
}
/* Gabarits particuliers : même bord gauche que le contenu de la page */
.cab-pagehead[data-w="1600"] .cab-pagehead__title,
.cab-pagehead[data-w="full"] .cab-pagehead__title,
.cab-pagehead[data-w="abo"] .cab-pagehead__title,
.cab-pagehead[data-w="sdash"] .cab-pagehead__title{ text-align:left; }
.cab-pagehead[data-w="1600"] .cab-pagehead__title::before,
.cab-pagehead[data-w="full"] .cab-pagehead__title::before,
.cab-pagehead[data-w="abo"] .cab-pagehead__title::before,
.cab-pagehead[data-w="sdash"] .cab-pagehead__title::before{ margin-left:0; }
.cab-pagehead[data-w="1600"] .cab-pagehead__title{ max-width:1600px; padding:0 1rem; }
.cab-pagehead[data-w="full"] .cab-pagehead__title{ max-width:none; padding:0 1.5rem; }
.cab-pagehead[data-w="abo"] .cab-pagehead__title{ max-width:1100px; padding:0 18px; }
.cab-pagehead[data-w="sdash"] .cab-pagehead__title{ max-width:1100px; padding:0; width:calc(100% - 2rem); }
@media (min-width:640px){ .cab-pagehead[data-w="1600"] .cab-pagehead__title{ padding:0 1.5rem; } }
@media (min-width:1024px){
  .cab-pagehead[data-w="1600"] .cab-pagehead__title,
  .cab-pagehead[data-w="7xl"] .cab-pagehead__title{ padding:0 2rem; }
}
/* L'accueil connecté : pas de bande de dégradé entre la barre du haut et l'en-tête */
.lp-home:has(> .cab-pagehead:first-child){ padding-top:0; }
.lp-home > .cab-pagehead:first-child{ margin-top:0; }

/* ===== Introductions de page : carte claire (remplace les gros encadrés pétrole) ===== */
.cab-intro{
  background:#FFFFFF !important; color:#335566 !important;
  border:1px solid #DCE6EA !important; border-radius:.75rem !important; box-shadow:none !important;
}
.cab-intro > div > p:first-child, .cab-intro > p{ font-size:.9375rem !important; line-height:1.6 !important; color:#335566; max-width:62ch; }
.cab-intro strong{ color:#0D2B3A; }
.cab-intro .text-sky-400, .cab-intro .text-sky-300{ color:#006289 !important; }
.cab-intro .text-slate-200, .cab-intro .text-slate-300{ color:#335566 !important; }
.cab-intro [class*="bg-slate-800"]{ background:#EEF6F9 !important; border-color:#D7E9F0 !important; color:#006289 !important; }
.cab-intro [class*="bg-slate-800"] .text-white, .cab-intro [class*="bg-slate-800"].text-white{ color:#073A50 !important; }
.cab-intro select.bg-slate-900{ background-color:#FFFFFF !important; color:#0D2B3A !important; border-color:#DCE6EA !important; }

/* Intertitres en capitales = étiquettes : police d'interface (le serif reste aux vrais titres) */
:is(h1,h2,h3,h4,h5,h6).uppercase{ font-family:"Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important; }

/* ===== Pages Pro sans image de couverture : couverture « papier » claire au lieu d'un aplat pétrole ===== */
body .mpp-hero:has(> .mpp-hero-pattern){ background:#E6F0F4 !important; }
body .mpp-hero-pattern{
  opacity:1 !important; overflow:hidden;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M0 24L24 0' stroke='%23CFE1E8' stroke-width='1'/%3E%3C/svg%3E") !important;
  background-size:24px 24px !important;
  border-bottom:1px solid #DCE6EA;
}
body .mpp-hero-pattern::after{
  content:attr(data-initial); position:absolute; right:1.25rem; bottom:-1.6rem;
  font-family:Newsreader, Georgia, serif; font-weight:500; font-size:7.5rem; line-height:1;
  color:#B3D7E6; letter-spacing:-.02em; pointer-events:none;
}
/* Accueil connecté : même colonne que la barre du haut (max-w-6xl moins ses marges = 1104 px) */
body .lp-home{ width:min(1104px, calc(100% - 2rem)) !important; }
.cab-pagehead__row{ width:min(1104px, calc(100% - 2rem)); }
/* En-tête collé à la bande suivante (profil, compte : la barre de progression suit directement) */
.cab-pagehead--flush{ margin-bottom:0; border-bottom:0; }

/* Couverture de profil sans bannière : même « papier » que les Pages Pro */
.cab-cover-paper{
  background-color:#E6F0F4;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M0 24L24 0' stroke='%23CFE1E8' stroke-width='1'/%3E%3C/svg%3E");
  background-size:24px 24px; overflow:hidden;
}
.cab-cover-paper::after{
  content:attr(data-initial); position:absolute; right:1.25rem; bottom:.75rem;
  font-family:Newsreader, Georgia, serif; font-weight:500; font-size:clamp(4.5rem, 14vw, 9rem); line-height:.8;  /* monogramme entièrement visible (plus coupé) */
  color:#B3D7E6; letter-spacing:-.03em; pointer-events:none;
}
body .profil-hero:not(.has-cover)::before{ display:none !important; }
body .profil-hero:not(.has-cover){ background:#E6F0F4 !important; }

/* Dézoom mobile : sur iPhone, champs à 16 px visibles (16 / 0,875) pour éviter le zoom automatique au focus */
html.cab-dz.cab-ios input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),
html.cab-dz.cab-ios select,
html.cab-dz.cab-ios textarea{font-size:18.3px!important}
/* Dézoom mobile : plancher de lisibilité — les plus petits textes (≤ 10,5 px) passent à 11 px (≈ 9,6 px visibles) */
html.cab-dz :is(.text-\[8px\],.text-\[9px\],.text-\[10px\],.text-\[10\.5px\],.sdash-mbar__eyebrow,.mpp-role-tag,.faf-mobile-bar__badge,.ep-uploader-ratio,.af-home-feed__filter-count,.feed-pill-btn span){font-size:11px!important}
html.cab-dz .bg-\[\#006289\].uppercase[style*="font-size: 9px"]{font-size:10px!important}
/* iPhone (Safari) : 100vh = hauteur barre d'outils masquée, plus grande que l'écran visible → on prend la petite hauteur visible */
@supports (min-height: 100svh) { body.min-h-screen { min-height: 100svh; } }
/* Photo de fond (visage + ville) : réservée aux cartes de connexion / inscription / mot de passe.
   Ailleurs, fond brume uni : les titres et formulaires ne sont plus posés sur la photo. */
body:not(:has(main.auth-main)){ background-image:none !important; }
/* Centre superviseur : les pages qui n'enveloppent pas leur contenu dans .sdash (notifications, invitations…)
   prennent la même largeur que la barre « Centre superviseur » (1100 − 2×16 px), bords alignés. */
main > nav.sdash--nav ~ :not(.sdash):not(script):not(style):not(link):not(template):not(.fixed):not([style*="fixed"]){
  max-width:1068px; margin-left:auto !important; margin-right:auto !important; }
@media (max-width:720px){
  main > nav.sdash--nav ~ :not(.sdash):not(script):not(style):not(link):not(template):not(.fixed):not([style*="fixed"]){
    margin-left:12px !important; margin-right:12px !important; max-width:calc(100% - 24px); }
}
/* Titre de page en premier dans main : collé sous la barre du haut (pas de bande brume entre les deux) */
@media (min-width:768px){ body main:has(> .cab-pagehead:first-child){ padding-top:73px !important; } }
/* Bandeau « Ajouter Contacto au bureau » : masqué tant qu'une fenêtre (modale, feuille) bloque le défilement de la page */
body[style*="overflow: hidden"] .pwa-install-safe-area, html.sdash-sheet-open .pwa-install-safe-area { display:none !important; }

/* ============================================================================
   Grilles de boutons Contacto (04/11/2026)
   Une seule règle pour tout le site : colonnes égales, même hauteur, texte jamais
   coupé (il passe à la ligne), 10 px d'écart, et un bouton seul sur la dernière
   ligne prend toute la largeur (pas de bouton « orphelin »).
   Usage : <div class="cta-grid">…</div> (2 colonnes), cta-grid--3, cta-grid--4,
           cta-grid--auto (autant de colonnes que possible, 150 px mini).
   Les <form> qui entourent un bouton sont « transparents » pour la grille.
   ============================================================================ */
.cta-grid { display: grid !important; grid-template-columns: repeat(var(--cta-cols, 2), minmax(0, 1fr)); gap: 10px !important; width: 100%; align-items: stretch; }
.cta-grid--3 { --cta-cols: 3; }
.cta-grid--4 { --cta-cols: 4; }
.cta-grid--1 { --cta-cols: 1; }
.cta-grid--auto { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cta-grid > form { display: contents !important; }
.cta-grid > a, .cta-grid > button, .cta-grid > form > button, .cta-grid > form > a,
.cta-grid > span > a, .cta-grid > span > button {
  width: 100% !important; min-width: 0 !important; max-width: none !important; margin: 0 !important;
  min-height: 42px; display: inline-flex !important; align-items: center !important; justify-content: center !important;
  gap: 6px; text-align: center !important; white-space: normal !important; overflow: visible !important;
  text-overflow: clip !important; line-height: 1.2 !important; box-sizing: border-box !important;
}
.cta-grid > * > span, .cta-grid > form > button > span { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
/* nombre impair en 2 colonnes : le dernier prend toute la largeur */
.cta-grid:not(.cta-grid--3):not(.cta-grid--4):not(.cta-grid--auto):not(.cta-grid--fit) > :nth-last-child(1 of :not(template)):nth-child(odd of :not(template)) { grid-column: 1 / -1; }
/* mobile : 4 colonnes → 2 ; texte un peu plus petit dans les grilles serrées */
@media (max-width: 480px) {
  .cta-grid--4 { --cta-cols: 2; }
  .cta-grid--3 > a, .cta-grid--3 > button, .cta-grid--3 > form > button { font-size: 12.5px !important; padding-left: 6px !important; padding-right: 6px !important; }
}
/* Variante « --1l » : 2 à 4 tuiles d'action sur UNE seule ligne sur mobile (règle d'Elliott), icône au-dessus, libellé court dessous.
   Libellé long / court : <span class="cta-full">…</span><span class="cta-short">…</span> (+ aria-label complet). Desktop inchangé. */
.cta-short, .cta-ico-m { display: none; }
@media (max-width: 639.98px) {
  .cta-grid.cta-grid--1l { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px !important; }
  .cta-grid.cta-grid--1l > * { grid-column: auto !important; }
  .cta-grid--1l > a, .cta-grid--1l > button, .cta-grid--1l > form > button, .cta-grid--1l > form > a {
    flex-direction: column !important; gap: 4px !important; min-height: 56px !important; padding: 6px 3px !important;
    font-size: 11.5px !important; line-height: 1.15 !important; overflow-wrap: break-word; hyphens: auto;
  }
  .cta-grid--1l .cta-full { display: none; }
  .cta-grid--1l .cta-short { display: inline; }
  .cta-grid--1l .cta-ico-m { display: block; }
  .cta-grid--1l > a > svg, .cta-grid--1l > button > svg, .cta-grid--1l > form > button > svg { width: 20px; height: 20px; flex-shrink: 0; }
}
/* desktop : une grille marquée cta-grid--fit garde la largeur de son contenu (boutons égaux, alignés à droite) */
@media (min-width: 768px) {
  .cta-grid--fit { width: auto; grid-auto-columns: minmax(170px, 1fr); grid-auto-flow: column; grid-template-columns: none; justify-content: end; }
}

/* ============================================================================
   Rangée de 2 à 4 boutons d'action sur UNE seule ligne (mobile 360-430 px)
   Règle d'Elliott : jamais « 2 boutons puis 1 tout seul ». Colonnes égales, texte qui
   passe à la ligne DANS le bouton, hauteur mini 44 px. Usage : <div class="btn-row-1l">
   Variante « --m » (btn-row-1l--m) : même rangée mais SEULEMENT sur mobile (desktop inchangé : pile, grille…).
   ============================================================================ */
.btn-row-1l { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 8px; }
@media (max-width: 639.98px) {
  :is(.btn-row-1l, .btn-row-1l--m) { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: stretch; gap: 8px; width: 100%; }
  :is(.btn-row-1l, .btn-row-1l--m) > *, :is(.btn-row-1l, .btn-row-1l--m) > form > * { flex: 1 1 0 !important; min-width: 0 !important; max-width: none !important; margin: 0 !important; width: auto !important; }
  :is(.btn-row-1l, .btn-row-1l--m) > form { display: flex !important; flex: 1 1 0 !important; min-width: 0 !important; margin: 0 !important; }
  /* Un enfant masqué (classe hidden, attribut hidden, x-show) ne prend jamais de place dans la rangée (sinon « Scanner » était coupé en « Scan / ner »). */
  :is(.btn-row-1l, .btn-row-1l--m) > :is(.hidden, [hidden], [style*="display: none"]) { display: none !important; }
  /* La rangée elle-même masquée par x-show ou hidden reste masquée (fenêtre « Notifications sur iPhone » : les 3 étapes s'affichaient ensemble). */
  :is(.btn-row-1l, .btn-row-1l--m):is(.hidden, [hidden], [style*="display: none"]) { display: none !important; }
  :is(.btn-row-1l, .btn-row-1l--m) > a, :is(.btn-row-1l, .btn-row-1l--m) > button, :is(.btn-row-1l, .btn-row-1l--m) > form > button, :is(.btn-row-1l, .btn-row-1l--m) > form > a {
    min-height: 44px; display: inline-flex !important; align-items: center !important; justify-content: center !important;
    text-align: center !important; white-space: normal !important; line-height: 1.15 !important; font-size: 13px !important;
    padding-left: 8px !important; padding-right: 8px !important; box-sizing: border-box !important; overflow-wrap: anywhere;
  }
  /* Bouton au libellé court (« Contacter ») : jamais coupé au milieu du mot ; les autres boutons de la rangée se partagent le reste. */
  :is(.btn-row-1l, .btn-row-1l--m) > .mm-contact-btn { flex: 0 0 auto !important; min-width: max-content !important; white-space: nowrap !important; overflow-wrap: normal !important; }
  /* Cartes de matchs : « Contacter » à sa taille naturelle (il ne grossit plus), favori et archiver restent des carrés de 44 px,
     « Infos sur ce match » prend le reste ; les 4 boutons ont la même hauteur. */
  .mm-side .btn-row-1l > :is(button[hx-post], button[title="Masquer ce match"]) { flex: 0 0 44px !important; min-width: 44px !important; padding-left: 0 !important; padding-right: 0 !important; }
  .mm-side .btn-row-1l > button[aria-label="Infos sur ce match"] { flex: 1 1 0 !important; min-width: 0 !important; }
  /* variante « --auto » : largeur selon le contenu (4 boutons de longueurs différentes), le reste est partagé */
  .btn-row-1l--auto > *, .btn-row-1l--auto > form > * { flex: 1 1 auto !important; }
  .btn-row-1l--auto > form { flex: 1 1 auto !important; }
  .btn-row-1l--auto > a, .btn-row-1l--auto > button, .btn-row-1l--auto > form > button { padding-left: 6px !important; padding-right: 6px !important; font-size: 12px !important; gap: 4px !important; }
  .btn-row-1l--auto svg { width: 14px !important; height: 14px !important; flex-shrink: 0; }
  /* Barres d'actions Page Pro / hero événement : leurs boutons passent aussi sur UNE ligne (mobile) */
  :is(.abo-card__actions, .abo-actions-bar, .ep-actionbar, .evm-hero__actions) {
    display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
    align-items: stretch !important; justify-content: stretch !important; gap: 6px !important; width: 100%;
  }
  :is(.abo-card__actions, .abo-actions-bar, .ep-actionbar, .evm-hero__actions) > :is(.abo-spacer, .ep-actionbar-spacer, .ep-actionbar-info) { display: none !important; }
  :is(.abo-card__actions, .abo-actions-bar, .ep-actionbar, .evm-hero__actions) > :is(a, button, form) {
    flex: 1 1 auto !important; min-width: 0 !important; margin: 0 !important; width: auto !important;
  }
  :is(.abo-card__actions, .abo-actions-bar, .ep-actionbar, .evm-hero__actions) > form { display: flex !important; }
  :is(.abo-card__actions, .abo-actions-bar, .ep-actionbar, .evm-hero__actions) :is(a, button) {
    white-space: normal !important; text-align: center !important; justify-content: center !important;
    line-height: 1.15 !important; overflow-wrap: break-word; box-sizing: border-box;
  }
  :is(.abo-card__actions, .ep-actionbar, .evm-hero__actions) > :is(a, button, form) > svg, .ep-actionbar svg { display: none !important; }
  .abo-card__actions :is(a, button) { font-size: 12px !important; padding: 8px 4px !important; min-height: 40px; display: inline-flex; align-items: center; }
  .ep-actionbar :is(a, button) { font-size: 12.5px !important; padding: 8px 6px !important; }
  .evm-hero__actions :is(a, button) { font-size: 12.5px !important; padding: 8px 6px !important; }
  /* --noico : icônes masquées pour laisser la place au texte (3 boutons sur 360 px) */
  .btn-row-1l--noico svg { display: none !important; }
}

/* ============================================================================
   Grilles de pastilles (04/11/2026) — même logique que les boutons :
   colonnes égales, texte jamais coupé (passe à la ligne), pastille seule sur
   la dernière ligne = toute la largeur.
   ============================================================================ */
.pill-grid, .ad-cat-row, .profil-quick-chips {
  display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px !important; align-items: stretch;
}
@media (min-width: 768px) {
  .pill-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .profil-quick-chips { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .ad-cat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.pill-grid > *, .ad-cat-row > *, .profil-quick-chips > * {
  width: 100% !important; max-width: none !important; min-width: 0 !important; margin: 0 !important;
  justify-content: center !important; text-align: center !important; box-sizing: border-box !important;
  white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.25 !important;
}
.pill-grid > * *, .ad-cat-row > * *, .profil-quick-chips > * * {
  white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: anywhere; max-width: 100% !important;
}
/* pastille seule sur la dernière ligne (2 colonnes) : toute la largeur */
.pill-grid > :nth-last-child(1 of :not(template)):nth-child(odd of :not(template)),
.ad-cat-row > :nth-last-child(1 of :not(template)):nth-child(odd of :not(template)),
.profil-quick-chips > :nth-last-child(1 of :not(template)):nth-child(odd of :not(template)) { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .pill-grid > :nth-last-child(1 of :not(template)):nth-child(odd of :not(template)),
  .profil-quick-chips > :nth-last-child(1 of :not(template)):nth-child(odd of :not(template)),
  .ad-cat-row > :nth-last-child(1 of :not(template)):nth-child(odd of :not(template)) { grid-column: auto; }
}
/* même hauteur pour tous les éléments d'une grille (boutons et pastilles) */
.cta-grid > :not(template):not([type=hidden]), .cta-grid > form > :not(template):not([type=hidden]),
.pill-grid > :not(template), .ad-cat-row > :not(template), .profil-quick-chips > :not(template) {
  align-self: stretch !important; height: auto !important; align-items: center;
}
/* les balises techniques ne prennent jamais de case */
.cta-grid template, .pill-grid template, .ad-cat-row template, .profil-quick-chips template,
.cta-grid > form > input[type=hidden] { display: none !important; }
/* onglets segmentés (Tous / Posts / Annonces…) : largeurs égales */
.af-home-feed__filters, .feed-pill-container { display: grid !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.af-home-feed__filters > *, .feed-pill-container > * { justify-content: center !important; text-align: center; min-width: 0; }
/* le dernier élément seul passe en pleine largeur, y compris quand c'est un bouton dans un <form> */
.cta-grid:not(.cta-grid--3):not(.cta-grid--4):not(.cta-grid--auto):not(.cta-grid--fit) > form:nth-last-child(1 of :not(template)):nth-child(odd of :not(template)) > button { grid-column: 1 / -1; }
@media (max-width: 767px) {
  .cta-grid--fit > :nth-last-child(1 of :not(template)):nth-child(odd of :not(template)),
  .cta-grid--fit > form:nth-last-child(1 of :not(template)):nth-child(odd of :not(template)) > button { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
  /* pastilles du profil : largeur naturelle, sur une ou deux lignes (comme avant) */
  .profil-quick-chips { display: flex !important; flex-wrap: wrap; gap: 6px !important; }
  .profil-quick-chips > * { width: auto !important; justify-content: flex-start !important; }
  /* boutons du profil (04/11, v4) : carte d'actions à droite, alignée en bas avec le nom.
     Rangée 1 : actions principales (Appeler plein, Écrire contour). Rangée 2 : actions secondaires
     en tuiles égales (icône au-dessus du texte). Chaque rangée = parts strictement égales. */
  .profil-header-wrap { align-items: flex-end !important; }
  .profil-header-actions.cta-grid--fit {
    display: flex !important; flex-direction: column !important; gap: 8px !important;
    width: 440px !important; flex: 0 0 440px !important; margin: 0 0 0 auto !important; padding: 0 0 4px !important; align-self: flex-end !important;
  }
  .pa-row { display: flex; gap: 8px; width: 100%; align-items: stretch; }
  .pa-row > form { display: contents !important; }
  .pa-row:not(:has(> a, > button, > form > button)) { display: none !important; }
  .pa-row > :not(template):not([type=hidden]):not(form), .pa-row > form > button {
    flex: 1 1 0 !important; width: auto !important; min-width: 0 !important; margin: 0 !important; box-sizing: border-box !important;
    align-self: stretch !important; height: auto !important; display: flex !important; align-items: center !important; justify-content: center !important; text-align: center !important;
    border-radius: 12px !important; box-shadow: none !important; line-height: 1.2 !important; white-space: normal !important;
  }
  .pa-row span { white-space: normal !important; }
  .pa-row--primary > :not(template):not([type=hidden]):not(form), .pa-row--primary > form > button { flex-direction: row !important; gap: 7px !important; min-height: 42px !important; padding: 0 12px !important; font-size: 13.5px !important; }
  .pa-row--secondary > :not(template):not([type=hidden]):not(form), .pa-row--secondary > form > button { flex-direction: column !important; gap: 5px !important; min-height: 62px !important; padding: 8px 6px !important; font-size: 12px !important; }
  .pa-row svg { width: 17px !important; height: 17px !important; flex-shrink: 0; }
  .profil-header-actions.cta-grid--fit .profil-btn-secondary { background: #fff !important; border: 1px solid #DCE6EA !important; color: #0f2f3f !important; }
  .profil-header-actions.cta-grid--fit .profil-btn-secondary:hover { border-color: #9DC3D3 !important; background: #F6FAFB !important; }
  .profil-header-actions.cta-grid--fit .profil-btn-accent { background: #fff !important; color: #C2185B !important; border: 1px solid #F3B4CD !important; }
  .profil-header-actions.cta-grid--fit .profil-btn-accent svg { color: #C2185B !important; }
}
@media (max-width: 767px) {
  /* mobile : les rangées sont transparentes, la grille 2 colonnes reste la même */
  .pa-row { display: contents !important; }
  .pa-row--secondary > :nth-last-child(1 of :not(template):not([type=hidden])):nth-child(odd of :not(template):not([type=hidden])),
  .pa-row--secondary > form:nth-last-child(1 of :not(template):not([type=hidden])):nth-child(odd of :not(template):not([type=hidden])) > button { grid-column: 1 / -1; }
}

/* =====================================================================
   Sobriété (08/11) : pas de verre dépoli, pas de halo ni de lueur, pas de
   dégradé décoratif, pas de pastille translucide. Filet de sécurité pour les
   classes Tailwind écrites dans les gabarits ; le reste est corrigé à la source.
   ===================================================================== */
[class*="backdrop-blur"], [style*="backdrop-filter"] { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.bg-white\/95, .bg-white\/90, .bg-white\/80, .bg-white\/70 { background-color: #fff !important; }
[class*="shadow-pink"], [class*="shadow-brand"], [class*="shadow-sky"], [class*="shadow-purple"] { box-shadow: none !important; }
/* pastilles « verre » sur fond coloré : puces pleines, claires */
.bg-white\/30, .bg-white\/20, .bg-white\/15 { background-color: #fff !important; color: #073A50 !important; }
.hover\:bg-white\/30:hover { background-color: #E3F0F5 !important; }
/* dégradés Tailwind : aplat (clair → blanc, soutenu → bleu Contacto) */
[class*="bg-gradient-to-"] { background-image: none !important; background-color: #fff; }
[class*="bg-gradient-to-"][class*="from-["], [class*="bg-gradient-to-"][class*="from-blue-"] { background-color: #006289 !important; }
[class*="bg-gradient-to-"][class*="from-amber-"] { background-color: #B45309 !important; }
/* Bandeau « Ajouter au bureau » : filet neutre, ombre discrète (pas de bordure rose ni de grande lueur) */
.pwa-install-safe-area > div { border-color: #E3EBEE !important; box-shadow: 0 4px 14px -8px rgba(13, 43, 58, .35) !important; }

/* Bouton secondaire « Renvoyer l'e-mail de validation » (connexion + inscription) */
.btn-resend {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px; padding: 0 16px;
  background: #fff; color: #006289; border: 1.5px solid #006289; border-radius: .75rem;
  font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer;
  transition: background-color .15s;
}
.btn-resend:hover { background: #EDF3F5; }
.btn-resend:focus-visible { outline: 2px solid #50A8CB; outline-offset: 2px; }
.btn-resend:disabled { opacity: .5; cursor: not-allowed; }

/* Bouton unique « Scanner » (18/11) : petite fenêtre QR code / Carte de visite (js/scanner_choix.js).
   Mobile : feuille en bas de l'écran ; ordinateur : fenêtre centrée. Les 2 choix restent sur une ligne. */
.scx[hidden] { display: none !important; }
.scx { position: fixed; inset: 0; z-index: 1000003; display: flex; align-items: flex-end; justify-content: center; }
.scx__fond { position: absolute; inset: 0; background: rgba(7, 58, 80, .55); }
.scx__carte { position: relative; width: 100%; max-width: 28rem; background: #fff; border-radius: 20px 20px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 40px rgba(7, 58, 80, .25); }
@media (min-width: 640px) {
  .scx { align-items: center; padding: 16px; }
  .scx__carte { border-radius: 20px; padding: 22px; }
}
.scx__tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.scx__titre { margin: 0; font-size: 1.0625rem; font-weight: 800; color: #0f172a; }
.scx__x { width: 40px; height: 40px; flex: none; border: 0; border-radius: 999px; background: #EDF3F5; color: #073A50;
  font-size: 1.5rem; line-height: 1; cursor: pointer; }
.scx__choix { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scx__opt { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 112px;
  padding: 14px 8px; border: 1.5px solid #cfe0e7; border-radius: 16px; background: #f7fbfc; color: #006289;
  font: inherit; text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s; }
.scx__opt:hover, .scx__opt:focus-visible { border-color: #E71D72; background: #fff5f9; outline: none; }
.scx__opt:active { transform: scale(.98); }
.scx__opt-t { font-weight: 800; font-size: .9375rem; color: #0f172a; }
.scx__opt-s { font-size: .75rem; color: #64748b; }
.scx__file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.scx__rgpd { margin: 12px 0 0; font-size: .75rem; line-height: 1.4; color: #64748b; }
.scx__rgpd a { text-decoration: underline; color: #006289; }
.scx__err { margin: 10px 0 0; font-size: .8125rem; color: #b91c1c; }
.scx__manuel { display: block; width: 100%; margin-top: 12px; padding: 10px; border: 0; background: none;
  color: #006289; font: inherit; font-size: .875rem; font-weight: 600; text-decoration: underline; cursor: pointer; }
.scx__manuel[hidden] { display: none; }

/* ── Bouton « Rechercher » des champs de recherche (js/search_go.js) ─────────── */
.ct-search-go { display: flex; align-items: stretch; width: 100%; min-width: 0; container-type: inline-size; }
.ct-search-go > input { flex: 1 1 auto; min-width: 0; width: auto !important; margin: 0;
  border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.ct-search-go__btn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 40px; padding: 0 12px; margin: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600;
  color: #fff; background: #006289; border: 1px solid #006289; border-radius: 0 10px 10px 0; line-height: 1; }
/* Champ + bouton = un seul bloc : coins droits du champ carrés, même hauteur, bordure continue (le JS pose aussi les coins en inline, car forms.css est plus spécifique) */
html body .ct-search-go.ct-search-go > input { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
html body .ct-search-go.ct-search-go > .ct-search-go__btn { border-radius: 0 var(--ct-go-r, 10px) var(--ct-go-r, 10px) 0 !important; box-sizing: border-box; min-height: 40px; }
.ct-search-go__btn:hover { background: #004f6e; border-color: #004f6e; }
.ct-search-go__btn:focus-visible { outline: 2px solid #006289; outline-offset: 2px; }
/* Loupe toujours visible, blanche, centrée : immunisée contre les règles « .xxx svg » des loupes de champ voisines */
html body .ct-search-go .ct-search-go__btn .ct-search-go__ico { position: static !important; transform: none !important; inset: auto !important;
  display: block !important; flex: 0 0 18px; width: 18px !important; height: 18px !important; margin: 0 !important; color: #fff !important; opacity: 1 !important; pointer-events: none; }
.ct-search-go__txt { display: none; white-space: nowrap; }
@container (min-width: 420px) { .ct-search-go__txt { display: inline; } }

/* Tuile d'événement cliquable (lien étiré) : un clic n'importe où sur .tile-card suit le lien .tile-link
   (même URL que le bouton « Activer / Rejoindre »). Les autres boutons de la tuile restent au-dessus. */
.tile-card { position: relative; }
.tile-card .tile-link { position: static; }
.tile-card .tile-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; cursor: pointer; z-index: 1; }
.tile-card .tile-link:focus-visible { outline: none; }
.tile-card .tile-link:focus-visible::after { outline: 2px solid #006289; outline-offset: 2px; }
.tile-card a:not(.tile-link), .tile-card button:not(.tile-link) { position: relative; z-index: 2; }
/* Le « active:scale » du bouton déplacerait aussi la zone cliquable étirée : on le neutralise. */
.tile-card .tile-link:active { transform: none !important; }

/* Annonce « Publier sans mon nom » vue par son auteur (décision du 21/11) : mention discrète. */
.ann-sansnom-moi { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; font-weight: 500; font-style: normal; color: #64748b; }
/* Annonce non publiée qui a des matchs : ils réapparaîtront à la publication (21/11). */
.ann-matchs-attente { font-size: 12.5px; line-height: 1.4; font-weight: 600; color: #006289; }

/* Groupes de boutons égalisés et symétriques (décision d'Elliott du 21/11) : pas forcément sur une ligne,
   mais mêmes largeurs, grille régulière, jamais de bouton orphelin plus large. */
/* Pointage des badges : pastilles présents / visiteurs / exposants en 3 colonnes égales */
html body #presenceFilterPills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html body #presenceFilterPills > .presence-filter-pill { justify-content: center; min-width: 0; white-space: nowrap; }
@media (min-width: 768px) { html body #presenceFilterPills { grid-template-columns: repeat(3, minmax(120px, 1fr)); } }
/* Mon QR code : « Scanner » + 2 boutons = 3 colonnes égales sur ordinateur aussi (plus de bouton pleine largeur au-dessus) */
@media (min-width: 640px) {
  html body .qr-actions-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; max-width: 36rem; }
  html body .qr-actions-3 > * { grid-column: auto !important; }
}
