/* Thème commun de /entreprise-existante/ et /contrats-publics/ (2026-10-22 et 24) : fond des tours, carte de
   recherche translucide, boîtes, pilules. Sorti du gabarit le 24-10 pour servir aux deux pages sans copie.
   ⚠️ Route apex : incorp-router, FORM_EXACT_ASSETS (/css/existante.css). */
body { font-family: 'Inter', sans-serif; background: #fff; color: #0b1847; }
/* La photo des tours et le halo bleuté des pages Québec inc. / Canada inc. (index.template.html, .landing-hero-wrap). */
.existante-fond { position: relative; }
.existante-fond::before,
.existante-fond::after {
    content: ''; position: absolute; top: -7rem; left: 50%; transform: translateX(-50%);
    width: 100vw; height: calc(120vh + 7rem); pointer-events: none; z-index: -1;
}
.existante-fond::before {
    background: url('/img/hero-towers.jpg') center / cover no-repeat;
    /* 25-10 : un tout petit peu moins blanche, un peu plus de couleur — mêmes effets (fondu, halo, flou).
       `.existante-fond` n'existe que sur /entreprise-existante/ : aucune autre page ne bouge. Avant : 0.10 et grayscale(1). */
    opacity: 0.14;
    filter: grayscale(0.75) sepia(0.35) hue-rotate(185deg) saturate(1.6) contrast(1.1);
    /* 2026-11-15 : le fondu commence SOUS le premier écran (100vh, plus ce que la boîte dépasse en haut au téléphone) — le premier
       écran est alors la photo entière, la même au pixel que /creer-une-entreprise (template/index.template.html, même boîte). */
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100vh + 2.6rem), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 calc(100vh + 2.6rem), transparent 100%);
}
.existante-fond::after { background: radial-gradient(1200px 700px at 15% 40%, #e8eefc 0%, transparent 60%); }
.existante-titre, .existante-titre b { color: #32325d; }
.existante-titre b { font-weight: 700; }   /* 12-11 : l'objet en gras, comme « Créer une Québec inc. » ([data-titre-page] b) */

/* ══ REFONTE VISUELLE (2026-10-22 : « trop basique, manque de professionnalisme ») ═════════════════════
   Carte de recherche : verre translucide à filet fin, loupe dans le champ, anneau de focus animé, aide dessous.
   Boîtes : plus petites et plus nettes (dégradé blanc → bleu pâle, ombres douces, pastille d'icône en relief),
   bouton pilule bleu nuit à flèche, reflet qui balaie au survol. Les ids et data-attributs du script
   (js/entreprise-existante.js, js/recherche-entreprise.js) sont inchangés. */
.existante-carte {
    position: relative;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.92) 0%, rgba(244, 247, 253, 0.88) 100%);
    border: 1px solid rgba(11, 24, 71, 0.10); border-radius: 18px;
    box-shadow: 0 1px 2px rgba(11, 24, 71, 0.04), 0 18px 48px -18px rgba(11, 24, 71, 0.22);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.existante-carte::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(90deg, transparent 10%, rgba(30, 64, 175, 0.35) 50%, transparent 90%) top / 100% 1px no-repeat;
}
.existante-carte:focus-within { border-color: rgba(30, 64, 175, 0.28); box-shadow: 0 1px 2px rgba(11, 24, 71, 0.04), 0 24px 56px -18px rgba(30, 64, 175, 0.30); }
.existante-etiquette { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(11, 24, 71, 0.55); margin-bottom: 0.6rem; }
.existante-recherche { position: relative; }
.existante-loupe {
    /* ⛔ Centrée sur la BARRE, pas sur le bloc : la liste des résultats s'ouvre dans .existante-recherche et l'allongeait —
       avec top: 50 %, la loupe descendait au milieu de la liste (2026-10-25). Moitié de la hauteur du champ. */
    position: absolute; left: 1rem; top: 1.625rem; width: 1.15rem; height: 1.15rem; transform: translateY(-50%);
    color: rgba(11, 24, 71, 0.45); pointer-events: none; transition: color 0.2s ease, transform 0.2s ease;
}
/* ⚠️ css/style.css pose padding, bordure et coins des input[type="text"] en !important : on les surpasse de même. */
.existante-carte .form-input.existante-champ {
    height: 3.25rem !important; padding: 0 1rem 0 3rem !important; font-size: 1rem !important; font-weight: 500; color: #0b1847;
    background: #fff !important; border: 1px solid rgba(11, 24, 71, 0.16) !important; border-radius: 14px !important;
    box-shadow: inset 0 1px 2px rgba(11, 24, 71, 0.04), 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    transition: border-color 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}
.existante-carte .form-input.existante-champ::placeholder { color: rgba(11, 24, 71, 0.38); font-weight: 400; }
.existante-carte .form-input.existante-champ:hover { border-color: rgba(11, 24, 71, 0.30) !important; }
.existante-carte .form-input.existante-champ:focus {
    outline: none !important; border-color: #1e40af !important;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.14), 0 8px 24px -12px rgba(30, 64, 175, 0.45) !important;
}
.existante-recherche:focus-within .existante-loupe { color: #1e40af; transform: translateY(-50%) scale(1.08); }
.existante-aide { margin: 0.65rem 0.25rem 0; font-size: 12px; color: rgba(11, 24, 71, 0.5); display: flex; align-items: center; gap: 0.4rem; }
.existante-aide::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #1e40af; opacity: 0.6; }
/* La liste de suggestions du composant commun, posée juste sous le champ (js/recherche-entreprise.js). */
.existante-recherche .recherche-entreprise-liste { margin-top: 0.4rem; border-radius: 12px; box-shadow: 0 18px 44px -14px rgba(11, 24, 71, 0.35); }
.existante-pilule {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    border-radius: 999px; padding: 0.55rem 1.2rem; font-weight: 600; font-size: 0.875rem;
    background: #0b1847; color: #fff; border: 1px solid #0b1847; cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.existante-pilule:hover:not(:disabled) { background: #1a2a6b; transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(11, 24, 71, 0.6); }
.existante-pilule:disabled { opacity: 0.5; cursor: not-allowed; }
.existante-pilule-claire { background: #fff; color: #0b1847; }
.existante-pilule-claire:hover:not(:disabled) { background: #f4f7fd; }
:is([data-existante-fenetre], [data-lead-fenetre]) .btn-incopty:disabled { opacity: 0.5; cursor: not-allowed; }

/* ⛔ Les trois boîtes sous la recherche sont retirées (2026-10-25) : leurs styles avec elles.
   Sous la société choisie : « Connexion », le service principal (pilule claire), puis le ⋮ poussé à droite, à peine
   visible, qui ouvre les autres services. */
.existante-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.existante-actions .existante-pilule { text-decoration: none; }
.existante-plus-place { position: relative; margin-left: auto; }
.existante-plus {
    display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px;
    background: transparent; border: 0; cursor: pointer; color: rgba(11, 24, 71, 0.72);   /* plus foncé (25-10) */
    transition: color 0.15s ease, background 0.15s ease;
}
.existante-plus svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.existante-plus:hover, .existante-plus[aria-expanded="true"] { color: #0b1847; background: #eef2fb; }
.existante-plus:focus-visible { outline: 2px solid #6772e5; outline-offset: 2px; }
.existante-menu {
    position: absolute; right: 0; top: calc(100% + 0.35rem); z-index: 30; min-width: 12rem; padding: 0.35rem;
    background: #fff; border: 1px solid rgba(11, 24, 71, 0.10); border-radius: 12px;
    box-shadow: 0 18px 44px -14px rgba(11, 24, 71, 0.35);
}
.existante-menu-item {
    display: block; width: 100%; text-align: left; border: 0; background: none; cursor: pointer; font: inherit;
    padding: 0.55rem 0.75rem; border-radius: 8px; font-size: 0.875rem; color: #0b1847; text-decoration: none; white-space: nowrap;
}
.existante-menu-item:hover, .existante-menu-item:focus-visible { background: #f4f7fd; outline: none; }
/* 28-10 : un domaine = UNE ligne (coupée de « … » si l'écran est trop étroit) ; son explication s'ouvre au survol,
   dans LA bulle du site (.iq-bulle, css/style.css — habillage) ; ici seulement le placement, sous le libellé.
   07-11 : bornée par la LIGNE du domaine (100 %), pas par l'écran — à 375 px, « 100vw - 4rem » partait de 108 px et finissait
   à 419 : la bulle, même cachée, faisait défiler le fil de côté. Sur un ordinateur, les 30 rem bornent toujours. */
.contrats-domaine-bulle { position: absolute; left: 31px; top: calc(100% + 4px); z-index: 20; width: max-content;
    max-width: min(30rem, calc(100% - 31px)); white-space: normal; font-size: 14px; line-height: 1.5;
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .1s ease, visibility 0s linear .1s; }
.contrats-domaine-bulle::after { content: ''; position: absolute; top: -6px; left: 18px; width: 10px; height: 10px;
    border-width: 1px 0 0 1px; transform: rotate(45deg); }
/* 30-10 (: « plein de bulles ouvertes en même temps », « elles se ferment difficilement ») : UNE bulle à la fois.
   Plus de :focus-within — une case cochée À LA SOURIS gardait le focus, donc SA bulle, pendant que la souris en ouvrait une
   autre. Le clavier garde la sienne (:focus-visible). Elle s'ouvre après un temps d'arrêt (on parcourt la liste sans la
   couvrir de bulles) et se ferme tout de suite. Même règle pour l'aperçu des pièces jointes. */
.contrats-choix:hover .contrats-domaine-bulle, .contrats-choix:has(input:focus-visible) .contrats-domaine-bulle,
.contrats-piece:hover .contrats-piece-bulle, .contrats-piece:focus-visible .contrats-piece-bulle {
    opacity: 1; visibility: visible; transition: opacity .15s ease .35s, visibility 0s linear .35s; }
@media (prefers-reduced-motion: reduce) { .existante-loupe, .existante-plus { transition: none; } }
/* La liste des rôles (13-10) : dessinée, son chevron à elle, décalé vers la gauche (1 rem du bord, au lieu
   de la flèche native collée au bord). */
.existante-liste {
    -webkit-appearance: none; appearance: none; width: 100%;
    padding: 0.65rem 2.75rem 0.65rem 0.9rem; font-size: 0.875rem; color: #0b1847;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2332325d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E") right 1rem center / 1rem no-repeat;
    border: 1px solid rgba(11, 24, 71, 0.18); border-radius: 10px; cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.existante-liste:hover { border-color: rgba(11, 24, 71, 0.35); }
.existante-liste:focus { outline: none; border-color: #6772e5; box-shadow: 0 0 0 3px rgba(103, 114, 229, 0.18); }

/* ══ LA RECHERCHE SEULE (2026-10-24 : « seulement la barre, avec son exemple ») ══════════════════════════════════
   Ni carte autour, ni étiquette visible, ni aide : la barre porte l'ombre et l'anneau de focus elle-même. */
.existante-carte.existante-carte-nue { padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.existante-carte.existante-carte-nue:focus-within { box-shadow: none; }
.existante-carte-nue .existante-loupe { top: 1.75rem; }   /* la barre seule fait 3,5 rem */
.existante-carte-nue .form-input.existante-champ { height: 3.5rem; font-size: 16px; border-radius: 16px !important; box-shadow: 0 1px 2px rgba(11, 24, 71, 0.05), 0 16px 40px -18px rgba(11, 24, 71, 0.28) !important; }

/* ══ « CONTRATS PUBLICS » — l'assistant en chat (2026-10-24 : « un chat à la ChatGPT, avec notre formulaire de
   questions superposé ») : fil centré, bulles, une carte-question à la fois, saisie en bas. Bleu et blanc des formulaires. */
/* 25-10 : de l'air entre l'en-tête et la fenêtre de l'assistant. 26-10 : le MÊME air en bas — la barre de saisie ne
   touche plus le bord de l'écran. La page fait la hauteur de l'écran et la fenêtre en prend le reste (flex: 1), marges
   comprises, quelle que soit la hauteur de l'en-tête : c'est le fil qui défile DEDANS (js/contrats-publics.js le fait déjà),
   jamais la page. Mesuré sur la prod : 28 px en haut, 28 px en bas, zéro débordement. */
.contrats-corps { height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: #f8fafc; }
.contrats-app, .contrats-fenetre { --bleu: #2563eb; --bleu-fonce: #1d4ed8; --bleu-pale: #eff6ff; --trait: #e5e7eb; --doux: #6b7280;
    /* ⛔ 06-11 (: « plus petit, plus raffiné, la police de la fenêtre de commande ») : la police SYSTÈME de --iq-police
       (css/questionnaire.css, celle de #entity-modal), un cran plus petit partout. Changer l'une = changer l'autre. */
    --police: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, system-ui, sans-serif;
    font-family: var(--police); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.contrats-app {
    flex: 1; display: flex; flex-direction: column; width: 100%; max-width: 1080px; margin: 28px auto; min-height: 360px; }
/* 28-10 : plus d'encadré — ni en-tête « Assistant », ni bordure, ni ligne de source. Les bornes (1 080 px depuis le 28-10, marges)
   restent, invisibles ; ne se voit que le fil. Plus de barre de saisie non plus (28-10) : on coche, on continue. */
@media (max-width: 640px) { .contrats-app { margin: 12px auto; } }
.contrats-fenetre[hidden] { display: none; }
.contrats-fenetre-corps { text-align: center; }
.contrats-fenetre-texte { margin: 0; font-size: 14px; line-height: 21px; color: #374151; }
.contrats-fenetre .existante-fenetre-bouton { display: flex; align-items: center; justify-content: center; padding: 0; text-decoration: none; }
.contrats-fil { flex: 1; overflow-y: auto; padding: 26px 22px 48px; scroll-behavior: smooth; min-height: 0; }
.contrats-msg { display: flex; gap: 10px; margin: 0 0 14px; }
.contrats-msg.client { justify-content: flex-end; }
.contrats-avatar { flex: none; width: 24px; height: 24px; border-radius: 999px; background: var(--bleu-pale); color: var(--bleu); display: grid; place-items: center; font-size: 9.5px; font-weight: 700; letter-spacing: .02em; }
.contrats-msg.assistant .contrats-bulle { flex: 1; min-width: 0; padding-top: 2px; font-size: 14px; line-height: 20px; color: #111827; }
.contrats-msg.client .contrats-bulle { max-width: 80%; background: var(--bleu); color: #fff; padding: 7px 13px; border-radius: 16px 16px 4px 16px; font-size: 14px; line-height: 20px; }
.contrats-texte { margin: 0; }
.contrats-carte { margin-top: 2px; border: 1px solid var(--trait); border-radius: 14px; padding: 18px 20px 16px; background: #fff; max-width: 960px; box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04); }
.contrats-etape { margin: 0 0 5px; font-size: 12px; color: var(--doux); }
.contrats-q { margin: 0 0 3px; font-size: 15px; line-height: 21px; font-weight: 600; }
.contrats-aide { margin: 0 0 10px; font-size: 13px; line-height: 19px; color: var(--doux); }
.contrats-choix { position: relative; display: flex; align-items: center; gap: 11px; min-height: 36px; padding: 3px 0; cursor: pointer; }
.contrats-choix input { position: absolute; opacity: 0; pointer-events: none; }
.contrats-choix > span:not(.contrats-rond):not(.iq-bulle) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contrats-choix small { display: block; font-size: 12px; line-height: 16px; color: var(--doux); }
.contrats-rond { flex: none; width: 18px; height: 18px; border-radius: 999px; border: 1.5px solid #c4c8cf; display: grid; place-items: center; transition: border-color .15s, background .15s; }
.contrats-rond::after { content: ''; width: 7px; height: 7px; border-radius: 999px; background: #fff; transform: scale(0); transition: transform .12s; }
.contrats-rond.carre { border-radius: 6px; }
.contrats-rond.carre::after { width: 10px; height: 6px; border-radius: 0; background: none; border: solid #fff; border-width: 0 0 2px 2px; transform: scale(0) rotate(-45deg); margin-top: -2px; }
.contrats-choix:hover .contrats-rond { border-color: var(--bleu); }
.contrats-choix input:checked + .contrats-rond { background: var(--bleu); border-color: var(--bleu); }
.contrats-choix input:checked + .contrats-rond::after { transform: scale(1); }
.contrats-choix input:checked + .contrats-rond.carre::after { transform: scale(1) rotate(-45deg); }
.contrats-choix input:focus-visible + .contrats-rond { outline: 3px solid #bfdbfe; outline-offset: 2px; }
.contrats-principal { display: block; width: 100%; height: 36px; margin-top: 12px; border: 0; border-radius: 999px; background: var(--bleu); color: #fff; font: 500 14px var(--police); text-align: center; line-height: 36px; cursor: pointer; text-decoration: none; }
.contrats-principal:hover { background: var(--bleu-fonce); }
/* 28-10 : « Continuer » court, à droite ; « Précédent » à gauche — plus de bouton sur toute la largeur. */
.contrats-boutons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.contrats-boutons .contrats-principal { width: auto; min-width: 160px; margin: 0 0 0 auto; padding: 0 28px; }
/* 07-11 : sur un téléphone, « Précédent » et « Afficher plus » ne laissaient plus de place à « Continuer » (coupé au bord à 375 px) :
   il passe dessous, sur toute la largeur de la carte. Au-dessus de 560 px, rien ne change. */
@media (max-width: 560px) { .contrats-boutons .contrats-principal { flex-basis: 100%; margin-left: 0; } }
.contrats-precedent, .contrats-plus { flex: none; height: 36px; padding: 0 18px; }
.contrats-choix[hidden] { display: none; }
a.contrats-principal { max-width: 240px; }
.contrats-erreur { margin: 8px 0 0; font-size: 12.5px; color: #b91c1c; }
.contrats-avis { margin-top: 8px; border: 1px solid var(--trait); border-radius: 12px; padding: 12px 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.contrats-avis:hover { border-color: #bfdbfe; box-shadow: 0 8px 22px -16px rgba(37, 99, 235, 0.5); }
.contrats-avis-titre { font-weight: 600; font-size: 13.5px; line-height: 19px; }   /* 28-10 : 15 → 14 px ; 06-11 : 13,5 */
.contrats-avis-titre a { color: #111827; text-decoration: none; }
.contrats-avis-titre a:hover { color: var(--bleu); }
.contrats-avis-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; min-width: 0; font-size: 12.5px; color: var(--doux); }
.contrats-avis-bas { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-top: 8px; }   /* 30-10 : 4 → 8 px, la date moins collée au titre */
/* 26-10 : « Date limite : » en NOIR ; la date seule en rouge quand l'échéance est dans 3 jours ou moins. */
.contrats-delai { margin-left: auto; font-size: 12.5px; color: #111827; white-space: nowrap; }
/* 28-10 : le rouge d'ERREUR des formulaires (--iq-erreur, css/questionnaire.css), même taille et même graisse. */
.contrats-date.urgent { color: #dc2626; }
/* 30-10 : les pièces jointes — sections du SEAO, tuiles de MÊME structure (icône, nom sur 2 lignes, type · pages),
   deux colonnes, une seule rangée visible tant que « Afficher plus » n'est pas cliqué. L'aperçu = LA bulle du site (.iq-bulle). */
.contrats-pieces { margin-top: 14px; padding-top: 12px; border-top: 1px solid #f1f5f9; }
.contrats-pieces-titre { margin-bottom: 10px; font-size: 12px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--doux); }
/* 30-10 : une COLONNE par section, trois au plus par rangée et jamais plus d'un tiers de la largeur — même seule ;
   le mini-titre garde sa couleur, sa taille et son style, sans pastille, avec plus d'air dessous. */
/* 30-10 (soir) : une colonne a « juste la largeur » de son nom le plus long (entre 180 et 320 px, « … » au-delà),
   et toutes ses tuiles ont CETTE largeur ; les colonnes se suivent et passent à la ligne. */
.contrats-pieces-colonnes { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 24px; }
.contrats-pieces-tete { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: #111827; }
.contrats-pieces-section { flex: 0 1 auto; min-width: 180px; max-width: 320px; }
.contrats-pieces-liste { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; }
/* 30-10 : toutes les tuiles ont EXACTEMENT la même taille — largeur de la colonne, 44 px de haut (8 px d'air dessus et dessous), nom sur UNE ligne, sans gras (le nom complet est dans la bulle). */
.contrats-piece { position: relative; display: flex; align-items: center; box-sizing: border-box; height: 44px; gap: 8px; padding: 8px 10px; border: 1px solid var(--trait); border-radius: 8px; background: #fafafa; color: #111827; text-decoration: none; transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; }
.contrats-piece:hover, .contrats-piece:focus-visible { z-index: 10; border-color: #bfdbfe; background: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px -10px rgba(17, 24, 39, .35); outline: none; }
.contrats-piece-icone { flex: none; width: 13px; height: 17px; }
.contrats-piece-texte { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.contrats-piece-nom { overflow: hidden; font-size: 11.5px; line-height: 13px; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }
.contrats-piece-sous { min-height: 12px; overflow: hidden; font-size: 10px; line-height: 12px; color: var(--doux); white-space: nowrap; text-overflow: ellipsis; }
.contrats-piece-fleche { flex: none; width: 12px; height: 12px; color: #9ca3af; }
.contrats-piece:hover .contrats-piece-fleche { color: var(--bleu); }
.contrats-piece-bulle { position: absolute; left: 0; top: calc(100% + 8px); z-index: 20; width: max-content; min-width: 100%; max-width: min(26rem, calc(100vw - 3rem)); padding: 0.7rem 0.9rem; font-size: 13px; line-height: 1.5; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .1s ease, visibility 0s linear .1s; }
.contrats-piece-bulle::after { content: ''; position: absolute; top: -6px; left: 18px; width: 10px; height: 10px; border-width: 1px 0 0 1px; transform: rotate(45deg); }
.contrats-piece-ligne { display: flex; gap: 10px; }
.contrats-piece-cle { flex: none; width: 4.2rem; color: var(--doux); }
.contrats-piece-seao { display: block; margin-top: 4px; }
.contrats-pieces.replie .contrats-en-trop { display: none; }
/* 30-10 : « Afficher plus (n) » = un TEXTE gris cliquable, discret, CENTRÉ, avec de l'air au-dessus — plus de bouton à bordure. */
.contrats-pieces-plus { display: block; margin: 14px auto 0; padding: 0; border: 0; background: none; color: var(--doux); font: 400 12px var(--police); cursor: pointer; }
.contrats-pieces-plus:hover { color: var(--bleu); text-decoration: underline; }
/* 07-11 : sur un téléphone, la tuile prend toute la largeur : son aperçu n'en sort plus (« 100vw - 3rem » finissait à 399 px sur 375),
   et un nom de fichier sans espace (« 20261019_52604TTB_60DVC_R0_AO_PP7.pdf ») s'y coupe au lieu de déborder. */
@media (max-width: 640px) {
    .contrats-pieces-section { flex: 1 1 100%; max-width: none; }
    .contrats-piece-bulle { max-width: 100%; overflow-wrap: anywhere; }
}
/* ⛔ 07-11 : le SOMMAIRE de l'avis (deux phrases), sous le titre et la date, au-dessus des pièces jointes ; un filet le
   sépare de l'en-tête de la carte, et les pièces qui suivent n'en tracent pas un second. */
.contrats-avis-sommaire { margin: 12px 0 0; padding-top: 11px; border-top: 1px solid #f1f5f9; font-size: 13.5px; line-height: 20px; color: #374151; }
.contrats-avis-sommaire + .contrats-pieces { margin-top: 12px; padding-top: 0; border-top: 0; }
/* Forfaits ouverts : l'avis se CLIQUE (ou Entrée) pour ouvrir la fenêtre des forfaits. */
.contrats-avis-cliquable { cursor: pointer; }
.contrats-avis-cliquable:focus-visible { outline: 3px solid #bfdbfe; outline-offset: 2px; }
/* « N appels d'offres » de la phrase des résultats : du texte tant que la liste est entière, un lien bleu quand un avis est seul. */
.contrats-retour-liste { display: inline; padding: 0; border: 0; background: none; font: inherit; color: var(--bleu); cursor: pointer; text-underline-offset: 2px; }
.contrats-retour-liste:hover { text-decoration: underline; }
.contrats-retour-liste:disabled { color: inherit; cursor: text; text-decoration: none; }
/* ⛔ 06-11 : plus de pagination numérotée ; « Afficher plus », centré sous la liste, ajoute les 10 avis suivants. */
.contrats-plus-avis { display: block; margin: 14px auto 2px; }
.contrats-plus-avis[hidden] { display: none; }
.contrats-plus-avis:disabled { opacity: .6; cursor: default; }
.contrats-note { margin: 10px 0 0; font-size: 12.5px; color: var(--doux); }
.contrats-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.contrats-secondaire { border: 1px solid var(--trait); background: #fff; color: #111827; border-radius: 999px; padding: 6px 14px; font: 500 13px var(--police); cursor: pointer; }
.contrats-secondaire:hover { border-color: var(--bleu); color: var(--bleu); }
.contrats-points span { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 999px; background: #c4c8cf; animation: contrats-points 1s infinite; }
.contrats-points span:nth-child(2) { animation-delay: .15s; } .contrats-points span:nth-child(3) { animation-delay: .3s; }
@keyframes contrats-points { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .contrats-points span { animation: none; } .contrats-fil { scroll-behavior: auto; } }

/* ══ LE TITRE ET LA RECHERCHE PLUS BAS (2026-10-25) ══════════════════════════════════════════════════════════════ */
.existante-centre { padding-top: clamp(6rem, 26vh, 15rem); min-height: calc(100vh - 4rem); }

/* ══ LE PIED DE PAGE, EN CLAIR (2026-10-25 : « plus clair, comme le thème du titre, un peu de transparence ») ══════
   Verre blanc translucide sur la photo des tours, filet fin, texte bleu-gris du titre (#32325d). */
.existante-pied {
    position: relative; z-index: 1;
    background: rgba(255, 255, 255, 0.62);
    -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
    border-top: 1px solid rgba(50, 50, 93, 0.08);
    color: rgba(50, 50, 93, 0.78);
}
.existante-pied-titre { color: #32325d; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.existante-pied a[data-lien-pied] { color: rgba(50, 50, 93, 0.78); font-size: 13.5px; text-decoration: none; transition: color 0.15s ease; }
.existante-pied a[data-lien-pied]:hover { color: #1e40af; }
.existante-pied-bas { border-top: 1px solid rgba(50, 50, 93, 0.08); padding-top: 24px; text-align: center; }
.existante-pied-droits { color: rgba(50, 50, 93, 0.55); font-size: 12.5px; margin: 0; }

/* ══ « Connexion à mon compte » (2026-10-25 : « plus beau, structuré, centré, professionnel ») ══════════════════════
   En-tête centré ; la société en carte ; chaque question en section à filet, son texte centré, « Oui » / « Non » en deux
   pastilles ; le prénom, le nom et l'attestation dans « Vos renseignements » ; un seul bouton plein en bas. */
.existante-fenetre-carte { max-width: 30rem; border-radius: 20px; border-color: rgba(11, 24, 71, 0.08); box-shadow: 0 30px 80px -24px rgba(11, 24, 71, 0.45); overflow: hidden; }
.existante-fenetre-tete { position: relative; padding: 1.4rem 3.25rem 1.1rem; text-align: center; border-bottom: 1px solid rgba(11, 24, 71, 0.07); }
.existante-fenetre-tete h3 { margin: 0; font-size: 1.125rem; font-weight: 650; color: #0b1847; letter-spacing: -0.01em; }
.existante-fenetre-tete .modal-close { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); width: 2rem; height: 2rem; border-radius: 999px; font-size: 1.35rem; line-height: 1; display: grid; place-items: center; transition: background 0.15s ease, color 0.15s ease; }
.existante-fenetre-tete .modal-close:hover { background: #f1f4fa; }
.existante-fenetre-corps { padding: 1.5rem 1.75rem 1.6rem; }
.existante-fenetre-societe { text-align: center; padding: 0.85rem 1rem; border-radius: 14px; background: linear-gradient(160deg, #f7f9fe 0%, #eef2fb 100%); border: 1px solid rgba(30, 64, 175, 0.08); }
.existante-fenetre-societe-nom { margin: 0; font-size: 0.95rem; font-weight: 650; color: #0b1847; overflow-wrap: anywhere; }
.existante-fenetre-societe-sous { margin: 0.2rem 0 0; font-size: 0.75rem; color: rgba(11, 24, 71, 0.55); }
.existante-fenetre-formulaire { text-align: center; }
.existante-section { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(11, 24, 71, 0.07); }
.existante-section.hidden, :is([data-existante-fenetre], [data-lead-fenetre]) .hidden { display: none; }
.existante-section-premiere { border-top: 0; padding-top: 0; margin-top: 1.4rem; }
/* 25-10 : le texte à gauche, « Oui » / « Non » à droite sur la même ligne — même style de pastille, bien plus petit. */
.existante-question { display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; }
/* 25-10 : questions plus petites et SANS gras. */
.existante-question-texte { flex: 1; min-width: 0; margin: 0; font-size: 0.8rem; font-weight: 400; line-height: 1.45; color: #0b1847; }
.existante-choix-rangee { flex: none; display: flex; gap: 0.35rem; }
.existante-choix { position: relative; cursor: pointer; }
.existante-choix-radio { position: absolute; opacity: 0; pointer-events: none; }
.existante-choix span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 2.9rem; height: 1.75rem; padding: 0 0.7rem;
    border-radius: 999px; border: 1px solid rgba(11, 24, 71, 0.18); background: #fff; color: #0b1847; font-size: 0.78rem; font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.existante-choix:hover span { border-color: rgba(11, 24, 71, 0.4); }
.existante-choix-radio:checked + span { background: #0b1847; border-color: #0b1847; color: #fff; box-shadow: 0 6px 14px -8px rgba(11, 24, 71, 0.6); }
.existante-choix-radio:focus-visible + span { outline: 2px solid #6772e5; outline-offset: 2px; }
.existante-refus { margin: 1rem 0 0; padding: 0.75rem 0.9rem; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 0.85rem; line-height: 1.45; }
.existante-refus.hidden { display: none; }
.existante-nom-rangee { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; text-align: left; }
/* 26-10 : le Courriel, sous Prénom/Nom (#1818), collait aux champs du dessus — un vrai écart vertical. */
.existante-nom-rangee + .existante-champ-bloc, [data-lead-formulaire] > .existante-champ-bloc + .existante-champ-bloc { margin-top: 1rem; }
.existante-champ-bloc { display: block; text-align: left; }
.existante-champ-libelle { display: block; margin: 0 0 0.35rem 0.15rem; font-size: 0.8rem; font-weight: 500; color: rgba(11, 24, 71, 0.7); }
:is([data-existante-fenetre], [data-lead-fenetre]) .form-input.existante-saisie { height: 2.75rem !important; border-radius: 12px !important; border-color: rgba(11, 24, 71, 0.16) !important; font-size: 0.9rem !important; }
:is([data-existante-fenetre], [data-lead-fenetre]) .form-input.existante-saisie:focus { outline: none !important; border-color: #1e40af !important; box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.14) !important; }
/* 25-10 : attestation plus petite et SANS gras. 26-10 : plus de boîte grise (ni fond, ni bordure) — la case et le
   texte seuls ; la case un peu plus petite. */
.existante-attestation { display: flex; align-items: flex-start; gap: 0.55rem; margin-top: 1rem; text-align: left; font-size: 0.8rem; font-weight: 400; line-height: 1.4; color: #0b1847; cursor: pointer; }
.existante-attestation-case { flex: none; width: 0.9rem; height: 0.9rem; margin-top: 0.12rem; accent-color: #0b1847; cursor: pointer; }
.existante-fenetre-bouton { display: block; width: 100%; margin-top: 1.5rem; height: 2.85rem; border-radius: 999px !important; font-weight: 600; text-align: center; }
.existante-avis { margin: 0.6rem 0 0; font-size: 0.85rem; color: #b91c1c; }
.existante-avis:empty { display: none; }
@media (max-width: 420px) {
    .existante-fenetre-corps { padding: 1.25rem 1.1rem 1.3rem; }
    .existante-nom-rangee { grid-template-columns: 1fr; }
}

/* ══ 25-10 : la barre un peu moins large ; le ⋮ plus visible ; de l'air à gauche et à droite du résultat choisi ══ */
.existante-carte.existante-carte-nue { max-width: 48rem;   /* un peu plus large (25-10) */ margin-left: auto; margin-right: auto; }
.existante-plus svg circle { r: 2; }

/* ══ 07-11 : la FENÊTRE des forfaits — l'habillage de « Connexion à mon compte », plus large : l'avis en carte, puis
   les trois forfaits côte à côte (l'un sous l'autre sous 760 px), chacun un lien entier, le prix en grand. ══ */
.existante-fenetre-carte.contrats-forfaits-carte { max-width: 54rem; font-family: var(--police); }
/* Un écran court : la fenêtre défile dans ses bornes ; un titre d'avis très long tient en trois lignes. */
.existante-fenetre-carte.contrats-forfaits-carte { max-height: calc(100dvh - 2rem); overflow-y: auto; }
.contrats-forfaits-carte .existante-fenetre-societe-nom { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.contrats-offres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.contrats-offre { display: flex; flex-direction: column; padding: 16px 16px 14px; border: 1px solid var(--trait); border-radius: 14px; background: #fff; color: #111827; text-decoration: none; text-align: left; transition: border-color .15s, box-shadow .15s; }
.contrats-offre:hover { border-color: #93c5fd; box-shadow: 0 10px 26px -18px rgba(37, 99, 235, 0.6); }
.contrats-offre:focus-visible { outline: 3px solid #bfdbfe; outline-offset: 2px; }
.contrats-offre-nom { font-size: 14px; line-height: 19px; font-weight: 600; color: #0b1847; }
.contrats-offre-prix { margin-top: 6px; font-size: 24px; line-height: 28px; font-weight: 650; letter-spacing: -0.01em; color: #0b1847; }
/* 08-11 : un forfait = une liste de produits, comme les forfaits d'entreprise — son NOM en haut (Essentiel, Complet,
   Prestige), le prix, sa description, « Comprend » : le forfait précédent en une ligne, puis ses produits cochés ; la
   description d'un produit s'ouvre au survol (même mouvement que .product-desc de l'accueil). */
.contrats-offre-sous { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--doux); }
.contrats-offre-comprend { margin-top: 12px; font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--doux); }
.contrats-offre-liste { flex: 1; display: grid; align-content: start; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.contrats-offre-precedent { font-size: 13px; line-height: 18px; font-weight: 500; color: #111827; }
.contrats-offre-ligne { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 18px; color: #374151; }
.contrats-offre-desc { display: block; max-height: 0; margin-left: 20px; overflow: hidden; opacity: 0; font-size: 12px; line-height: 17px; color: var(--doux); transition: max-height 280ms ease, opacity 200ms ease, margin-top 220ms ease; }
@media (hover: hover) { .contrats-offre-produit:hover .contrats-offre-desc { max-height: 220px; margin-top: 3px; opacity: 1; } }
.contrats-offre-coche { flex: none; width: 14px; height: 14px; margin-top: 2px; color: var(--bleu); }
.contrats-offre-bouton { display: block; margin-top: 14px; height: 36px; border-radius: 999px; background: var(--bleu); color: #fff; font-size: 14px; font-weight: 500; line-height: 36px; text-align: center; transition: background .15s; }
.contrats-offre:hover .contrats-offre-bouton { background: var(--bleu-fonce); }
.contrats-offres-note { margin: 14px 0 0; font-size: 12px; line-height: 17px; color: var(--doux); text-align: center; }
@media (max-width: 760px) { .contrats-offres { grid-template-columns: 1fr; } }

/* ══ 17-11 (Notion 18200) : la DISCUSSION avec les documents de l'avis — proposée sous les forfaits, puis sa fenêtre : le fil,
   les sources de chaque réponse (document, page, court extrait), la saisie en bas. Mêmes jetons que le chat de la page. ══ */
.contrats-discussion-offre { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--trait); text-align: center; }
.contrats-discussion-offre-titre { margin: 0 0 8px; font-size: 14px; line-height: 19px; font-weight: 600; color: #0b1847; }
.contrats-discussion-offre-note { margin: 8px 0 0; font-size: 12px; line-height: 17px; color: var(--doux); }
.contrats-discussion-bouton.contrats-principal { display: inline-block; width: auto; min-width: 16rem; margin-top: 0; padding: 0 22px; }
.existante-fenetre-carte.contrats-discussion-carte { max-width: 46rem; max-height: calc(100dvh - 2rem); display: flex; flex-direction: column; font-family: var(--police); }
.contrats-discussion-corps { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.contrats-discussion-avis { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.contrats-discussion-etat { margin: 8px 0 0; font-size: 13px; line-height: 18px; color: var(--doux); }
.contrats-discussion-fil { flex: 1; min-height: 12rem; max-height: 55dvh; overflow-y: auto; margin-top: 12px; display: grid; align-content: start; gap: 10px; }
.contrats-discussion-msg { display: flex; }
.contrats-discussion-msg.client { justify-content: flex-end; }
.contrats-discussion-bulle { max-width: 85%; padding: 8px 13px; border-radius: 16px; font-size: 14px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.contrats-discussion-msg.assistant .contrats-discussion-bulle { background: #f3f4f6; color: #111827; border-radius: 16px 16px 16px 4px; }
.contrats-discussion-msg.client .contrats-discussion-bulle { background: var(--bleu); color: #fff; border-radius: 16px 16px 4px 16px; }
.contrats-discussion-sources { margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--trait); list-style: none; display: grid; gap: 6px; white-space: normal; }
.contrats-discussion-source { display: block; font-size: 12px; line-height: 16px; font-weight: 600; color: #0b1847; }
.contrats-discussion-extrait { display: block; font-size: 12px; line-height: 16px; color: var(--doux); }
.contrats-discussion-saisie { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; }
.contrats-discussion-saisie textarea { flex: 1; min-width: 0; resize: vertical; padding: 8px 12px; border: 1px solid var(--trait); border-radius: 12px; font: 14px/20px var(--police); }
.contrats-discussion-saisie textarea:focus { outline: 3px solid #bfdbfe; border-color: #93c5fd; }
.contrats-discussion-saisie button:disabled, .contrats-discussion-saisie textarea:disabled { opacity: .55; cursor: not-allowed; }

/* Le haut des forfaits : les marges de .landing-hero-wrap de /creer-une-entreprise (template/index.template.html), pour que
   titre, cartes et menu tombent au même pixel sur les deux pages. */
.existante-haut { padding-top: 4.5rem; }
@media (max-width: 640px) { .existante-haut { padding-top: 1.25rem; padding-bottom: 2.75rem; } }

/* ══ 2026-11-18 : la société choisie et ses actions, SOUS la barre (js/entreprise-existante.js, montrerChoix) — ⛔ FOND
   TRANSPARENT : aucune carte, le contenu posé sur le fond. ⛔ Aligné sous la BARRE DE RECHERCHE, pas sous le menu des
   provinces (18-11) : décalé de 15,75 rem = largeur du menu (15 rem) + l'écart (0,75 rem). Compact (texte et boutons plus
   petits), bien espacé verticalement, posé un peu plus bas. Écriture claire ; en sombre, blanche. ══ */
.existante-choix-sous-barre { max-width: 44rem; margin: 2.25rem auto 0; padding-left: 15.75rem; text-align: left; background: transparent; }
.existante-choix-sous-barre.hidden { display: none; }
.existante-choix-sous-barre > p:first-child { margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; color: #0b1847; }
.existante-choix-sous-barre > p + p { margin: 0.35rem 0 0; font-size: 0.825rem; }
.existante-choix-sous-barre .existante-actions { margin-top: 1.4rem; gap: 0.55rem; }
/* Plus petit : les pilules de CE bloc seulement (pas les autres pages). */
.existante-choix-sous-barre .existante-pilule { padding: 0.42rem 1rem; font-size: 0.8rem; }
/* ⛔ 18-11 : « Connexion » (pilule pleine) en BLEU d'action, pas en navy (ni en doré, cf. thème sombre dans style.css). */
.existante-choix-sous-barre .existante-pilule:not(.existante-pilule-claire) { background: #2563eb; border-color: #2563eb; color: #fff; }
.existante-choix-sous-barre .existante-pilule:not(.existante-pilule-claire):hover:not(:disabled) { background: #1d4ed8; }
.existante-choix-sous-barre .existante-plus { width: 1.75rem; height: 1.75rem; }
/* ⛔ Le ⋮ se groupe avec les boutons (plus de margin-left:auto qui l'envoyait au bord). */
.existante-choix-sous-barre .existante-plus-place { margin-left: 0; }
/* Sur un téléphone, la barre s'empile (menu puis champ en pleine largeur) : plus de décalage, le bloc revient à gauche. */
@media (max-width: 639px) { .existante-choix-sous-barre { padding-left: 0; } }
/* Thème sombre (toggle de /entreprise-existante/) : texte clair, ⋮ visible — toujours sur fond transparent. */
html[data-theme='dark'] .existante-choix-sous-barre > p:first-child { color: #fff; }
html[data-theme='dark'] .existante-choix-sous-barre > p + p { color: rgba(230, 232, 240, 0.8); }
html[data-theme='dark'] .existante-choix-sous-barre .existante-plus { color: rgba(230, 232, 240, 0.82); }
html[data-theme='dark'] .existante-choix-sous-barre .existante-plus:hover,
html[data-theme='dark'] .existante-choix-sous-barre .existante-plus[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, 0.10); }

/* ⛔ LES TITRES DES PAGES DE VENTE SONT IDENTIQUES (2026-11-12) : même police que « Créer une Québec inc. » (Poppins, comme
   h1/h2/h3 de template/index.template.html), même place, même bulle, aucun sous-titre — les cartes tombent au même pixel. */
h1, h2, h3, .font-display { font-family: 'Poppins', sans-serif; }

/* « Économisez 100 $ » (2026-11-12) : fond transparent, filet fin de sa couleur, plus petite et plus à droite. Plus forte que
   la règle du thème sombre (css/style.css, html[data-theme='dark'] .pkg-grilles .pkg-pill), qui reste ailleurs. */
.pkg-grilles.existante-forfaits .pkg-pill-case .pkg-pill {
    background: transparent !important;
    border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
    padding: 0.1rem 0.45rem !important;
    font-size: 10.5px !important;
    line-height: 1.35;
    margin-right: -0.5rem;
}

/* ══ LA FENÊTRE « NOUS VOUS CONTACTERONS » (2026-11-12) : le style de la 1re étape du formulaire (css/questionnaire.css) —
   libellé 14 px sans gras, champ blanc à filet gris, pilule bleue #2563eb — sur deux colonnes, le besoin sur toute la largeur. ══ */
.existante-fenetre-carte.lead-carte { max-width: 38rem; }
.lead-formulaire { text-align: left; }
.lead-intro { margin: 0 0 1.1rem; font-size: 14px; color: #525f7f; }
.lead-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 0.85rem; }
.lead-champ { display: block; min-width: 0; }
.lead-champ-large { grid-column: 1 / -1; }
.lead-libelle { display: inline-block; margin: 0 0 0.35rem; font-size: 14px; font-weight: 400; color: #32325d; }
[data-lead-fenetre] .form-input.lead-saisie {
    width: 100%; height: 2.75rem !important; padding: 0 0.85rem !important; font-size: 14px !important; color: #0b1847;
    background: #fff !important; border: 1px solid #d5dbe5 !important; border-radius: 8px !important; box-shadow: none !important;
}
[data-lead-fenetre] .form-input.lead-saisie.lead-zone { height: auto !important; min-height: 5.5rem; padding: 0.65rem 0.85rem !important; resize: vertical; line-height: 1.45; }
[data-lead-fenetre] .form-input.lead-saisie::placeholder { color: #a0aec0; }
[data-lead-fenetre] .form-input.lead-saisie:focus { outline: none !important; border-color: #2563eb !important; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important; }
/* « Entreprise » : au survol (ou au clavier), LA bulle du site dit « Entreprise pour laquelle vous êtes autorisé à agir ». */
.lead-libelle-bulle { position: relative; cursor: default; }
.lead-bulle { position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 5; width: max-content; max-width: 16rem; padding: 0.45rem 0.7rem;
    font-size: 12.5px; line-height: 1.4; opacity: 0; visibility: hidden; transition: opacity 0.15s ease; pointer-events: none; }
.lead-libelle-bulle:is(:hover, :focus-visible) .lead-bulle { opacity: 1; visibility: visible; }
.lead-recherche { position: relative; display: block; }
.lead-recherche .recherche-entreprise-liste { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 10; margin: 0; }
.lead-recherche .recherche-entreprise-message:empty { display: none; }
.lead-envoyer { display: block; width: min(100%, 16rem); height: 2.75rem; margin: 1.3rem auto 0; border: 0; border-radius: 9999px;
    background: #2563eb; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.15s ease; }
.lead-envoyer:hover { background: #1d4ed8; }
.lead-envoyer:disabled { opacity: 0.5; cursor: default; }
@media (max-width: 560px) { .lead-grille { grid-template-columns: 1fr; } }

/* « Sur demande » (Comptable, Avocat — 12-11) : plus petit, et sur la LIGNE du nom de la carte (la case du prix garde la
   hauteur de ligne du titre, 16 px × 1,375). */
.pkg-grilles .package-total:has(> .pkg-sur-demande) { font-size: 1rem !important; line-height: 1.375 !important; }
.pkg-grilles .package-total > .pkg-sur-demande { font-size: 0.8125rem !important; font-weight: 500; }

/* La FAQ « Impôt » en sombre : question et réponse lisibles sur la photo. */
html[data-theme='dark'] .existante-faq h2, html[data-theme='dark'] .existante-faq summary span.flex-1 { color: #fff !important; }
html[data-theme='dark'] .existante-faq .faq-item > div { color: rgba(230, 232, 240, 0.85) !important; }
html[data-theme='dark'] .existante-faq :is(.faq-list, .faq-item) { border-color: rgba(255, 255, 255, 0.12) !important; }
/* Les deux filets de la comptabilité alignés (13-11) : la tête de « Comptable » (nom + barre, « Sur demande ») prend la hauteur
   de celle d'« Impôt », dont le bloc de prix (montant, « prix total », case de la pastille) mesure 85 px. */
[data-grille="comptabilite"] .pkg-head-row { min-height: 85px; }
[data-grille="comptabilite"] .pkg-card-accent .pkg-head-row { min-height: 84px; }   /* son filet de 2 px (vedette) au lieu de 1 */
.existante-faq .faq-item { scroll-margin-top: 96px; }   /* une question visée par une ancre ne se cache pas sous l’en-tête collant */

/* Les icônes des FAQ en sombre (13-11) : claires, dans le ton de la page, au lieu du bleu foncé sur tuile blanche. */
html[data-theme='dark'] :is(#faq, .existante-faq) summary svg[class*="text-[#104f74]"] { color: rgba(255, 255, 255, 0.82) !important; }
html[data-theme='dark'] .existante-faq summary span.bg-white { background: rgba(255, 255, 255, 0.05) !important; border-color: rgba(255, 255, 255, 0.12) !important; box-shadow: none !important; }

/* « Comment ça marche ? » et les FAQ (13-11) : le voile de /creer-une-entreprise (template/index.template.html, #how-it-works et
   #faq) — un bloc continu sur la photo, plus foncé en sombre. */
#how-it-works, .existante-faq { position: relative; }
#how-it-works::before, .existante-faq::before {
    content: ''; position: absolute; left: 50%; transform: translateX(-50%); width: 100vw; z-index: -1; pointer-events: none;
    background: rgba(255, 255, 255, 0.5);
}
#how-it-works::before { top: -1.5rem; bottom: -1.5rem; }
.existante-faq::before { top: 1.5rem; bottom: 0; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 5rem), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 5rem), transparent); }
html[data-theme='dark'] .existante-faq::before { background: rgba(21, 23, 43, 0.55) !important; }
#how-it-works [hidden] { display: none; }
@media (max-width: 640px) {
    .existante-faq { padding-top: 3rem !important; }
    #how-it-works { margin-top: 2.5rem !important; padding-top: 1.25rem !important; padding-bottom: 1.5rem !important; }
}

/* ══ LA SOUS-SECTION « RECHERCHE » (2026-11-16) : la liste des provinces à gauche, la barre à droite, sur une ligne ; l'une
   sous l'autre au téléphone. La barre est celle de .existante-carte-nue (3,5 rem) ; la liste prend sa hauteur et ses coins. */
.existante-carte.existante-recherche-bloc { display: flex; gap: 0.75rem; align-items: flex-start; width: 100%; max-width: 44rem; margin: 0 auto; }
.existante-recherche-bloc .existante-recherche { flex: 1 1 auto; min-width: 0; }
.existante-recherche-bloc .form-input.existante-champ { width: 100%; height: 3.5rem !important; }
.existante-carte.existante-recherche-bloc::before { content: none; }
.existante-recherche-bloc .form-input.existante-province {
    flex: 0 0 15rem; height: 3.5rem !important; padding: 0 2.25rem 0 1rem !important; font-size: 1rem !important; color: #0b1847;
    background-color: #fff !important; border: 1px solid rgba(11, 24, 71, 0.16) !important; border-radius: 16px !important;
    box-shadow: 0 1px 2px rgba(11, 24, 71, 0.05), 0 16px 40px -18px rgba(11, 24, 71, 0.28) !important; cursor: pointer;
}
.existante-recherche-bloc .form-input.existante-province:focus { outline: none !important; border-color: #1e40af !important; }
@media (max-width: 639px) {
    .existante-recherche-bloc { flex-direction: column; align-items: stretch; }
    .existante-recherche-bloc .form-input.existante-province { flex: 0 0 auto; width: 100%; }
}

/* ══ « RECHERCHE » — LA LISTE DES RÉSULTATS ET LA FLÈCHE (2026-11-16) ══
   Sur une ligne, la droite (autre nom, registre, numéro, ville) ne se coupe pas : dans cette barre, c'est le NOM qui tombait à
   zéro et la pastille passait sur « Autre nom ». Ici, un résultat = DEUX lignes : le nom (entier, puis « … ») et les provinces
   à droite ; dessous, en discret, l'enregistrement, l'autre nom, le registre, le numéro et la ville. Même menu sombre que les
   barres des forfaits (.existante-barre-carte), dans les deux thèmes, posé en surimpression : rien ne bouge sous la barre. */
.existante-recherche-bloc .recherche-entreprise-liste {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40; max-height: min(26rem, 60vh); margin: 0; padding: 6px;
    border: 0; border-radius: 14px; background: rgba(30, 31, 38, 0.96);
    -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
    box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.14), 0 24px 60px -16px rgba(0, 0, 0, 0.55); overscroll-behavior: contain;
    text-align: left; -webkit-font-smoothing: antialiased;
}
.existante-recherche-bloc .recherche-entreprise-option {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 1rem; padding: 10px 12px;
    border-radius: 9px; color: #fff;
}
.existante-recherche-bloc .recherche-entreprise-option + .recherche-entreprise-option { margin-top: 2px; }
.existante-recherche-bloc .recherche-entreprise-option:hover,
.existante-recherche-bloc .recherche-entreprise-option[aria-selected="true"] { background: rgba(255, 255, 255, 0.09); box-shadow: none; }
.existante-recherche-bloc .recherche-entreprise-nom {
    grid-column: 1; grid-row: 1; display: flex; flex-wrap: nowrap; align-items: center; gap: 0 0.6rem; min-width: 0;
    font-size: 15px; font-weight: 500; line-height: 1.35; color: #fff; overflow-wrap: normal;
}
.existante-recherche-bloc .recherche-entreprise-nom-texte { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.existante-recherche-bloc .recherche-entreprise-actif { width: 8px; height: 8px; background: #30d158; }
.existante-recherche-bloc .recherche-entreprise-pastille {
    padding: 1px 8px; border: 0; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.78); font-size: 11px; line-height: 1.5;
}
/* Les provinces où elle est enregistrée (« QC », « QC, ON »), à droite du nom. */
.existante-recherche-bloc .recherche-entreprise-option::after {
    content: attr(data-provinces); grid-column: 2; grid-row: 1; font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.6); font-variant-numeric: tabular-nums;
}
.existante-recherche-bloc .recherche-entreprise-droite {
    grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center;
    gap: 2px 0.75rem; margin: 0; padding-left: calc(8px + 0.6rem); white-space: normal; min-width: 0;
}
.existante-recherche-bloc :is(.recherche-entreprise-aussi, .recherche-entreprise-details) { font-size: 12.5px; color: rgba(255, 255, 255, 0.55); }
/* Toute la ligne : l'étiquette à gauche, les numéros poussés au bord droit (2026-11-17). */
.existante-recherche-bloc .recherche-entreprise-details { flex: 1 1 100%; flex-wrap: wrap; align-items: center; gap: 2px 0.6rem; }
.existante-recherche-bloc .recherche-entreprise-aussi-nom { color: rgba(255, 255, 255, 0.82); }
/* Style de repos IDENTIQUE à avant (texte nu, sans fond) ; seul le survol signale que c'est copiable. */
.existante-recherche-bloc .recherche-entreprise-numero { padding: 0; background: none; color: rgba(255, 255, 255, 0.72); }
.existante-recherche-bloc .recherche-entreprise-numero:hover { background: none; color: #fff; }
.existante-recherche-bloc .recherche-entreprise-numero:hover .recherche-entreprise-numero-libelle { color: rgba(255, 255, 255, 0.7); }
.existante-recherche-bloc .recherche-entreprise-numero-libelle { color: rgba(255, 255, 255, 0.45); }
.existante-recherche-bloc .recherche-entreprise-message { margin: 0.6rem 0.25rem 0; }
/* La liste des provinces : une vraie flèche vers le bas, à nous (celle du navigateur est collée au bord et à peine visible). */
.existante-recherche-bloc .form-input.existante-province {
    -webkit-appearance: none; appearance: none; padding-right: 2.75rem !important; text-overflow: ellipsis;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1847' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important; background-position: right 1rem center !important; background-size: 1.05rem !important;
}
/* Liste ouverte : le message d'accompagnement se tait (il passait entre la barre et la liste) ; il revient liste fermée. */
.existante-recherche-bloc .recherche-entreprise-liste:not([hidden]) + .recherche-entreprise-message { display: none; }
.contrats-discussion-envoyer.contrats-principal { width: auto; margin-top: 0; padding: 0 18px; flex: none; }

/* 18-11 : la déclaration du client avant la récupération des documents (js/contrats-discussion.js). */
.contrats-discussion-declaration { display: grid; gap: 8px; margin-top: 12px; padding: 14px; border: 1px solid var(--trait); border-radius: 12px; text-align: left; }
.contrats-discussion-declaration[hidden] { display: none; }
.contrats-discussion-declaration-titre { margin: 0; font-size: 14px; line-height: 19px; font-weight: 600; color: #0b1847; }
.contrats-discussion-declaration-libelle { font-size: 13px; line-height: 18px; color: #111827; }
.contrats-discussion-declaration input[type="text"] { width: 100%; min-width: 0; padding: 8px 12px; border: 1px solid var(--trait); border-radius: 12px; font: 14px/20px var(--police); }
.contrats-discussion-declaration input[type="text"]:focus { outline: 3px solid #bfdbfe; border-color: #93c5fd; }
.contrats-discussion-case { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 18px; color: #111827; cursor: pointer; }
.contrats-discussion-case input { margin-top: 2px; flex: none; }
.contrats-discussion-declaration-erreur { margin: 0; font-size: 12px; line-height: 17px; color: #b91c1c; }
.contrats-discussion-declaration .contrats-discussion-bouton { justify-self: center; margin-top: 4px; }
