/*
 * Site public Knipsy, refonte « Apple » du 22/11/2026 (Adrien : « plus simple, plus moderne, plus belle », « unifie tout »).
 * En-tête et pied de page communs à toutes les pages du site (gabarit layouts/site.php), puis l'accueil en quatre écrans
 * aimantés (site/home.php). Préfixe k27- : aucune collision avec les classes Tailwind de app.css.
 */
:root {
  --k27-blanc: #FFFFFF; --k27-tuile: #F5F5F7; --k27-encre: #1D1D1F; --k27-gris: #6E6E73; --k27-trait: #E3E3E8;
  --k27-sapin: #0F4C3A; --k27-sapin-2: #0A3A2C; --k27-vif: #157C3A; --k27-lien: #0F6B4F;
  --k27-sortie: cubic-bezier(0.23, 1, 0.32, 1);
  --k27-entete: 56px;
  --k27-ecran: calc(100svh - var(--k27-entete));
  --k27-texte: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Geist", system-ui, sans-serif;
  --k27-titre: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Geist", system-ui, sans-serif;
}
.k27-large { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* ============ En-tête commun ============ */
.k27-entete { position: sticky; top: 0; z-index: 40; height: var(--k27-entete); font: 400 14px/1.4 var(--k27-texte); letter-spacing: -.01em; color: var(--k27-encre);
  background: rgb(255 255 255 / .74); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
.k27-entete::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: rgb(0 0 0 / .08); }
.k27-entete .k27-large { display: flex; align-items: center; gap: 28px; height: 100%; }
.k27-marque { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; color: var(--k27-sapin); border-radius: 8px; }
.k27-marque .k-logo text { font-family: "Fraunces", Georgia, serif; font-weight: 700; }
.k27-menu { display: flex; gap: 24px; color: var(--k27-encre); }
.k27-menu a { opacity: .8; transition: opacity .2s ease; }
.k27-menu a:hover, .k27-menu a[aria-current] { opacity: 1; }
.k27-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.k27-actions .k27-connexion { transition: color .2s ease; }
.k27-actions .k27-connexion:hover { color: var(--k27-lien); }

/* Boutons et liens « › » */
.k27-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 600 17px/1 var(--k27-texte); letter-spacing: -.01em; white-space: nowrap;
  background: var(--k27-sapin); color: #fff; transition: background-color .2s ease, transform .1s ease-out; }
.k27-btn:hover { background: var(--k27-sapin-2); }
.k27-btn:active { transform: scale(.97); }
.k27-btn.k27-petit { min-height: 34px; padding: 0 16px; font-size: 14px; }
.k27-plus { color: var(--k27-lien); font-weight: 500; }
.k27-plus::after { content: "›"; display: inline-block; margin-left: 5px; transition: translate .25s var(--k27-sortie); }
.k27-plus:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .k27-plus:hover::after { translate: 3px 0; } }

/* ============ Pied de page commun ============ */
.k27-pied { background: var(--k27-tuile); color: var(--k27-gris); font: 400 13px/1.5 var(--k27-texte); letter-spacing: -.005em; padding: 36px 0 40px; }
.k27-pied a { transition: color .2s ease; }
.k27-pied a:hover { color: var(--k27-encre); text-decoration: underline; text-underline-offset: 3px; }
.k27-pied .k27-def { max-width: 80ch; padding-bottom: 18px; border-bottom: 1px solid var(--k27-trait); }
.k27-colonnes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--k27-trait); }
.k27-colonnes h2 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--k27-encre); }
.k27-colonnes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.k27-langues { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 14px 0; border-bottom: 1px solid var(--k27-trait); }
.k27-langues a[aria-current] { color: var(--k27-encre); font-weight: 600; }
.k27-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 14px; }
.k27-bas p { margin: 0; }

@media (max-width: 900px) {
  .k27-menu { display: none; }
  .k27-colonnes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .k27-actions { gap: 14px; }
  .k27-actions .k27-btn { padding: 0 13px; }
}

/* L'ancienne barre d'onglets du téléphone disparaît : l'en-tête suffit, et le bas de l'écran reste libre. */
.site-tabbar { display: none !important; }

/* ============================================================================================
 * Accueil : quatre écrans aimantés. Chaque section fait exactement la hauteur de l'écran sous l'en-tête,
 * et un geste amène pile sur la suivante.
 * ============================================================================================ */
:root:has(.k27-accueil) { scroll-snap-type: y mandatory; scroll-padding-top: var(--k27-entete); }
body:has(.k27-accueil) { background: var(--k27-blanc); }
:root:has(.k27-accueil) .k27-pied { scroll-snap-align: end; }
.k27-accueil { color: var(--k27-encre); font: 400 17px/1.5 var(--k27-texte); letter-spacing: -.01em; }
.k27-accueil h1, .k27-accueil h2, .k27-accueil h3, .k27-accueil p, .k27-accueil ul { margin: 0; }
.k27-accueil ul { padding: 0; list-style: none; }
.k27-titre { font-family: var(--k27-titre); font-weight: 700; letter-spacing: -.035em; }
.k27-ancre { position: absolute; top: 0; }

.k27-ecran { position: relative; height: var(--k27-ecran); scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; overflow: hidden; }
section.k27-ecran { padding: clamp(28px, 6vh, 72px) 0 clamp(20px, 4vh, 48px); }
section.k27-ecran > .k27-large { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* Téléphone : une vraie capture de l'appli dans un boîtier dessiné */
.k27-tel { position: relative; width: 100%; aspect-ratio: 540 / 1016; padding: 9px; border-radius: 46px; background: linear-gradient(145deg, #2b302d, #0d0f0e);
  box-shadow: inset 0 0 0 1.5px #464c48, 0 40px 80px -30px rgb(10 30 22 / .45), 0 18px 36px -18px rgb(10 30 22 / .35); }
.k27-tel img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: #f4f4f2; }

/* 1. Haut de page : les téléphones posés sur le bord bas de l'écran */
.k27-haut { padding-top: clamp(28px, 8vh, 104px); text-align: center; }
.k27-haut h1 { font-size: min(clamp(44px, 8vw, 92px), 10.5vh); line-height: 1; text-wrap: balance; }
.k27-haut .k27-sous { margin: clamp(12px, 2.4vh, 22px) auto 0; max-width: 34ch; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.35; color: var(--k27-gris); }
.k27-appels { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px 26px; margin-top: clamp(18px, 3.6vh, 34px); font-size: 18px; }
.k27-note { margin-top: 14px; font-size: 15px; color: var(--k27-gris); }
.k27-trio { position: relative; flex: 1; min-height: 0; display: flex; justify-content: center; align-items: flex-start; margin-top: clamp(20px, 4.5vh, 52px); }
.k27-trio::before { content: ""; position: absolute; z-index: 0; inset: 25% 10% 0; background: radial-gradient(55% 70% at 50% 85%, #E3EDE8, transparent 70%); }
.k27-trio .k27-tel { z-index: 1; width: 270px; flex: none; }
.k27-trio .k27-cote { width: 230px; margin-top: 70px; }
.k27-trio .k27-g { rotate: -6deg; translate: 38px 0; }
.k27-trio .k27-d { rotate: 6deg; translate: -38px 0; }
.k27-trio .k27-c { z-index: 2; }

/* Titres de section */
.k27-tete { flex: none; max-width: 720px; margin: 0 auto clamp(20px, 4.5vh, 52px); text-align: center; }
.k27-tete h2 { font-size: min(clamp(34px, 5vw, 56px), 7vh); line-height: 1.05; text-wrap: balance; }
.k27-tete p { margin: 12px auto 0; max-width: 46ch; font-size: 20px; color: var(--k27-gris); }

.k27-tuile { position: relative; min-height: 0; overflow: hidden; border-radius: 30px; background: var(--k27-tuile); padding: clamp(24px, 4.4vh, 40px); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .035); }
.k27-tuile h3 { font-size: 28px; line-height: 1.12; font-weight: 700; letter-spacing: -.03em; text-wrap: balance; }
.k27-tuile h3 span { color: var(--k27-gris); }
.k27-tuile p { margin-top: 10px; color: var(--k27-gris); max-width: 34ch; }
.k27-apercu { min-height: 0; overflow: hidden; }
.k27-apercu .k27-tel { padding-bottom: 0; border-radius: 42px 42px 0 0; box-shadow: inset 0 0 0 1.5px #464c48, 0 -12px 40px -18px rgb(14 21 18 / .35); }

/* 2. Trois gestes : la grande tuile fait la hauteur des deux autres */
.k27-gestes { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.k27-grande { grid-row: span 2; display: flex; flex-direction: column; padding-bottom: 0; }
.k27-grande .k27-apercu { flex: 1; width: min(310px, 72%); margin: 0 auto; padding-top: clamp(20px, 4vh, 40px); }
.k27-petite { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.k27-coches { display: grid; gap: clamp(6px, 1.1vh, 10px); }
.k27-coches li { display: flex; gap: 12px; align-items: center; padding: clamp(9px, 1.5vh, 14px) 16px; border-radius: 16px; background: #fff; font-weight: 500; font-size: 16px; }
.k27-coches li::before { content: "✓"; display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--k27-vif); color: #fff; font-size: 13px; font-weight: 700; }
.k27-sombre { background: var(--k27-sapin); color: #fff; box-shadow: none; }
.k27-sombre h3 span { color: rgb(255 255 255 / .6); }
.k27-sombre p { color: rgb(255 255 255 / .75); }
.k27-sceau { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: rgb(255 255 255 / .1); font-size: 15px; }
.k27-sceau img { height: 22px; width: auto; filter: brightness(0) invert(1); }

/* 3. Pour chacun : titres, textes, liens et téléphones alignés d'une tuile à l'autre */
.k27-chacun { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); column-gap: 16px; }
.k27-chacun .k27-tuile { grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: 0; justify-items: center; padding: clamp(24px, 4vh, 36px) 28px 0; text-align: center; }
.k27-chacun .k27-tuile p { margin: 10px auto 0; }
.k27-chacun .k27-plus { margin-top: 14px; }
.k27-chacun .k27-apercu { align-self: stretch; width: min(230px, 78%); margin-top: clamp(18px, 3.4vh, 32px); }
.k27-chacun .k27-societe { background: #EFF5F1; }
.k27-chacun .k27-perso { background: #EEF2F8; }
.k27-chacun .k27-cabinet { background: #F9F0EC; }
.k27-chacun .k27-perso .k27-plus { color: #1F4E79; }
.k27-chacun .k27-cabinet .k27-plus { color: #A3301A; }

/* 4. Fin */
.k27-fin { justify-content: center; align-items: center; padding: 24px 20px; text-align: center; }
.k27-fin .k-logo { margin: 0 auto 22px; color: var(--k27-sapin); }
.k27-fin .k-logo text { font-family: "Fraunces", Georgia, serif; font-weight: 700; }
.k27-fin h2 { font-size: min(clamp(40px, 6vw, 68px), 8.5vh); line-height: 1.02; text-wrap: balance; }
.k27-fin .k27-btn { min-height: 54px; padding: 0 30px; }
.k27-fin .k27-appels { margin-top: 32px; }

/* Repère « défilez » : en bas au centre de chaque écran, il mène à la section suivante */
.k27-suite { position: absolute; z-index: 5; left: 50%; bottom: clamp(14px, 2.6vh, 26px); display: grid; place-items: center; width: 44px; height: 44px; translate: -50% 0; border-radius: 50%;
  color: var(--k27-encre); background: rgb(255 255 255 / .72); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06), 0 6px 20px -8px rgb(0 0 0 / .25); transition: background-color .2s ease, scale .15s var(--k27-sortie); }
.k27-suite svg { width: 20px; height: 20px; }
.k27-suite:hover { background: #fff; }
.k27-suite:active { scale: .94; }
.k27-glisser { display: none; flex: none; margin-top: 12px; text-align: center; font-size: 13px; color: var(--k27-gris); }

/* Écrans bas (portable 13 pouces) : on resserre, rien ne doit déborder */
@media (max-height: 820px) {
  .k27-tete p { display: none; }
  .k27-tuile h3 { font-size: 24px; }
  .k27-coches li { font-size: 15px; }
}

/* ===== Mouvement ===== */
@media (prefers-reduced-motion: no-preference) {
  /* Entrée, une fois par visite : une vague du titre vers les téléphones, qui s'ouvrent en éventail */
  .k27-in { animation: k27-monte 800ms var(--k27-sortie) both; }
  .k27-in.k27-t2 { animation-duration: 700ms; animation-delay: 110ms; --k27-dy: 14px; }
  .k27-in.k27-t3 { animation-duration: 700ms; animation-delay: 190ms; --k27-dy: 10px; }
  .k27-in.k27-t4 { animation: k27-fondu 600ms ease 320ms both; }
  .k27-trio .k27-c { animation: k27-monte 1000ms var(--k27-sortie) 240ms both; --k27-dy: 90px; }
  .k27-trio .k27-g { animation: k27-eventail-g 1000ms var(--k27-sortie) 420ms both; }
  .k27-trio .k27-d { animation: k27-eventail-d 1000ms var(--k27-sortie) 460ms both; }
  .k27-trio::before { animation: k27-fondu 1200ms ease 300ms both; }
  /* Invitation discrète du repère : attend 2,5 s, deux petits rebonds, puis se tait 6 s */
  .k27-suite svg { animation: k27-invite 7s var(--k27-sortie) 2.5s infinite; }

  @media (hover: hover) and (pointer: fine) {
    .k27-chacun .k27-apercu .k27-tel { transition: transform .45s var(--k27-sortie); }
    .k27-chacun .k27-tuile:hover .k27-apercu .k27-tel { transform: translateY(-10px); }
  }
}
@keyframes k27-monte { from { opacity: 0; translate: 0 var(--k27-dy, 22px); } }
@keyframes k27-fondu { from { opacity: 0; } }
@keyframes k27-eventail-g { from { opacity: 0; translate: 150px 50px; rotate: 0deg; } }
@keyframes k27-eventail-d { from { opacity: 0; translate: -150px 50px; rotate: 0deg; } }
@keyframes k27-invite { 0%, 14%, 100% { translate: 0 0; } 4% { translate: 0 5px; } 8% { translate: 0 0; } 11% { translate: 0 3px; } }
@keyframes k27-sort { from { translate: 0 90px; } }
@keyframes k27-glisse { from { opacity: 0; translate: 0 14px; } }

/* Pendant le défilement vers une section : les titres montent, les téléphones sortent de leur tuile.
   Tout est terminé quand la section est en place ; les tuiles, elles, ne bougent pas. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .k27-entete::after { animation: k27-fondu linear both; animation-timeline: scroll(root); animation-range: 0 80px; }
    .k27-tete, .k27-fin h2 { animation: k27-monte linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; --k27-dy: 40px; }
    .k27-apercu .k27-tel { animation: k27-sort linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    .k27-chacun .k27-tuile:nth-child(2) .k27-apercu .k27-tel { animation-range: entry 10% entry 90%; }
    .k27-chacun .k27-tuile:nth-child(3) .k27-apercu .k27-tel { animation-range: entry 20% entry 100%; }
    .k27-coches li { animation: k27-glisse linear both; animation-timeline: view(); animation-range: entry 10% entry 70%; }
    .k27-coches li:nth-child(2) { animation-range: entry 25% entry 85%; }
    .k27-coches li:nth-child(3) { animation-range: entry 40% entry 100%; }
  }
}

/* Réduire les animations : tout apparaît ensemble, en fondu, sans déplacement */
@media (prefers-reduced-motion: reduce) {
  .k27-in, .k27-trio .k27-tel { animation: k27-fondu .4s ease both; }
}
@media (prefers-reduced-transparency: reduce) {
  .k27-entete, .k27-suite { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Téléphone : chaque section reste un écran ; les tuiles passent en cartes qu'on fait glisser de côté */
@media (max-width: 900px) {
  .k27-trio .k27-tel { width: min(250px, 64vw); }
  .k27-trio .k27-cote { display: none; }
  .k27-gestes, .k27-chacun { display: flex; gap: 12px; margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
  .k27-gestes::-webkit-scrollbar, .k27-chacun::-webkit-scrollbar { display: none; }
  .k27-gestes .k27-tuile, .k27-chacun .k27-tuile { flex: 0 0 84%; scroll-snap-align: start; }
  .k27-tuile { padding: 26px 22px; }
  .k27-grande { padding-bottom: 0; }
  .k27-grande .k27-apercu { width: min(250px, 80%); }
  .k27-chacun .k27-tuile { grid-row: auto; grid-template-rows: auto auto auto minmax(0, 1fr); padding: 26px 22px 0; }
  .k27-glisser { display: block; }
  section.k27-ecran { padding-bottom: 78px; } /* place du repère « défilez », sous l'indication « faites glisser » */
}

/* Écran trop bas pour tenir une section : défilement libre plutôt que du contenu coupé */
@media (max-height: 560px) {
  :root:has(.k27-accueil) { scroll-snap-type: none; }
  .k27-ecran { height: auto; min-height: var(--k27-ecran); overflow: visible; }
  .k27-gestes, .k27-chacun, .k27-grande .k27-apercu, .k27-chacun .k27-apercu { min-height: 320px; }
}

/* ============================================================================================
 * Connexion et inscription (layouts/auth.php) : une carte blanche au centre d'un fond gris clair.
 * Les vues gardent leurs classes (field, label, btn-primary…) : on les redessine ici, dans la portée .k27-auth.
 * ============================================================================================ */
body.k27-auth { min-height: 100dvh; display: flex; flex-direction: column; background: var(--k27-tuile); color: var(--k27-encre); font-family: var(--k27-texte); letter-spacing: -.01em; }
.k27-auth-fond { flex: 1; display: flex; flex-direction: column; align-items: center; padding: clamp(24px, 6vh, 64px) 16px 28px; }
.k27-auth-carte { width: 100%; max-width: 480px; padding: 44px 44px 40px; border-radius: 28px; background: var(--k27-blanc);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .04), 0 30px 60px -36px rgb(14 21 18 / .28); outline: none; }
.k27-auth-carte.k27-auth-large { max-width: 680px; }
.k27-auth-logo { display: flex; justify-content: center; width: fit-content; margin: 0 auto 18px; color: var(--k27-sapin); border-radius: 12px; }
.k27-auth-logo .k-logo text { font-family: "Fraunces", Georgia, serif; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .k27-auth-carte { animation: k27-monte 600ms var(--k27-sortie) both; --k27-dy: 16px; }
}

/* Tête de page : centrée, titre net, une phrase */
.k27-auth .auth-head { text-align: center; }
.k27-auth .auth-head .eyebrow { display: none; }
.k27-auth .auth-title { margin: 0; font-family: var(--k27-titre); font-size: clamp(28px, 4vw, 34px); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; color: var(--k27-encre); }
.k27-auth .auth-sub { margin: 10px auto 0; max-width: 40ch; font-size: 16px; line-height: 1.45; color: var(--k27-gris); }

/* Champs */
.k27-auth .label { margin-bottom: 6px; font-size: 13px; font-weight: 500; color: rgb(29 29 31 / .78); }
.k27-auth .field { height: 54px; padding-inline: 16px; border: 1px solid #D2D2D7; border-radius: 12px; background: var(--k27-blanc); color: var(--k27-encre); font-size: 17px;
  transition: border-color .15s ease, box-shadow .15s ease; }
.k27-auth textarea.field { height: auto; padding-block: 14px; }
.k27-auth .field::placeholder { color: #86868B; }
.k27-auth .field:hover { border-color: #B0B0B6; }
.k27-auth .field:focus { border-color: var(--k27-sapin); box-shadow: 0 0 0 4px rgb(15 76 58 / .14); outline: none; }
.k27-auth .field[aria-invalid="true"] { border-color: #D70015; box-shadow: 0 0 0 4px rgb(215 0 21 / .08); }
.k27-auth .k-field-ico > svg { color: #86868B; }
.k27-auth .k-field-ico .field { padding-inline-start: 46px; }
.k27-auth .field-eye { border-radius: 10px; }
.k27-auth .hint { font-size: 12.5px; color: var(--k27-gris); }
.k27-auth .error { margin-top: 6px; font-size: 13px; color: #D70015; }
.k27-auth .req { color: #D70015; }
.k27-auth .flash-error { border-radius: 14px; }

/* Boutons et liens */
.k27-auth .btn-primary { height: 54px; border-radius: 999px; background: var(--k27-sapin); color: #fff; font-size: 17px; font-weight: 600; box-shadow: none; transition: background-color .2s ease, transform .1s ease-out; }
.k27-auth .btn-primary:hover { background: var(--k27-sapin-2); transform: none; box-shadow: none; }
.k27-auth .btn-primary:active { transform: scale(.97); }
.k27-auth .btn-secondary { height: 54px; border: 1px solid #D2D2D7; border-radius: 999px; background: var(--k27-blanc); color: var(--k27-encre); font-size: 17px; font-weight: 600; transition: background-color .2s ease, border-color .2s ease; }
.k27-auth .btn-secondary:hover { background: var(--k27-tuile); border-color: #B0B0B6; }
.k27-auth .btn-secondary svg { color: var(--k27-sapin); }
.k27-auth .link { color: var(--k27-lien); text-decoration-color: rgb(15 107 79 / .35); text-underline-offset: 3px; }
.k27-auth .link:hover { text-decoration-color: currentColor; }
.k27-auth .auth-alt, .k27-auth .card { border-radius: 18px; border-color: #E8E8ED; }

/* Inscription : les blocs se suivent, séparés d'un filet ; numéros ronds ; choix du pays en cartes */
.k27-auth .reg-block { border: 0; background: none; padding: 0; border-radius: 0; }
.k27-auth .reg-block + .reg-block { padding-top: 30px; border-top: 1px solid #E8E8ED; }
.k27-auth .reg-legend { font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: var(--k27-encre); }
.k27-auth .reg-number { width: 28px; height: 28px; background: var(--k27-sapin); color: #fff; font-size: 13px; }
.k27-auth .seat-option { border-color: #D2D2D7; border-radius: 14px; background: var(--k27-blanc); transition: border-color .15s ease, background-color .15s ease; }
.k27-auth .seat-option:has(:checked) { border-color: var(--k27-sapin); background: #EFF5F1; box-shadow: inset 0 0 0 1px var(--k27-sapin); }
.k27-auth .id-drop { border-color: #C7C7CC; border-radius: 16px; background: #FBFBFD; transition: border-color .15s ease, background-color .15s ease; }
.k27-auth .id-drop:hover { border-color: var(--k27-sapin); background: #F4F8F6; }
.k27-auth .border-creme { border-color: var(--k27-blanc); }

/* Bas de page : langues, liens, droits */
.k27-auth-bas { width: 100%; max-width: 680px; margin-top: 22px; text-align: center; font-size: 13px; color: var(--k27-gris); }
.k27-auth-bas .auth-foot { justify-content: center; margin-top: 6px; padding-bottom: 0; color: var(--k27-gris); }
.k27-auth-bas .auth-foot a:hover { color: var(--k27-encre); }
.k27-auth-droits { margin: 10px 0 0; font-size: 12px; color: #86868B; }

@media (max-width: 560px) {
  .k27-auth-fond { padding: 16px 12px 24px; }
  .k27-auth-carte { padding: 30px 20px 28px; border-radius: 24px; }
  .k27-auth .k27-actions .k27-connexion { display: none; }
}
/* Vues plus anciennes (mot de passe oublié, compte en attente, accès expiré) : même titre centré que les autres */
html:has(body.k27-auth) { background: var(--k27-tuile); }
.k27-auth-carte h1.h-display { margin-inline: auto; font-family: var(--k27-titre); font-size: clamp(26px, 3.6vw, 32px); font-weight: 700; line-height: 1.12; letter-spacing: -.03em; text-align: center; }
.k27-auth-carte h1.h-display + p, .k27-auth-carte h1.h-display + p + p { margin-inline: auto; text-align: center; color: var(--k27-gris); }
/* Sélecteur d'espace en tête des inscriptions : trois segments, le choix en cours en blanc */
.k27-choix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-width: 470px; margin: 24px auto 0; padding: 4px; border-radius: 14px; background: #EFEFF2; }
.k27-choix a { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 4px 8px; border-radius: 10px; font-size: 14px; font-weight: 500; line-height: 1.2; text-align: center; color: var(--k27-gris);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.k27-choix a:hover { color: var(--k27-encre); }
.k27-choix a[aria-current] { background: var(--k27-blanc); color: var(--k27-encre); font-weight: 600; box-shadow: 0 1px 3px rgb(0 0 0 / .1), 0 0 0 .5px rgb(0 0 0 / .05); }
@media (max-width: 420px) { .k27-choix a { font-size: 13px; padding-inline: 4px; } }

/* Inscriptions en écrans successifs (assets/site-2027-etapes.js) */
.k27-auth [hidden] { display: none !important; }
.k27-etapes-tete { display: flex; align-items: center; gap: 14px; }
.k27-etapes-barre { flex: 1; height: 6px; overflow: hidden; border-radius: 99px; background: #E8E8ED; }
.k27-etapes-barre i { display: block; height: 100%; border-radius: inherit; background: var(--k27-sapin); transform-origin: left center; transform: scaleX(0); transition: transform .45s var(--k27-sortie); }
[dir="rtl"] .k27-etapes-barre i { transform-origin: right center; }
.k27-etapes-compte { margin: 0; flex: none; font-size: 13px; font-weight: 600; color: var(--k27-gris); font-variant-numeric: tabular-nums; }
.k27-etapes-actif .reg-block + .reg-block { padding-top: 0; border-top: 0; }
.k27-etapes-actif .reg-block { min-height: 300px; }
.k27-etapes-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.k27-etapes-nav .btn-secondary, .k27-etapes-nav .btn-primary { width: 100%; }
@keyframes k27-etape-av { from { opacity: 0; translate: 24px 0; } }
@keyframes k27-etape-ar { from { opacity: 0; translate: -24px 0; } }
.k27-entre-av { animation: k27-etape-av .32s var(--k27-sortie) both; }
.k27-entre-ar { animation: k27-etape-ar .32s var(--k27-sortie) both; }
@media (max-width: 560px) { .k27-etapes-actif .reg-block { min-height: 0; } }

/* ===== Pages de compte sans défilement (Adrien : « 0 scroll ») =====
   La carte et la ligne du bas tiennent dans l'écran sous l'en-tête : marges et champs resserrés,
   la langue en menu déroulant sur la même ligne que les liens. */
.k27-auth-fond { min-height: calc(100dvh - var(--k27-entete)); justify-content: center; padding: clamp(10px, 2.4vh, 28px) 16px clamp(8px, 1.6vh, 16px); }
.k27-auth-carte { padding: clamp(22px, 3.6vh, 36px) 36px clamp(20px, 3.2vh, 32px); }
.k27-auth-logo { margin-bottom: clamp(6px, 1.2vh, 12px); }
.k27-auth-logo svg { width: clamp(32px, 4.6vh, 42px); height: clamp(32px, 4.6vh, 42px); }
.k27-auth-large .k27-auth-logo { display: none; }
.k27-auth .auth-title { font-size: clamp(24px, 3.6vh, 32px); }
.k27-auth .auth-sub { margin-top: 6px; font-size: 15px; }
.k27-auth .field { height: clamp(44px, 5.6vh, 50px); font-size: 16px; }
.k27-auth .btn-primary, .k27-auth .btn-secondary { height: clamp(44px, 5.6vh, 50px); }
.k27-auth .label { margin-bottom: 4px; }
.k27-auth .hint { margin-top: 4px; font-size: 12px; line-height: 1.4; }
.k27-auth-carte .space-y-4 > :not(:last-child) { margin-block-end: clamp(8px, 1.4vh, 14px); }
.k27-auth-carte .space-y-8 > :not(:last-child) { margin-block-end: clamp(14px, 2.4vh, 24px); }
.k27-auth-carte form.mt-8, .k27-auth-carte form.mt-7 { margin-top: clamp(14px, 2.4vh, 24px); }
.k27-auth .reg-legend { margin-bottom: clamp(8px, 1.6vh, 14px); font-size: 18px; }
.k27-auth .seat-option { padding-block: 8px; }
.k27-choix { margin-top: clamp(12px, 2vh, 20px); }
.k27-choix a { min-height: 36px; }
.k27-etapes-actif .reg-block { min-height: 0; }
.k27-auth-bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; margin-top: clamp(10px, 2vh, 18px); }
.k27-langue select { height: 32px; padding: 0 28px 0 10px; border: 1px solid #D2D2D7; border-radius: 9px; background-color: var(--k27-blanc); color: var(--k27-encre); font: 500 13px var(--k27-texte); cursor: pointer; }
.k27-langue select:focus-visible { outline: 2px solid var(--k27-sapin); outline-offset: 2px; }
.k27-auth-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.k27-auth-liens a { color: var(--k27-gris); }
.k27-auth-liens a:hover { color: var(--k27-encre); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .k27-auth-carte { padding: 20px 18px 18px; }
  .k27-auth .auth-sub { font-size: 14px; }
  .k27-auth-large .auth-sub { display: none; }
  .k27-auth .seat-plan { display: none; }
  .k27-auth-liens { gap: 2px 12px; font-size: 12px; }
}
/* Assistant : « Déjà inscrit ? » est déjà dans l'en-tête (Connexion) ; la note de gratuité reste, en petit */
.k27-etapes-actif .k27-envoi > p:last-child { display: none; }
.k27-etapes-actif .k27-envoi > p { font-size: 12.5px; }
.k27-etapes-nav .btn-primary { width: 100%; }
/* Boutons de l'assistant : « Retour » à gauche, l'action à droite ; seule au premier écran, l'action prend toute la largeur */
.k27-etapes-nav { display: flex; gap: 10px; }
.k27-etapes-nav > .btn-secondary { flex: 1 1 0; }
.k27-etapes-nav > .btn-primary { flex: 2 1 0; }
/* Invitation : formulaire long, sans logo ; « Déjà un compte ? » est déjà dans l'en-tête (Connexion) */
.k27-auth-carte .space-y-5 > :not(:last-child) { margin-block-end: clamp(8px, 1.4vh, 14px); }
.k27-auth-carte:has(form[action$="/invitation"]) .k27-auth-logo,
.k27-auth-carte:has(form[action$="/invitation"]) .auth-alt { display: none; }

/* ============ En-tête v2 : texte sur ordinateur, icônes sur téléphone, groupes séparés, drapeau de langue ============ */
.k27-entete .k27-large { gap: 20px; }
.k27-menu { margin-inline: auto; gap: 26px; }
.k27-actions { margin-left: 0; gap: 6px; }
.k27-filet { width: 1px; height: 20px; margin-inline: 6px; background: rgb(0 0 0 / .12); }
.k27-ico-btn, .k27-connexion { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px; border-radius: 10px; color: var(--k27-encre); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.k27-ico-btn:hover, .k27-connexion:hover { background: rgb(0 0 0 / .05); color: var(--k27-encre); }
.k27-ico-btn[aria-current], .k27-connexion[aria-current] { color: var(--k27-sapin); background: #EFF5F1; }
.k27-ico-btn svg, .k27-connexion svg { width: 20px; height: 20px; flex: none; }
summary.k27-ico-btn { list-style: none; }
summary.k27-ico-btn::-webkit-details-marker { display: none; }
.k27-code { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.k27-ico-btn .k27-chevron { width: 14px; height: 14px; opacity: .55; transition: rotate .2s var(--k27-sortie); }
details[open] > summary .k27-chevron { rotate: 180deg; }
.k27-connexion svg, .k27-creer svg, .k27-mobile { display: none; }

/* Drapeaux : petits rectangles nets, liseré discret ; le globe (arabe) reste rond */
.k27-drapeau { display: inline-flex; flex: none; width: 22px; height: 15px; overflow: hidden; border-radius: 3px; box-shadow: 0 0 0 1px rgb(0 0 0 / .12); }
.k27-drapeau svg { width: 100%; height: 100%; }
.k27-drapeau:has(.k27-globe) { width: 16px; height: 16px; border-radius: 50%; box-shadow: none; color: var(--k27-gris); }

/* Liste des langues : un panneau clair qui s'ouvre sous le drapeau */
.k27-langues-menu { position: relative; }
.k27-langues-liste { position: absolute; z-index: 50; inset-inline-end: 0; top: calc(100% + 8px); display: grid; gap: 2px; min-width: 220px; max-height: min(70vh, 520px); overflow-y: auto; padding: 6px; border-radius: 14px;
  background: rgb(255 255 255 / .97); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 22px 44px -14px rgb(0 0 0 / .28); transform-origin: top right; }
[dir="rtl"] .k27-langues-liste { transform-origin: top left; }
@media (prefers-reduced-motion: no-preference) { .k27-langues-menu[open] .k27-langues-liste { animation: k27-pop .18s var(--k27-sortie) both; } }
@keyframes k27-pop { from { opacity: 0; scale: .96; } }
.k27-langues-liste a, .k27-langues-liste button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 9px; background: none;
  font: 500 14px/1.2 var(--k27-texte); color: var(--k27-encre); text-align: start; cursor: pointer; transition: background-color .12s ease; }
.k27-langues-liste a:hover, .k27-langues-liste button:hover { background: var(--k27-tuile); }
.k27-langues-liste [aria-current] { background: #EFF5F1; color: var(--k27-sapin); font-weight: 600; }

/* Téléphone : chaque lien devient une icône de 40 px, le texte reste pour les lecteurs d'écran */
@media (max-width: 900px) {
  .k27-entete .k27-large { gap: 8px; }
  .k27-actions { margin-left: auto; gap: 2px; }
  .k27-mobile { display: inline-flex; }
  .k27-ico-btn, .k27-connexion, .k27-auth .k27-actions .k27-connexion { display: inline-flex; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px; }
  .k27-connexion svg, .k27-creer svg { display: block; }
  .k27-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .k27-code, .k27-ico-btn .k27-chevron { display: none; }
  .k27-filet { margin-inline: 2px; }
  .k27-creer, .k27-actions .k27-btn.k27-creer { width: 40px; height: 40px; min-height: 40px; margin-inline-start: 4px; padding: 0; border-radius: 50%; }
  .k27-creer svg { width: 19px; height: 19px; }
}
@media (max-width: 360px) { .k27-marque { font-size: 0; gap: 0; } }
/* Téléphone : la liste des langues s'ouvre en panneau pleine largeur sous l'en-tête (accrochée au drapeau, elle sortait de l'écran) */
@media (max-width: 900px) {
  .k27-langues-liste { position: fixed; top: calc(var(--k27-entete) + 6px); inset-inline: 12px; min-width: 0; max-height: calc(100dvh - var(--k27-entete) - 24px); grid-template-columns: 1fr 1fr; transform-origin: top center; }
}

/* ============ Pages du site en un écran (contact…) : fond gris clair, contenu centré ============ */
body:has(.k27-page) { background: var(--k27-tuile); }
.k27-page { display: flex; align-items: center; min-height: var(--k27-ecran); padding: clamp(16px, 3.6vh, 48px) 0; color: var(--k27-encre); font-family: var(--k27-texte); letter-spacing: -.01em; }
.k27-contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.k27-contact h1 { margin: 0; font-size: clamp(34px, min(5vw, 6.4vh), 56px); line-height: 1.04; text-wrap: balance; }
.k27-contact-sous { margin: clamp(10px, 2vh, 18px) 0 0; max-width: 44ch; font-size: clamp(16px, 2.1vh, 19px); line-height: 1.45; color: var(--k27-gris); }
.k27-contact-infos { display: grid; gap: clamp(10px, 1.8vh, 16px); margin: clamp(18px, 3.6vh, 36px) 0 0; }
.k27-contact-infos div { padding-top: clamp(10px, 1.8vh, 16px); border-top: 1px solid #E3E3E8; }
.k27-contact-infos dt { font-size: 13px; font-weight: 600; color: var(--k27-encre); }
.k27-contact-infos dd { margin: 3px 0 0; max-width: 60ch; font-size: 14px; line-height: 1.45; color: var(--k27-gris); }
.k27-contact-carte { padding: clamp(20px, 3.4vh, 34px) clamp(20px, 2.6vw, 34px); border-radius: 28px; background: var(--k27-blanc); box-shadow: 0 0 0 1px rgb(0 0 0 / .04), 0 30px 60px -36px rgb(14 21 18 / .28); }

/* Formulaires du site (contact, projet) : mêmes champs que les pages de compte */
.k27-formulaire .label { margin-bottom: 4px; font-size: 13px; font-weight: 500; color: rgb(29 29 31 / .78); }
.k27-formulaire .field { height: clamp(42px, 5.4vh, 48px); padding-inline: 14px; border: 1px solid #D2D2D7; border-radius: 12px; background: var(--k27-blanc); font-size: 16px; transition: border-color .15s ease, box-shadow .15s ease; }
.k27-formulaire textarea.field { height: auto; min-height: clamp(84px, 13vh, 130px); padding-block: 10px; resize: vertical; }
.k27-formulaire .field:hover { border-color: #B0B0B6; }
.k27-formulaire .field:focus { border-color: var(--k27-sapin); box-shadow: 0 0 0 4px rgb(15 76 58 / .14); outline: none; }
.k27-formulaire .field[aria-invalid="true"] { border-color: #D70015; }
.k27-formulaire .error, .k27-formulaire .req { color: #D70015; }
.k27-formulaire form.space-y-4 > :not(:last-child) { margin-block-end: clamp(8px, 1.5vh, 14px); }
.k27-formulaire .grid.gap-4 { grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.5vh, 14px) 12px; }
.k27-formulaire label.flex { font-size: 13px; line-height: 1.45; }
.k27-formulaire .btn-primary { width: 100%; height: clamp(44px, 5.6vh, 50px); border-radius: 999px; background: var(--k27-sapin); font-size: 17px; font-weight: 600; box-shadow: none; transform: none; }
.k27-formulaire .btn-primary:hover { background: var(--k27-sapin-2); }
.k27-formulaire .btn-primary:active { transform: scale(.97); }
.k27-formulaire .flash-error, .k27-formulaire .flash-success { border-radius: 14px; }

@media (max-width: 900px) {
  .k27-contact { grid-template-columns: 1fr; gap: 18px; }
  .k27-contact-texte { display: contents; }
  .k27-contact h1 { order: 1; font-size: 30px; }
  .k27-contact-sous { order: 2; margin-top: -8px; font-size: 15px; }
  .k27-contact-carte { order: 3; padding: 18px 16px; border-radius: 22px; }
  .k27-contact-infos { order: 4; margin-top: 4px; }
  .k27-page { align-items: flex-start; }
}
/* Petits téléphones (iPhone SE) : la phrase d'introduction s'efface, le message rétrécit, le bouton reste dans l'écran */
@media (max-width: 900px) and (max-height: 720px) {
  .k27-contact-sous { display: none; }
  .k27-contact h1 { font-size: 26px; }
  .k27-contact { gap: 12px; }
  .k27-formulaire textarea.field { min-height: 64px; }
  .k27-formulaire label.flex { font-size: 12px; }
}

/* ============ Le projet : quatre écrans aimantés, comme l'accueil ============ */
section.k27-projet-haut { padding-top: clamp(24px, 6vh, 80px); text-align: center; }
.k27-projet-haut h1 { margin-inline: auto; max-width: 20ch; font-size: min(clamp(34px, 5.6vw, 68px), 7.6vh); line-height: 1.02; text-wrap: balance; }
.k27-projet-haut .k27-sous, .k27-fin .k27-sous { margin: clamp(10px, 2vh, 18px) auto 0; max-width: 60ch; font-size: clamp(15px, 2vh, 19px); line-height: 1.45; color: var(--k27-gris); }
.k27-projet-haut > .k27-large { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; }
.k27-film { flex: 1; min-height: 0; max-height: 540px; aspect-ratio: 16 / 9; max-width: 100%; margin-top: clamp(16px, 3.4vh, 36px); margin-bottom: clamp(48px, 8vh, 72px); overflow: hidden; border-radius: 22px; background: #0d0f0e;
  box-shadow: 0 30px 60px -30px rgb(14 21 18 / .45); }
.k27-film video { display: block; width: 100%; height: 100%; object-fit: cover; }

.k27-faits { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.k27-fait { display: flex; flex-direction: column; justify-content: flex-start; }
.k27-fait-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #E3EDE8; color: var(--k27-sapin); font-size: 14px; font-weight: 700; }
.k27-fait h3 { margin-top: clamp(10px, 2vh, 18px); font-size: clamp(19px, 2.6vh, 24px); }
.k27-fait p { margin-top: 6px; font-size: clamp(14px, 1.9vh, 16px); line-height: 1.45; max-width: none; }

.k27-route { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.k27-route li { display: flex; flex-direction: column; }
.k27-route-point { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 2px #C7C7CC; }
.k27-route-done .k27-route-point { background: var(--k27-sapin); box-shadow: none; color: #fff; }
.k27-route-done .k27-route-point svg { width: 15px; height: 15px; }
.k27-route-now .k27-route-point { box-shadow: inset 0 0 0 2px var(--k27-sapin); }
.k27-route-now .k27-route-point::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--k27-vif); }
.k27-route h3 { margin-top: clamp(10px, 2vh, 16px); font-size: clamp(18px, 2.4vh, 22px); }
.k27-route p { margin-top: 6px; font-size: clamp(13.5px, 1.8vh, 15px); line-height: 1.45; max-width: none; }
.k27-route-done { background: #EFF5F1; }
@media (prefers-reduced-motion: no-preference) {
  .k27-route-now .k27-route-point::after { animation: k27-pouls 2.4s ease-in-out infinite; }
}
@keyframes k27-pouls { 50% { opacity: .35; } }

@media (max-width: 900px) {
  .k27-faits, .k27-route { display: flex; gap: 12px; margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
  .k27-faits::-webkit-scrollbar, .k27-route::-webkit-scrollbar { display: none; }
  .k27-faits .k27-tuile, .k27-route .k27-tuile { flex: 0 0 80%; scroll-snap-align: start; overflow-y: auto; }
  .k27-film { flex: none; width: 100%; height: auto; margin-bottom: 76px; border-radius: 16px; }
}
/* Tuiles à leur hauteur naturelle, groupe centré dans l'écran (plus de grands vides sous les textes courts) */
.k27-route { grid-template-rows: auto; align-content: center; align-items: start; }
@media (max-width: 900px) {
  .k27-faits, .k27-route { align-items: center; }
  .k27-faits .k27-tuile, .k27-route .k27-tuile { max-height: 100%; }
}

/* ============ Pages intérieures (guides, soutenir, nouveautés, pages juridiques) alignées sur l'accueil ============
   Même fond, mêmes titres, mêmes boutons : le contenu des pages ne change pas. */
body.site { background: var(--k27-blanc); }
body.site main { font-family: var(--k27-texte); letter-spacing: -.01em; }
body.site main :is(.page-title, .section-title, .h-display, h1.font-serif, h2.font-serif, h3.font-serif, p.font-serif) { font-family: var(--k27-titre); font-weight: 700; letter-spacing: -.03em; }
body.site main .eyebrow { gap: 0; color: var(--k27-sapin); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
body.site main .eyebrow::before, body.site main .eyebrow::after { display: none; }
body.site main .lead { color: var(--k27-gris); }
body.site main .btn-primary { border-radius: 999px; background: var(--k27-sapin); box-shadow: none; transform: none; }
body.site main .btn-primary:hover { background: var(--k27-sapin-2); }
body.site main .btn-primary:active { transform: scale(.97); }
body.site main .btn-secondary { border-radius: 999px; border-color: #D2D2D7; color: var(--k27-encre); background: var(--k27-blanc); }
body.site main .btn-secondary:hover { background: var(--k27-tuile); }
body.site main .card { border-color: transparent; border-radius: 22px; background: var(--k27-tuile); box-shadow: none; }
body.site main .link { color: var(--k27-lien); text-decoration-color: rgb(15 107 79 / .35); }
body.site main .font-serif { font-family: var(--k27-titre); font-weight: 700; letter-spacing: -.03em; }

/* ============ Invitation : code en neuf cases 3-4-2, puis l'espace rejoint ============ */
.k27-cases { display: flex; align-items: center; gap: 6px; width: 100%; }
.k27-groupe { display: flex; gap: 6px; flex-basis: 0; min-width: 0; }
.k27-groupe input { flex: 1 1 0; min-width: 0; height: 54px; padding: 0; border: 1px solid #D2D2D7; border-radius: 12px; background: var(--k27-blanc);
  font: 600 22px/1 var(--k27-texte); text-align: center; text-transform: uppercase; color: var(--k27-encre); caret-color: var(--k27-sapin);
  transition: border-color .15s ease, box-shadow .15s ease; }
.k27-groupe input:focus { border-color: var(--k27-sapin); box-shadow: 0 0 0 4px rgb(15 76 58 / .14); outline: none; }
.k27-tiret { flex: none; width: 10px; height: 2px; border-radius: 2px; background: #AEAEB2; }
.k27-cases-erreur .k27-groupe input { border-color: #D70015; }
@media (prefers-reduced-motion: no-preference) {
  .k27-cases-erreur { animation: k27-secoue .4s var(--k27-sortie); }
}
@keyframes k27-secoue { 20% { translate: -6px 0; } 40% { translate: 5px 0; } 60% { translate: -3px 0; } 80% { translate: 2px 0; } }
@media (max-width: 420px) {
  .k27-cases, .k27-groupe { gap: 4px; }
  .k27-groupe input { height: 48px; font-size: 19px; border-radius: 10px; }
  .k27-tiret { width: 7px; }
}

.k27-invite { display: flex; align-items: center; gap: 12px; margin-top: clamp(14px, 2.4vh, 22px); padding: 14px 16px; border-radius: 16px; background: #EFF5F1; }
.k27-invite-perso { background: #EEF2F8; }
.k27-invite-avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--k27-sapin); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.k27-invite-perso .k27-invite-avatar { background: #1F4E79; }
.k27-invite-texte { display: grid; min-width: 0; }
.k27-invite-texte b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.k27-invite-texte span { font-size: 13.5px; color: var(--k27-gris); }
.k27-invite-ok { flex: none; width: 22px; height: 22px; margin-inline-start: auto; color: var(--k27-vif); }
.k27-invite-perso .k27-invite-ok { color: #1F4E79; }

/* ============ Raison sociale : formes juridiques du pays du siège (assets/site-2027-forme.js) ============ */
.k27-formes { position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; max-height: 248px; overflow-y: auto; border-radius: 14px;
  background: var(--k27-blanc); box-shadow: 0 0 0 1px rgb(0 0 0 / .07), 0 22px 44px -14px rgb(0 0 0 / .28); }
.k27-combo-champ { position: relative; }
@media (prefers-reduced-motion: no-preference) { .k27-formes:not([hidden]) { animation: k27-pop .16s var(--k27-sortie) both; transform-origin: top center; } }
.k27-formes li { display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; border-radius: 9px; cursor: pointer; font-size: 14px; }
.k27-formes li b { flex: none; min-width: 64px; font-weight: 700; color: var(--k27-encre); }
.k27-formes li span { color: var(--k27-gris); }
.k27-formes li[aria-selected="true"] { background: #EFF5F1; }
.k27-formes li[aria-selected="true"] b { color: var(--k27-sapin); }
.k27-forme-choisie { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; padding: 4px 6px 4px 12px; border-radius: 999px; background: #EFF5F1; color: var(--k27-sapin); font-size: 13px; }
.k27-forme-choisie > span { color: var(--k27-gris); }
.k27-forme-choisie button { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgb(15 76 58 / .1); color: var(--k27-sapin); font-size: 15px; line-height: 1; cursor: pointer; }
.k27-forme-choisie button:hover { background: rgb(15 76 58 / .2); }

/* ============ Aide à la saisie des inscriptions (assets/site-2027-aide.js) ============ */
.k27-libelle { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.k27-libelle .label { margin-bottom: 0; }
.k27-aide { position: relative; display: inline-flex; vertical-align: middle; }
.k27-aide-btn { display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: #E8E8ED; color: var(--k27-gris);
  font: 700 11px/1 var(--k27-texte); cursor: help; transition: background-color .15s ease, color .15s ease; }
.k27-aide-btn:hover, .k27-aide.ouvert .k27-aide-btn { background: var(--k27-sapin); color: #fff; }
.k27-aide-btn::after { content: ""; position: absolute; inset: -12px; } /* zone de toucher de 42 px */
.k27-aide-bulle { position: absolute; z-index: 40; bottom: calc(100% + 10px); inset-inline-start: 50%; translate: -50% 0; width: max-content; max-width: min(300px, 80vw);
  padding: 10px 12px; border-radius: 12px; background: #1D1D1F; color: #fff; font: 400 13px/1.45 var(--k27-texte); letter-spacing: 0; text-align: start;
  box-shadow: 0 14px 30px -12px rgb(0 0 0 / .45); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease, visibility .15s; }
.k27-aide-bulle::after { content: ""; position: absolute; top: 100%; inset-inline-start: 50%; translate: -50% 0; border: 6px solid transparent; border-top-color: #1D1D1F; }
.k27-aide.ouvert .k27-aide-bulle { opacity: 1; visibility: visible; pointer-events: auto; }
@media (hover: hover) and (pointer: fine) { .k27-aide:hover .k27-aide-bulle, .k27-aide-btn:focus-visible + .k27-aide-bulle { opacity: 1; visibility: visible; } }
legend .k27-aide { margin-inline-start: 6px; }
/* Bulle centrée sur le « ? », décalée par le script pour rester dans l'écran ; la flèche reste sur le « ? » */
.k27-aide-bulle { translate: calc(-50% + var(--k27-decal, 0px)) 0; }
.k27-aide-bulle::after { translate: calc(-50% - var(--k27-decal, 0px)) 0; }

.k27-auth .field.k27-valide { border-color: #34A853; padding-inline-end: 40px;
  background: var(--k27-blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23157C3A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; }
[dir="rtl"] .k27-auth .field.k27-valide { background-position: left 14px center; }
.k27-auth .relative .field.k27-valide { background-position: right 52px center; }
.k27-indice { margin: 4px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--k27-gris); }
.k27-indice:empty { display: none; }
.k27-indice-erreur { color: #D70015; }
.k27-proposition { padding: 2px 8px; border: 0; border-radius: 999px; background: #EFF5F1; color: var(--k27-sapin); font: 600 12.5px/1.5 var(--k27-texte); cursor: pointer; }
.k27-proposition:hover { background: #E3EDE8; }
.k27-jauge { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.k27-jauge span { flex: 0 0 34px; height: 4px; border-radius: 99px; background: #E8E8ED; transition: background-color .2s ease; }
.k27-jauge b { margin-inline-start: 6px; font-size: 12px; font-weight: 500; color: var(--k27-gris); }
.k27-jauge[data-niveau="0"] span:nth-child(-n+1) { background: #D70015; }
.k27-jauge[data-niveau="1"] span:nth-child(-n+1), .k27-jauge[data-niveau="2"] span:nth-child(-n+2) { background: #F5A623; }
.k27-jauge[data-niveau="3"] span:nth-child(-n+3), .k27-jauge[data-niveau="4"] span:nth-child(-n+4) { background: #34A853; }
.k27-apercu-carte { width: 100%; height: 64px; object-fit: cover; border-radius: 10px; margin-bottom: 4px; }
/* Mot de passe : la jauge dit déjà tout (pas de coche contre l'œil, pas de « huit caractères » en double) */
.k27-auth .relative .field.k27-valide { background-image: none; padding-inline-end: 56px; }
.k27-jauge + .hint { display: none; }

/* Inscription : société retrouvée au registre (VIES, Sirene), 22/11/2026 */
.k27-registre { position: relative; padding: 10px 14px 10px 40px; border-radius: 14px; background: #F5F5F7; border: 1px solid rgba(0, 0, 0, .06); }
.k27-registre::before { content: ""; position: absolute; left: 14px; top: 12px; width: 16px; height: 16px; border-radius: 50%; background: var(--k27-gris); opacity: .35; }
.k27-registre[data-ton="ok"] { background: #EFF5F1; border-color: rgba(31, 92, 63, .14); }
.k27-registre[data-ton="ok"]::before { opacity: 1; background: var(--k27-sapin) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.k27-registre[data-ton="alerte"] { background: #FFF4F4; border-color: rgba(215, 0, 21, .14); }
.k27-registre[data-ton="alerte"]::before { opacity: 1; background: #D70015; }
.k27-registre[data-ton="attente"]::before { animation: k27-registre-pouls 1s ease-in-out infinite alternate; }
@keyframes k27-registre-pouls { from { opacity: .2; } to { opacity: .6; } }
.k27-registre-titre { margin: 0; font: 600 14px/1.35 var(--k27-texte); overflow-wrap: anywhere; }
.k27-registre-detail { margin: 1px 0 0; font-size: 12.5px; line-height: 1.35; color: var(--k27-gris); }
.k27-registre-note { margin: 0; padding: 8px 12px; border-radius: 10px; background: #EFF5F1; color: var(--k27-sapin); font-size: 12.5px; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .k27-registre[data-ton="attente"]::before { animation: none; } }
.k27-registre .k27-proposition { display: inline-block; margin-top: 8px; text-decoration: none; }
.space-y-4 > .k27-registre { margin-top: -6px; }

/* Cartes pays des inscriptions : le drapeau entier en teinte légère, à la place du code LU, BE… ; coche ronde du choix (22/11/2026, Adrien) */
.k27-auth .seat-option { overflow: hidden; isolation: isolate; padding-right: 40px; }
.k27-auth .seat-option:has(:checked) { background: var(--k27-blanc); }
.k27-auth .seat-drapeau { position: absolute; inset: 0; z-index: -1; opacity: .24; pointer-events: none; transition: opacity .2s ease; }
.k27-auth .seat-drapeau .k27-drapeau { display: block; width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.k27-auth .seat-option:has(:checked) .seat-drapeau { opacity: .5; }
.k27-auth .seat-option::after { content: ""; position: absolute; right: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--k27-blanc); box-shadow: inset 0 0 0 1.5px #C7C7CC; transition: background-color .15s ease, box-shadow .15s ease; }
.k27-auth .seat-option:has(:checked)::after { box-shadow: none; background: var(--k27-sapin) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.k27-auth .seat-option:has(:focus-visible) { outline: 2px solid var(--k27-sapin); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .k27-auth .seat-option:hover .seat-drapeau { opacity: .34; } }

/* ============ Pages de compte : maquettes d'Adrien du 23/11/2026 ============
   Composition des maquettes (en-tête vert sombre, arc doré, carte blanche, titres à empattements, filet doré, champs
   doux, gros boutons), SANS pictogramme décoratif (« sans les emoji moches ») : ni pastille à icône, ni icône dans les
   boutons ou au pied de page. Ces règles priment sur la section « Connexion et inscription » du 22/11. */
:root { --k27-or: #D4A44B; --k27-nuit: #0A3327; --k27-vert-pale: #E8F3EB; --k27-vert-bord: #BFDCC7; }

/* En-tête vert sombre ; le menu des langues garde son panneau clair. */
.k27-auth .k27-entete { background: var(--k27-nuit); color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.k27-auth .k27-entete::after { display: none; }
.k27-auth .k27-marque, .k27-auth .k27-menu { color: #fff; }
.k27-auth .k27-actions > .k27-ico-btn, .k27-auth .k27-actions > .k27-connexion, .k27-auth .k27-langues-menu > summary { color: #fff; }
.k27-auth .k27-actions > .k27-ico-btn:hover, .k27-auth .k27-actions > .k27-connexion:hover, .k27-auth .k27-langues-menu > summary:hover { background: rgb(255 255 255 / .12); color: #fff; }
.k27-auth .k27-actions > .k27-ico-btn[aria-current], .k27-auth .k27-actions > .k27-connexion[aria-current] { background: rgb(255 255 255 / .16); color: #fff; }
.k27-auth .k27-filet { background: rgb(255 255 255 / .28); }
.k27-auth .k27-actions > .k27-creer { background: #15704F; color: #fff; box-shadow: 0 0 0 1px rgb(255 255 255 / .22) inset; }
.k27-auth .k27-actions > .k27-creer:hover { background: #1A8560; }
.k27-auth .k27-entete :focus-visible { outline-color: #fff; }

/* Fond : la nuit verte descend de l'en-tête et se retire sous un arc doré ; une vague lui répond en bas à gauche. */
body.k27-auth { background: #F5F6F4; }
.k27-auth-fond { position: relative; isolation: isolate; background-color: #F5F6F4;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='v' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%230A3327'/%3E%3Cstop offset='1' stop-color='%23126047'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 0H400V96C332 44 236 56 156 120C94 170 44 236 0 250Z' fill='url(%23v)'/%3E%3Cpath d='M0 252C45 238 95 172 157 122C237 58 333 46 400 98' fill='none' stroke='%23D4A44B' stroke-width='2.4' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 160' preserveAspectRatio='none'%3E%3Cpath d='M0 46C70 52 136 96 190 160H0Z' fill='%230F4C3A'/%3E%3Cpath d='M0 44C71 50 138 94 192 160' fill='none' stroke='%23D4A44B' stroke-width='2.4' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: top center, bottom left; background-size: 100% min(46vh, 340px), min(58%, 320px) 150px; }

/* Carte */
.k27-auth-carte { position: relative; z-index: 1; border-radius: 30px; background: #fff; border: 0; box-shadow: 0 30px 60px -34px rgb(10 51 39 / .45), 0 2px 10px rgb(10 51 39 / .06); }
.k27-auth-logo { margin-bottom: 14px; color: var(--k27-sapin); }

/* Titre à empattements, sous-titre, filet doré */
.k27-auth .auth-title, .k27-auth-carte > h1, .k27-auth-carte h1.h-display { font-family: "Fraunces", Georgia, serif; font-weight: 700; color: var(--k27-nuit); font-size: clamp(32px, 8.4vw, 42px); line-height: 1.06; letter-spacing: -.022em; text-wrap: balance; }
.k27-auth .auth-sub { margin-top: 12px; font-size: 16.5px; color: #55595A; }
.k27-auth .auth-head::after { content: ""; display: block; width: 168px; height: 3px; margin: 20px auto 0;
  background: linear-gradient(var(--k27-or), var(--k27-or)) center / 40px 3px no-repeat, linear-gradient(90deg, rgb(212 164 75 / 0), rgb(212 164 75 / .75) 30%, rgb(212 164 75 / .75) 70%, rgb(212 164 75 / 0)) center / 100% 1px no-repeat; border-radius: 3px; }

/* Champs doux */
.k27-auth .field { height: 58px; border-radius: 16px; border-color: #E1E4E0; background: #fff; font-size: 17px; box-shadow: 0 8px 18px -12px rgb(10 51 39 / .32); }
.k27-auth .field:hover { border-color: #C9CEC8; }
.k27-auth .field:focus { border-color: var(--k27-sapin); box-shadow: 0 0 0 4px rgb(15 76 58 / .14), 0 8px 18px -12px rgb(10 51 39 / .32); }
.k27-auth .field::placeholder { color: #7A7F80; }
.k27-auth .label { font-size: 14px; color: #33383A; }

/* Boutons : le principal en vert profond, le second blanc, le doux en vert pâle. Libellés à empattements, sans icône. */
.k27-auth .btn-primary, .k27-auth .btn-secondary { height: 60px; border-radius: 999px; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.k27-auth .btn-primary { border: 0; background: linear-gradient(180deg, #14614A 0%, #0A3327 100%); color: #fff; box-shadow: 0 16px 28px -16px rgb(10 51 39 / .75), inset 0 1px 0 rgb(255 255 255 / .16); }
.k27-auth .btn-primary:hover { background: linear-gradient(180deg, #187257 0%, #0C3D2F 100%); box-shadow: 0 16px 28px -16px rgb(10 51 39 / .75), inset 0 1px 0 rgb(255 255 255 / .16); }
.k27-auth .btn-secondary { border: 1px solid #D9DDD8; background: #fff; color: var(--k27-nuit); box-shadow: 0 8px 18px -14px rgb(10 51 39 / .3); white-space: normal; text-align: center; line-height: 1.15; padding-inline: 18px; }
.k27-auth .btn-secondary:hover { background: #F7F9F7; border-color: #C3CAC3; }
.k27-auth .k27-btn-doux { border-color: var(--k27-vert-bord); background: var(--k27-vert-pale); color: var(--k27-sapin); box-shadow: none; }
.k27-auth .k27-btn-doux:hover { background: #DDEEE2; border-color: #A9D0B4; }
.k27-auth .link { color: var(--k27-sapin); font-weight: 500; }

/* Pied : quatre liens séparés par un filet */
.k27-auth-bas { position: relative; z-index: 1; margin-top: clamp(16px, 3vh, 26px); }
.k27-auth-liens { gap: 6px 0; }
.k27-auth-liens a { padding-inline: 12px; color: #3F4547; font-size: 13.5px; }
.k27-auth-liens a + a { border-inline-start: 1px solid rgb(0 0 0 / .14); }
@media (max-width: 520px) {
  .k27-auth-fond { padding: 22px 14px 24px; background-size: 100% 300px, 62% 130px; }
  .k27-auth-carte { padding: 30px 20px 26px; border-radius: 28px; }
  .k27-auth-liens a { padding-inline: 9px; font-size: 12.5px; }
}
@media (min-width: 900px) {
  .k27-auth-fond { background-size: 100% min(52vh, 420px), min(34%, 460px) 190px; }
}

/* ---- Inscription (maquette du 23/11/2026) : onglets, étapes, pays ---- */
.k27-auth .k27-marque { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.k27-choix { max-width: none; gap: 4px; padding: 5px; border-radius: 18px; background: #fff; border: 1px solid #E1E4E0; box-shadow: 0 8px 18px -14px rgb(10 51 39 / .3); }
.k27-choix a { min-height: 44px; border-radius: 13px; color: #3F4547; font-size: 14.5px; font-weight: 500; }
.k27-choix a[aria-current] { background: linear-gradient(180deg, #14614A 0%, #0A3327 100%); color: #fff; font-weight: 600; box-shadow: 0 8px 16px -10px rgb(10 51 39 / .7); }
.k27-etapes-barre { height: 8px; background: #DADFDB; }
.k27-etapes-barre i { background: linear-gradient(90deg, #0A3327, #15704F); }
.k27-etapes-compte { font-size: 15px; font-weight: 700; color: var(--k27-nuit); }
.k27-auth .reg-legend { font-family: "Fraunces", Georgia, serif; font-size: 22px; font-weight: 700; letter-spacing: -.015em; color: var(--k27-nuit); }
.k27-auth .reg-number { width: 32px; height: 32px; background: var(--k27-nuit); font-family: var(--k27-texte); font-size: 15px; font-weight: 700; }

/* Pays du siège : carte blanche, petit drapeau à gauche, rond à cocher à droite. */
.k27-auth .seat-option { flex-direction: row; align-items: center; gap: 12px; min-height: 58px; padding: 10px 46px 10px 14px; overflow: visible; isolation: auto; border-color: #E1E4E0; border-radius: 15px; background: #fff; box-shadow: 0 8px 18px -14px rgb(10 51 39 / .3); }
.k27-auth .seat-drapeau, .k27-auth .seat-option:has(:checked) .seat-drapeau { position: static; inset: auto; z-index: auto; opacity: 1; flex: none; display: inline-flex; }
.k27-auth .seat-drapeau .k27-drapeau { display: inline-flex; width: 34px; height: 23px; border-radius: 5px; box-shadow: 0 0 0 1px rgb(0 0 0 / .1); }
.k27-auth .seat-label { font-size: 15.5px; font-weight: 600; color: var(--k27-encre); }
.k27-auth .seat-option::after { right: 14px; width: 22px; height: 22px; margin-top: -11px; box-shadow: inset 0 0 0 1.5px #C5CBC5; }
[dir="rtl"] .k27-auth .seat-option { padding: 10px 14px 10px 46px; }
[dir="rtl"] .k27-auth .seat-option::after { right: auto; left: 14px; }
.k27-auth .seat-option:has(:checked) { border-color: #8FC5A5; background: var(--k27-vert-pale); box-shadow: inset 0 0 0 1px #8FC5A5; }
.k27-auth .seat-option:has(:checked)::after { background-size: 13px; }
@media (hover: hover) and (pointer: fine) { .k27-auth .seat-option:hover .seat-drapeau { opacity: 1; } .k27-auth .seat-option:hover { border-color: #B9C2BA; } }
@media (max-width: 520px) {
  .k27-auth .k27-marque { font-size: 19px; }
  .k27-choix a { min-height: 42px; font-size: 13px; padding-inline: 4px; }
  .k27-auth .seat-option { gap: 10px; padding-inline-start: 12px; }
  .k27-auth .seat-label { font-size: 15px; }
}

/* Les menus cachés (langues, bulles d'aide) ne font plus défiler la page de côté ; la vague du bas reste sous les liens. */
body.k27-auth { overflow-x: clip; }
.k27-auth-fond { padding-bottom: 104px; background-size: 100% min(46vh, 340px), min(46%, 300px) 92px; }
@media (max-width: 520px) { .k27-auth-fond { padding-bottom: 96px; background-size: 100% 300px, 48% 84px; } }
@media (min-width: 900px) { .k27-auth-fond { padding-bottom: 120px; background-size: 100% min(52vh, 420px), min(30%, 420px) 110px; } }

/* Téléphone étroit : le nom du pays ne se coupe jamais au milieu d'un mot. */
.k27-auth .seat-label { overflow-wrap: normal; white-space: nowrap; }
@media (max-width: 430px) {
  .k27-auth .seat-option { gap: 7px; min-height: 54px; padding: 8px 33px 8px 9px; }
  .k27-auth .seat-drapeau .k27-drapeau { width: 24px; height: 16px; border-radius: 4px; }
  .k27-auth .seat-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; letter-spacing: -.02em; }
  .k27-auth .seat-option::after { right: 9px; width: 20px; height: 20px; margin-top: -10px; }
  [dir="rtl"] .k27-auth .seat-option { padding: 8px 10px 8px 34px; }
  [dir="rtl"] .k27-auth .seat-option::after { right: auto; left: 9px; }
}

/* ============ Accueil : maquettes d'Adrien du 23/11/2026 (mobile et PC) ============
   Titre à empattements en deux tons, filet doré, trois repères numérotés, bouton « Essayer Knipsy », trois garanties.
   Sans pictogramme décoratif. Sur téléphone : en-tête vert et arc doré ; sur ordinateur : le texte à gauche, les
   téléphones à droite sur une vague verte. */
.k27-marque { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.k27-accueil .k27-titre { font-family: "Fraunces", Georgia, serif; font-weight: 700; letter-spacing: -.025em; color: #0A3327; }
.k27-accueil .k27-vert { color: #15704F; }
.k27-trait-or { display: block; width: 150px; height: 4px; margin: clamp(10px, 1.8vh, 18px) auto 0; border-radius: 4px; background: linear-gradient(90deg, rgb(212 164 75 / 0), #D4A44B 22%, #D4A44B 78%, rgb(212 164 75 / 0)); }
.k27-reperes { counter-reset: repere; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: clamp(12px, 2.2vh, 20px) auto 0 !important; max-width: 620px; padding: 0; list-style: none; text-align: center; }
.k27-reperes li { counter-increment: repere; padding: 0 10px; font-size: 14px; line-height: 1.3; color: #0A3327; }
.k27-reperes li + li { border-inline-start: 1px solid rgb(10 51 39 / .16); }
.k27-reperes li::before { content: counter(repere); display: block; text-align: center; margin: 0 auto 6px; width: 26px; height: 26px; border-radius: 50%; background: #E8F3EB; color: #0F4C3A; font: 700 13px/26px var(--k27-texte); }
.k27-reperes b { display: block; font-weight: 600; }
.k27-reperes span { display: none; }
.k27-haut-bas { position: relative; z-index: 6; flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-block: 12px clamp(12px, 2vh, 20px); }
.k27-haut-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; }
.k27-btn.k27-essayer { min-height: 58px; padding: 0 34px; font-family: "Fraunces", Georgia, serif; font-size: 19px; font-weight: 600; background: linear-gradient(180deg, #14614A 0%, #0A3327 100%); box-shadow: 0 16px 28px -16px rgb(10 51 39 / .75), inset 0 1px 0 rgb(255 255 255 / .16); }
.k27-btn.k27-essayer:hover { background: linear-gradient(180deg, #187257 0%, #0C3D2F 100%); }
.k27-btn.k27-btn-clair { min-height: 58px; padding: 0 28px; border: 1px solid #D9DDD8; background: #fff; color: #0A3327; font-family: "Fraunces", Georgia, serif; font-size: 18px; font-weight: 600; box-shadow: 0 8px 18px -14px rgb(10 51 39 / .3); }
.k27-btn.k27-btn-clair:hover { background: #F7F9F7; }
.k27-garanties { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: #3F4547; }
.k27-garanties li { padding-inline: 12px; }
.k27-garanties li + li { border-inline-start: 1px solid rgb(0 0 0 / .16); }
.k27-haut { background-color: #fff; }
.k27-haut .k27-suite { display: none; }

/* Téléphone : en-tête vert, arc doré, le téléphone au milieu, le bouton sur toute la largeur en bas. */
@media (max-width: 899px) {
  body.site:has(.k27-accueil) .k27-entete { background: #0A3327; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.site:has(.k27-accueil) .k27-entete::after { display: none; }
  body.site:has(.k27-accueil) .k27-marque { color: #fff; }
  body.site:has(.k27-accueil) .k27-actions > .k27-ico-btn, body.site:has(.k27-accueil) .k27-actions > .k27-connexion, body.site:has(.k27-accueil) .k27-langues-menu > summary { color: #fff; }
  body.site:has(.k27-accueil) .k27-filet { background: rgb(255 255 255 / .28); }
  body.site:has(.k27-accueil) .k27-actions > .k27-creer { background: #15704F; color: #fff; box-shadow: 0 0 0 1px rgb(255 255 255 / .22) inset; }
  .k27-haut { padding-top: clamp(40px, 9vh, 84px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120' preserveAspectRatio='none'%3E%3Cpath d='M0 0H400V26C330 2 240 8 160 44C96 72 46 104 0 108Z' fill='%230A3327'/%3E%3Cpath d='M0 110C46 106 97 74 161 46C241 10 331 4 400 28' fill='none' stroke='%23D4A44B' stroke-width='2.4' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: top center; background-size: 100% clamp(70px, 12vh, 110px); }
  .k27-haut h1 { font-size: min(clamp(28px, 8.6vw, 54px), 7.2vh); line-height: 1.06; }
  .k27-haut h1 .k27-vert { white-space: nowrap; }
  .k27-haut .k27-sous { max-width: 30ch; font-size: clamp(16px, 4.3vw, 19px); }
  .k27-haut-texte { order: 1; }
  .k27-haut .k27-trio { order: 2; flex: 0 0 auto; height: clamp(250px, 42vh, 430px); margin-top: clamp(12px, 2.4vh, 26px); overflow: hidden; }
  .k27-haut-bas { order: 3; margin-top: -56px; padding-top: 30px; background: linear-gradient(180deg, rgb(255 255 255 / 0), #fff 46px); }
  .k27-haut-actions .k27-essayer { width: 100%; }
  .k27-haut-actions .k27-btn-clair { display: none; }
  .k27-garanties { font-size: 12.5px; }
  .k27-garanties li { padding-inline: 8px; }
}
@media (max-width: 420px) { .k27-reperes li { padding: 0 6px; font-size: 13px; } }
@media (max-height: 640px) and (max-width: 899px) { .k27-reperes { display: none; } }

/* Ordinateur : le texte à gauche, les téléphones à droite sur la vague verte, les trois repères en bande au bas de l'écran. */
@media (max-width: 899px) { .k27-haut .k27-reperes { order: 2; width: min(620px, 100% - 28px); } .k27-haut .k27-trio { order: 3; } .k27-haut-bas { order: 4; } }
@media (min-width: 900px) {
  .k27-haut { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; column-gap: 24px; padding: clamp(24px, 6vh, 64px) max(24px, calc((100% - 1180px) / 2)) clamp(16px, 3vh, 28px); text-align: start;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' preserveAspectRatio='none'%3E%3Cpath d='M600 30V600H40C190 560 290 470 350 340C410 210 490 96 600 30Z' fill='%230F4C3A'/%3E%3Cpath d='M38 600C188 560 288 470 348 340C408 210 488 96 600 30' fill='none' stroke='%23D4A44B' stroke-width='2.4' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right bottom; background-size: 54% 86%; }
  .k27-haut > .k27-large { width: auto; margin: 0; }
  .k27-haut-texte { grid-column: 1; grid-row: 1; padding-top: clamp(0px, 7vh, 80px); }
  .k27-haut-bas { grid-column: 1; grid-row: 2; align-items: flex-start; padding-block: clamp(16px, 3vh, 28px) 0; }
  .k27-haut .k27-trio { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; align-items: flex-start; }
  .k27-haut h1 { font-size: min(clamp(44px, 4.9vw, 70px), 10vh); line-height: 1.04; }
  .k27-haut h1 .k27-vert { white-space: nowrap; }
  .k27-haut .k27-trait-or { margin-inline: 0; width: 120px; }
  .k27-haut .k27-sous { margin-inline: 0; max-width: 30ch; }
  .k27-haut-actions, .k27-garanties { justify-content: flex-start; }
  .k27-garanties li:first-child { padding-inline-start: 0; }
  .k27-haut .k27-reperes { grid-column: 1 / span 2; grid-row: 4; align-self: end; max-width: none; margin: clamp(14px, 3vh, 30px) 0 0 !important; gap: 14px; text-align: start; position: relative; z-index: 3; }
  .k27-reperes li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px 18px; border: 1px solid #E1E4E0; border-radius: 16px; background: #fff; box-shadow: 0 10px 22px -14px rgb(10 51 39 / .35); font-size: 15px; }
  .k27-reperes li + li { border-inline-start: 1px solid #E1E4E0; }
  .k27-reperes li::before { grid-row: 1 / span 2; margin: 0; width: 34px; height: 34px; font: 700 15px/34px var(--k27-texte); }
  .k27-reperes b { font-family: "Fraunces", Georgia, serif; font-size: 17px; font-weight: 600; }
  .k27-reperes span { display: block; color: var(--k27-gris); font-size: 13.5px; line-height: 1.3; }
  .k27-trio::before { display: none; }
  .k27-trio .k27-tel { width: min(286px, 22vw, 44vh); }
  .k27-trio .k27-cote { width: min(236px, 18.2vw, 36vh); margin-top: 64px; }
}

/* Pays du siège sur ordinateur (bug vu par Adrien le 23/11 : le nom passait sous la coche, le plan comptable débordait) :
   deux cartes par ligne à toutes les largeurs, le nom seul, jamais sous le rond à cocher. */
.k27-auth .grid:has(> .seat-option) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.k27-auth .seat-plan { display: none; }
.k27-auth .seat-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ============ Tout le site vitrine dans le même habit (Adrien, 23/11/2026 : « Fais pareil sur toutes les pages ») ============
   Titres à empattements vert nuit, filet doré sous les titres de section, boutons en vert profond, et sur téléphone
   l'en-tête vert de la connexion. Portée : body.site (gabarit layouts/site.php), jamais les espaces connectés. */
body.site h1, body.site h2, body.site .section-title, body.site .font-serif, body.site .k27-titre { font-family: "Fraunces", Georgia, serif; font-weight: 700; letter-spacing: -.022em; color: #0A3327; }
body.site .k27-tuile h3, body.site .k27-chacun h3 { font-family: "Fraunces", Georgia, serif; letter-spacing: -.02em; }
body.site .k27-sombre h3, body.site .k27-sombre .k27-titre, body.site .k27-fin .k27-titre { color: inherit; }
body.site .k27-tete h2::after, body.site .k27-page > .k27-large > h1::after, body.site .site-shell > h1::after { content: ""; display: block; width: 120px; height: 4px; margin: clamp(10px, 1.6vh, 16px) auto 0; border-radius: 4px; background: linear-gradient(90deg, rgb(212 164 75 / 0), #D4A44B 22%, #D4A44B 78%, rgb(212 164 75 / 0)); }
body.site .site-shell > h1::after { margin-inline: 0; }
body.site .k27-btn, body.site .btn-primary { font-family: "Fraunces", Georgia, serif; font-weight: 600; background: linear-gradient(180deg, #14614A 0%, #0A3327 100%); color: #fff; border: 0; box-shadow: 0 16px 28px -16px rgb(10 51 39 / .75), inset 0 1px 0 rgb(255 255 255 / .16); }
body.site .k27-btn:hover, body.site .btn-primary:hover { background: linear-gradient(180deg, #187257 0%, #0C3D2F 100%); }
body.site .k27-btn.k27-btn-clair, body.site .btn-secondary { font-family: "Fraunces", Georgia, serif; font-weight: 600; border: 1px solid #D9DDD8; background: #fff; color: #0A3327; box-shadow: 0 8px 18px -14px rgb(10 51 39 / .3); }
body.site .k27-btn.k27-btn-clair:hover, body.site .btn-secondary:hover { background: #F7F9F7; }
body.site .k27-plus, body.site .link { color: #0F4C3A; }
@media (max-width: 899px) {
  body.site .k27-entete { background: #0A3327; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.site .k27-entete::after { display: none; }
  body.site .k27-marque { color: #fff; }
  body.site .k27-actions > .k27-ico-btn, body.site .k27-actions > .k27-connexion, body.site .k27-langues-menu > summary { color: #fff; }
  body.site .k27-actions > .k27-ico-btn:hover, body.site .k27-actions > .k27-connexion:hover, body.site .k27-langues-menu > summary:hover { background: rgb(255 255 255 / .12); color: #fff; }
  body.site .k27-actions > .k27-ico-btn[aria-current], body.site .k27-actions > .k27-connexion[aria-current] { background: rgb(255 255 255 / .16); color: #fff; }
  body.site .k27-filet { background: rgb(255 255 255 / .28); }
  body.site .k27-actions > .k27-creer { background: #15704F; color: #fff; box-shadow: 0 0 0 1px rgb(255 255 255 / .22) inset; }
}

/* Sur téléphone, chaque page du site commence par la même vague verte à liseré doré que la connexion et l'accueil. */
@media (max-width: 899px) {
  body.site #contenu { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120' preserveAspectRatio='none'%3E%3Cpath d='M400 0H0V26C70 2 160 8 240 44C304 72 354 104 400 108Z' fill='%230A3327'/%3E%3Cpath d='M400 110C354 106 303 74 239 46C159 10 69 4 0 28' fill='none' stroke='%23D4A44B' stroke-width='2.4' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: top center; background-size: 100% clamp(44px, 7vh, 64px); }
  body.site .k27-page { padding-top: max(52px, 7vh); }
}

/* Anciennes pages du site (Soutenir, guides, Nouveautés, pages légales) : mêmes titres, mêmes champs, sans pastille à icône. */
body.site main :is(.page-title, .section-title, .h-display, h1.font-serif, h2.font-serif, h3.font-serif, p.font-serif) { font-family: "Fraunces", Georgia, serif; font-weight: 700; letter-spacing: -.022em; color: #0A3327; }
body.site main .page-title::after { content: ""; display: block; width: 120px; height: 4px; margin-top: clamp(10px, 1.6vh, 16px); border-radius: 4px; background: linear-gradient(90deg, #D4A44B, #D4A44B 70%, rgb(212 164 75 / 0)); }
body.site .safe-icon { display: none; }
body.site main .field { border-radius: 16px; border-color: #E1E4E0; box-shadow: 0 8px 18px -12px rgb(10 51 39 / .3); }
body.site main .field:focus { border-color: #0F4C3A; box-shadow: 0 0 0 4px rgb(15 76 58 / .14), 0 8px 18px -12px rgb(10 51 39 / .3); }
body.site main .card, body.site main .k27-contact-carte { border-radius: 24px; box-shadow: 0 24px 50px -34px rgb(10 51 39 / .4), 0 2px 8px rgb(10 51 39 / .05); }

/* Jauge de solidité du mot de passe (23/11/2026) : trois segments et un mot, sous le champ. */
.k27-jauge { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; color: #55595A; }
.k27-jauge[hidden], .k27-jauge [hidden] { display: none; }
.k27-jauge-barre { display: inline-flex; gap: 4px; flex: none; }
.k27-jauge-barre i { width: 28px; height: 5px; border-radius: 5px; background: #DADFDB; transition: background-color .2s ease; }
.k27-jauge[data-niveau="1"] .k27-jauge-barre i:nth-child(1) { background: #D4A44B; }
.k27-jauge[data-niveau="2"] .k27-jauge-barre i:nth-child(-n+2) { background: #15704F; }
.k27-jauge[data-niveau="3"] .k27-jauge-barre i { background: #0A3327; }

/* Téléphone (Adrien, 23/11/2026 : « tout nickel sans devoir scroller, ou presque », connexion et inscription) :
   le logo de la carte s'efface (il est dans l'en-tête), marges et hauteurs resserrées, le sous-titre de l'inscription
   laisse la place au formulaire. */
@media (max-width: 520px) {
  .k27-auth-fond { padding: 12px 12px 64px; background-size: 100% 220px, 44% 62px; }
  .k27-auth-carte { padding: 18px 16px 16px; border-radius: 24px; }
  .k27-auth-carte .k27-auth-logo { display: none; }
  .k27-auth .auth-title, .k27-auth-carte > h1, .k27-auth-carte h1.h-display { font-size: clamp(26px, 7.4vw, 31px); }
  .k27-auth .auth-sub { margin-top: 6px; font-size: 14.5px; line-height: 1.35; }
  .k27-auth .auth-head::after { margin-top: 10px; width: 130px; }
  .k27-auth-carte:has(form[action$="/inscription"]) .auth-sub, .k27-auth-carte:has(form[action$="/inscription/particulier"]) .auth-sub { display: none; }
  .k27-auth-carte form.mt-8, .k27-auth-carte form.mt-7 { margin-top: 14px; }
  .k27-auth-carte .space-y-4 > :not(:last-child) { margin-block-end: 10px; }
  .k27-auth-carte .space-y-8 > :not(:last-child) { margin-block-end: 14px; }
  .k27-auth .field { height: 50px; border-radius: 14px; font-size: 16px; }
  .k27-auth .btn-primary, .k27-auth .btn-secondary { height: 52px; font-size: 17.5px; }
  .k27-auth-carte .min-h-11 { min-height: 36px; }
  .k27-auth-carte .mt-7 { margin-top: 12px; }
  .k27-auth-carte .mt-4 { margin-top: 10px; }
  .k27-auth-carte .mt-3 { margin-top: 8px; }
  .k27-choix { margin-top: 10px; padding: 4px; border-radius: 15px; }
  .k27-choix a { min-height: 38px; }
  .k27-auth .reg-legend { margin-bottom: 6px; font-size: 19px; }
  .k27-auth .reg-number { width: 28px; height: 28px; font-size: 13px; }
  .k27-auth .label { margin-bottom: 4px; font-size: 13.5px; }
  .k27-auth .seat-option { min-height: 48px; padding-block: 6px; }
  .k27-auth .grid:has(> .seat-option) { gap: 8px; }
  .k27-etapes-tete { margin-block: 2px; }
  .k27-auth-bas { margin-top: 10px; }
}

/* Ordinateur : les pages intérieures du site (Contact, Le projet, Soutenir, guides, Nouveautés, pages légales) portent
   le même en-tête vert et la même vague à liseré doré que la connexion et que le téléphone (Adrien, 23/11/2026 :
   « oui »). L'accueil garde sa propre composition. */
@media (min-width: 900px) {
  body.site:not(:has(.k27-accueil:not(.k27-projet))) .k27-entete { background: #0A3327; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.site:not(:has(.k27-accueil:not(.k27-projet))) .k27-entete::after { display: none; }
  body.site:not(:has(.k27-accueil:not(.k27-projet))) .k27-marque, body.site:not(:has(.k27-accueil:not(.k27-projet))) .k27-menu { color: #fff; }
  body.site:not(:has(.k27-accueil:not(.k27-projet))) .k27-actions > .k27-ico-btn, body.site:not(:has(.k27-accueil:not(.k27-projet))) .k27-actions > .k27-connexion, body.site:not(:has(.k27-accueil:not(.k27-projet))) .k27-langues-menu > summary { color: #fff; }
  body.site:not(:has(.k27-accueil:not(.k27-projet))) .k27-actions > .k27-ico-btn:hover, body.site:not(:has(.k27-accueil:not(.k27-projet))) .k27-actions > .k27-connexion:hover, body.site:not(:has(.k27-accueil:not(.k27-projet))) .k27-langues-menu > summary:hover { background: rgb(255 255 255 / .12); color: #fff; }
  body.site:not(:has(.k27-accueil:not(.k27-projet))) .k27-actions > .k27-connexion[aria-current] { background: rgb(255 255 255 / .16); color: #fff; }
  body.site:not(:has(.k27-accueil:not(.k27-projet))) .k27-filet { background: rgb(255 255 255 / .28); }
  body.site:not(:has(.k27-accueil:not(.k27-projet))) .k27-actions > .k27-creer { background: #15704F; color: #fff; box-shadow: 0 0 0 1px rgb(255 255 255 / .22) inset; }
  body.site:not(:has(.k27-accueil:not(.k27-projet))) #contenu { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120' preserveAspectRatio='none'%3E%3Cpath d='M400 0H0V26C70 2 160 8 240 44C304 72 354 104 400 108Z' fill='%230A3327'/%3E%3Cpath d='M400 110C354 106 303 74 239 46C159 10 69 4 0 28' fill='none' stroke='%23D4A44B' stroke-width='2.4' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: top center; background-size: 100% clamp(70px, 11vh, 110px); }
  body.site:not(:has(.k27-accueil:not(.k27-projet))) #contenu > :first-child:not(.k27-accueil), body.site:not(:has(.k27-accueil:not(.k27-projet))) #contenu > script + * { padding-top: clamp(96px, 15vh, 150px); }
  body.site:not(:has(.k27-accueil:not(.k27-projet))) .k27-projet-haut { padding-top: clamp(84px, 12vh, 120px); }
}
