/* =============================================================================
   AMPIRELINK — carte de visite numérique premium (/pseudo) et « Tous mes liens » (/pseudo/liens)
   Utilisée aussi par l'aperçu en direct de l'espace (même balisage, rendu par inc/cartes.php).

   Le thème arrive en variables CSS posées sur .ck (voir al_carte_style) : --acc, --acc-2, --encre, --halo,
   --acc-doux, --acc-trait, --fond-h, --fond-v, --voile, --logo, --ck-r. Aucune règle ne dépend du nom du
   thème : changer de thème change les couleurs, jamais la disposition ni l'ordre des éléments.

   RÈGLE : la photo reste À GAUCHE et les informations À DROITE, sur ordinateur, tablette ET téléphone.
   Les tailles s'adaptent à la largeur de la carte (requêtes de conteneur), pas la disposition.
   ============================================================================= */
.ck {
  --c-texte: #f1f5f9; --c-texte-2: #c8d3e2; --c-discret: #8fa0b8;
  --surface: rgba(6, 14, 32, .62); --surface-2: rgba(10, 22, 48, .7); --trait: rgba(255, 255, 255, .1); --sep: rgba(255, 255, 255, .08);
  container: carte / inline-size;
  position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; background: #04070d;
  color: var(--c-texte); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5; -webkit-font-smoothing: antialiased; text-align: left;
}
.ck-clair {
  background: #eef1f5; --c-texte: #0b1524; --c-texte-2: #334155; --c-discret: #5b6b80;
  --surface: rgba(255, 255, 255, .78); --surface-2: #ffffff; --trait: rgba(15, 23, 42, .1); --sep: rgba(15, 23, 42, .08);
}
.ck *, .ck *::before, .ck *::after { box-sizing: border-box; }
.ck a { color: inherit; text-decoration: none; }
.ck svg { display: block; flex: none; }
.ck button { font: inherit; color: inherit; }
.ck :focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 10px; }

/* ---- arrière-plan : fixe sur la page, image horizontale ou verticale selon l'écran ---- */
.ck-fond { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--voile), var(--fond-h) center / cover no-repeat, #04070d; }
.ck-clair .ck-fond { background: var(--voile), var(--fond-h) center / cover no-repeat, #eef1f5; }
@media (orientation: portrait) {
  .ck-fond { background: var(--voile), var(--fond-v) center / cover no-repeat, #04070d; }
  .ck-clair .ck-fond { background: var(--voile), var(--fond-v) center / cover no-repeat, #eef1f5; }
}
/* thèmes sans photo : halos de la couleur du thème et trame de points lumineux */
.ck-sans-image .ck-fond::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 45% at 12% 8%, var(--acc-doux), transparent 70%),
    radial-gradient(50% 45% at 92% 88%, var(--acc-doux), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.4px) 0 0 / 22px 22px;
  -webkit-mask: radial-gradient(120% 90% at 50% 40%, #000 30%, rgba(0, 0, 0, .35) 100%);
  mask: radial-gradient(120% 90% at 50% 40%, #000 30%, rgba(0, 0, 0, .35) 100%);
}
.ck-clair.ck-sans-image .ck-fond::after { background:
    radial-gradient(55% 45% at 12% 8%, var(--acc-doux), transparent 70%),
    radial-gradient(50% 45% at 92% 88%, var(--acc-doux), transparent 70%),
    radial-gradient(rgba(15, 23, 42, .08) 1px, transparent 1.4px) 0 0 / 22px 22px; }
/* aperçu dans l'espace : le fond reste derrière l'écran du téléphone pendant le défilement */
.ck-apercu { min-height: 100%; }
.ck-apercu .ck-fond { position: sticky; top: 0; display: block; height: 100cqh; margin-bottom: -100cqh;
  background: var(--voile), var(--fond-v) center / cover no-repeat, #04070d; }
.ck-apercu.ck-clair .ck-fond { background: var(--voile), var(--fond-v) center / cover no-repeat, #eef1f5; }

/* ---- page : la carte centrée dans la hauteur, le pied en dessous ---- */
.ck-in {
  width: 100%; max-width: 1120px; margin: 0 auto; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto; align-items: center; gap: 16px;
  padding: clamp(12px, 3cqi, 40px) max(clamp(10px, 3cqi, 40px), env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(clamp(10px, 3cqi, 40px), env(safe-area-inset-left));
}
.ck-apercu .ck-in { min-height: 100cqh; }

/* ---- carte principale « fixe » : elle tient entière dans l'écran, sans aucun défilement.
   carte.js mesure la carte et calcule --ck-s (réduction si l'écran est trop bas) ; la carte est alors dessinée
   à l'identique puis réduite, centrée. Sans JavaScript, la page reste simplement défilable. ---- */
html.ck-ecran-fixe, html.ck-ecran-fixe body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.ck-ecran-fixe .ck { width: calc(100vw / var(--ck-s, 1)); height: var(--ck-vh, 100dvh); min-height: 0; overflow: hidden; }
html.ck-ecran-fixe .ck-in {
  position: absolute; top: 0; left: 50vw; min-height: 0; height: calc(var(--ck-vh, 100dvh) / var(--ck-s, 1));
  transform: translateX(-50%) scale(var(--ck-s, 1)); transform-origin: top center;
}
html.ck-ecran-fixe.ck-mesure .ck-in { height: auto; }

/* ---- la carte : un panneau de verre, bordure lumineuse dégradée ---- */
.ck-panneau {
  position: relative; isolation: isolate; display: grid; gap: clamp(14px, 2.6cqi, 26px); min-width: 0;
  padding: clamp(14px, 3.6cqi, 40px); border-radius: clamp(20px, 3.4cqi, 32px);
  background:
    radial-gradient(70% 38% at 30% 0%, var(--acc-doux), transparent 72%),
    linear-gradient(160deg, rgba(10, 20, 44, .82), rgba(4, 9, 22, .78) 55%, rgba(6, 14, 34, .82));
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .03), 0 0 60px -18px var(--halo), 0 60px 120px -50px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .12);
  animation: ck-entree .45s ease-out both;
}
.ck-panneau::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: -1;
  background: linear-gradient(135deg, var(--acc) 0%, rgba(255, 255, 255, .16) 24%, rgba(255, 255, 255, .05) 50%, var(--acc-trait) 76%, var(--acc) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.ck-clair .ck-panneau {
  background: radial-gradient(70% 38% at 30% 0%, var(--acc-doux), transparent 72%), linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .7));
  box-shadow: 0 50px 100px -50px rgba(15, 30, 60, .45), inset 0 1px 0 #fff;
}
@keyframes ck-entree { from { opacity: 0; transform: translateY(8px); } }

/* ---- en-tête : logo, « Carte de visite numérique », partage ---- */
.ck-haut { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; }
.ck-logo { display: block; flex: none; }
.ck-logo-img { display: block; width: clamp(118px, 24cqi, 230px); aspect-ratio: 8 / 1; background: var(--logo) left center / contain no-repeat; }
.ck-clair .ck-logo-img { filter: drop-shadow(0 0 .6px rgba(8, 17, 31, .95)) drop-shadow(0 1px 2px rgba(8, 17, 31, .4)); }
.ck-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ck-pastille {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--acc-trait); background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--c-texte-2); white-space: nowrap;
}
.ck-pastille svg { color: var(--acc); }
/* « Mon espace » : visible uniquement par le propriétaire connecté */
.ck-espace {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 15px; border-radius: 999px; white-space: nowrap;
  font-size: 13px; font-weight: 800; color: var(--encre); background: linear-gradient(100deg, var(--acc), var(--acc-2));
  box-shadow: 0 0 22px -6px var(--halo), inset 0 1px 0 rgba(255, 255, 255, .3); transition: box-shadow .2s, transform .15s;
}
.ck-espace:hover { box-shadow: 0 0 30px -4px var(--halo), inset 0 1px 0 rgba(255, 255, 255, .4); }
.ck-espace:active { transform: scale(.97); }
.ck a.ck-espace { color: var(--encre); }
.ck-espace svg { flex: none; }
/* thèmes clairs (Blanc et argent, Clair) : bouton « verre dépoli », assorti au bouton de partage */
.ck-clair a.ck-espace { color: #0f172a; border: 1px solid rgba(15, 23, 42, .14); border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(236, 240, 245, .86));
  box-shadow: 0 6px 18px -8px rgba(15, 23, 42, .45), inset 0 1px 0 #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ck-clair a.ck-espace svg { color: var(--acc); }
.ck-clair a.ck-espace:hover { border-color: rgba(15, 23, 42, .3); box-shadow: 0 8px 22px -8px rgba(15, 23, 42, .5), inset 0 1px 0 #fff; }
.ck-rond {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid var(--acc-trait); background: var(--surface); color: var(--c-texte); transition: border-color .2s, box-shadow .2s, transform .15s;
}
.ck-rond:hover { border-color: var(--acc); box-shadow: 0 0 18px -4px var(--halo); }
.ck-rond:active { transform: scale(.95); }
.ck-langue { font: 800 12.5px/1 var(--body, Inter, sans-serif); letter-spacing: .06em; text-decoration: none; color: inherit; }
.ck-langue:hover { text-decoration: none; }

/* =============================================================================
   PROFIL — photo à gauche, informations à droite, à toutes les tailles
   ============================================================================= */
.ck-profil {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "photo infos" "tuiles tuiles";
  align-items: center; column-gap: clamp(12px, 3.6cqi, 40px); row-gap: clamp(12px, 2.4cqi, 20px);
}
.ck-profil > .ck-avatar { grid-area: photo; align-self: center; }
.ck-infos { grid-area: infos; container: infos / inline-size; display: grid; gap: clamp(4px, 1cqi, 10px); min-width: 0; }
.ck-tuiles { grid-area: tuiles; }

/* photo : cercle, contour bleu électrique, lueur cyan, anneau qui tourne lentement */
.ck-avatar { position: relative; flex: none; width: clamp(84px, 25cqi, 236px); aspect-ratio: 1; border-radius: 50%; padding: clamp(3px, .5cqi, 5px);
  box-shadow: 0 0 clamp(26px, 6cqi, 70px) -8px var(--halo); }
.ck-avatar::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--acc), rgba(255, 255, 255, .08) 26%, var(--acc-2) 50%, rgba(255, 255, 255, .08) 76%, var(--acc));
  animation: ck-tourne 14s linear infinite;
}
.ck-avatar::after { content: ""; position: absolute; inset: clamp(-10px, -1.2cqi, -5px); border-radius: 50%; border: 1px solid var(--acc-trait); opacity: .6; pointer-events: none; }
.ck-avatar-in { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #23365a, #0a1222 72%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.ck-clair .ck-avatar-in { background: radial-gradient(circle at 35% 30%, #ffffff, #cfd7e1 75%); }
.ck-avatar-in img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.ck-initiales { font-family: 'Archivo Black', 'Arial Black', Impact, sans-serif; font-size: clamp(26px, 7cqi, 64px); color: #e8eef6; letter-spacing: .02em; }
.ck-clair .ck-initiales { color: #334155; }
@keyframes ck-tourne { to { transform: rotate(360deg); } }

/* nom : taille selon la place disponible (--n = nombre de caractères), passe à la ligne s'il le faut */
.ck-nom {
  margin: 0; font-family: 'Inter', system-ui, sans-serif; font-weight: 800; letter-spacing: -.015em; line-height: 1.08;
  font-size: clamp(17px, calc(100cqi / (var(--n, 14) * .58)), 52px); overflow-wrap: anywhere; text-wrap: balance;
}
.ck-nom b {
  font-weight: 800;
  background: linear-gradient(100deg, var(--acc) 0%, var(--acc) 32%, #ffffff 50%, var(--acc) 68%, var(--acc-2) 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ck-reflet 7s ease-in-out infinite;
}
.ck-clair .ck-nom b { background-image: linear-gradient(100deg, var(--acc) 0%, var(--acc-2) 40%, #94a3b8 50%, var(--acc-2) 60%, var(--acc) 100%); }
@keyframes ck-reflet { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.ck-activites { margin: 0; display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; font-size: clamp(10px, 3.4cqi, 15px); font-weight: 600; letter-spacing: clamp(.08em, .9cqi, .2em); text-transform: uppercase; color: var(--c-texte); }
.ck-activites span { white-space: nowrap; }
.ck-activites i { font-style: normal; color: var(--acc); margin: 0 .5em; }
.ck-trait { display: block; width: clamp(30px, 10cqi, 56px); height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--acc), var(--acc-2)); box-shadow: 0 0 14px var(--halo); margin: 2px 0; }
.ck-bio { margin: 0; color: var(--c-texte-2); font-size: clamp(12.5px, 3.6cqi, 18px); line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.ck-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: clamp(11.5px, 3cqi, 13.5px); color: var(--c-discret); }
.ck-meta span { display: inline-flex; align-items: center; gap: 5px; }
.ck-meta svg { color: var(--acc); }

/* indicateurs : liens, QR code, statistiques */
.ck-tuiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(6px, 1.4cqi, 14px); }
.ck-tuile {
  display: flex; align-items: center; justify-content: center; gap: clamp(6px, 1.4cqi, 14px); min-height: clamp(54px, 9cqi, 84px); padding: 8px; min-width: 0;
  border-radius: clamp(12px, 1.8cqi, 18px); border: 1px solid var(--acc-trait); background: var(--surface); cursor: pointer; text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); transition: border-color .2s, box-shadow .2s, transform .15s;
}
.ck-tuile svg { color: var(--acc); width: clamp(18px, 3.6cqi, 30px); height: clamp(18px, 3.6cqi, 30px); filter: drop-shadow(0 0 8px var(--halo)); }
.ck-tuile > span { display: grid; min-width: 0; }
.ck-tuile strong { font-size: clamp(16px, 3.8cqi, 26px); font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ck-tuile strong.ck-mot { font-size: clamp(13px, 2.8cqi, 19px); letter-spacing: .02em; }
.ck-tuile small { font-size: clamp(9px, 1.9cqi, 12px); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-discret); white-space: nowrap; }
div.ck-tuile { cursor: default; }
a.ck-tuile:hover, button.ck-tuile:hover { border-color: var(--acc); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 22px -6px var(--halo); }
a.ck-tuile:active, button.ck-tuile:active { transform: scale(.97); }

/* =============================================================================
   RÉSEAUX ESSENTIELS — 4 cartes homogènes
   ============================================================================= */
.ck-sociaux { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(6px, 1.6cqi, 16px); }
.ck-sociaux.ck-n1 { grid-template-columns: minmax(0, 1fr); max-width: 50%; }
.ck-sociaux.ck-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ck-sociaux.ck-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ck-social {
  position: relative; display: grid; justify-items: center; align-content: center; gap: clamp(6px, 1.4cqi, 12px);
  min-height: clamp(78px, 15cqi, 128px); padding: clamp(8px, 1.6cqi, 16px) 6px; border-radius: clamp(14px, 2cqi, 20px);
  border: 1px solid var(--acc-trait); background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); transition: border-color .2s, box-shadow .2s, transform .15s;
}
.ck-social:hover { border-color: var(--acc); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 26px -8px var(--halo); transform: translateY(-2px); }
.ck-social:active { transform: scale(.97); }
.ck-social-ico { width: clamp(30px, 7cqi, 54px); height: clamp(30px, 7cqi, 54px); border-radius: 28%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--acc), var(--acc-2)); color: var(--encre); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 22px -12px rgba(0, 0, 0, .8); }
.ck-social-ico svg { width: 58%; height: 58%; }
.ck-social > span:not(.ck-social-ico) { font-size: clamp(9px, 2.1cqi, 15px); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-social > svg { position: absolute; right: clamp(6px, 1.4cqi, 14px); bottom: clamp(8px, 1.8cqi, 18px); color: var(--c-discret); width: clamp(10px, 1.8cqi, 16px); height: clamp(10px, 1.8cqi, 16px); }
.ck-social-ico.is-brand, .ck-ico.is-brand { background: linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 52%), var(--brand); color: var(--brand-fg); }
.ck-in-txt { font: 800 clamp(13px, 3cqi, 22px)/1 'Inter', system-ui, sans-serif; letter-spacing: -.02em; }

/* =============================================================================
   COORDONNÉES — icône à gauche, information au centre, flèche à droite
   ============================================================================= */
.ck-coords { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, 1.6cqi, 16px); }
.ck-coords.ck-n1 { grid-template-columns: minmax(0, 1fr); }
.ck-coords.ck-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ck-coord {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(8px, 1.6cqi, 14px);
  min-height: clamp(56px, 10cqi, 82px); padding: 8px clamp(10px, 1.6cqi, 16px) 8px clamp(8px, 1.4cqi, 14px); border-radius: clamp(14px, 2cqi, 18px);
  border: 1px solid var(--acc-trait); background: var(--surface); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); transition: border-color .2s, box-shadow .2s, transform .15s; min-width: 0;
}
.ck-coord:hover { border-color: var(--acc); box-shadow: 0 0 24px -8px var(--halo); }
.ck-coord:active { transform: scale(.98); }
.ck-coord-ico { width: clamp(32px, 6cqi, 46px); height: clamp(32px, 6cqi, 46px); border-radius: 12px; display: grid; place-items: center; flex: none; }
.ck-ico-mail { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; }
.ck-ico-gmail { background: #ffffff; }
.ck-ico-tel { background: linear-gradient(135deg, var(--acc), var(--acc-2)); color: var(--encre); }
.ck-ico-site { background: var(--acc-doux); color: var(--acc); border: 1px solid var(--acc-trait); }
.ck-coord-txt { display: grid; min-width: 0; }
.ck-coord-txt small { font-size: clamp(9.5px, 1.8cqi, 12px); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-discret); }
.ck-coord-txt b { font-size: clamp(12px, 2cqi, 15px); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-coord > svg { color: var(--c-discret); }

/* =============================================================================
   BAS DE CARTE — « Ma carte de visite », « Un projet, une collaboration ? », « TOUS MES LIENS »
   ============================================================================= */
.ck-bas { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(10px, 1.8cqi, 18px); align-items: stretch; }
.ck-bas-droite { display: grid; gap: clamp(10px, 1.8cqi, 18px); min-width: 0; }
.ck-vcarte {
  display: grid; gap: clamp(9px, 1.6cqi, 14px); padding: clamp(10px, 1.8cqi, 18px); min-width: 0;
  border-radius: clamp(16px, 2.2cqi, 22px); border: 1px solid var(--acc-trait); background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}
.ck-vcarte-tete { display: flex; align-items: center; gap: clamp(10px, 2cqi, 16px); padding: 2px 4px 0; min-width: 0; }
.ck-vcarte-ico { display: grid; place-items: center; flex: none; width: clamp(34px, 6cqi, 44px); height: clamp(34px, 6cqi, 44px); color: var(--acc); }
.ck-vcarte-ico svg { width: 100%; height: 100%; filter: drop-shadow(0 0 8px var(--halo)); }
.ck-vcarte-tete > span:last-child { display: grid; min-width: 0; }
.ck-vcarte-tete b { font-size: clamp(16px, 3.2cqi, 22px); font-weight: 800; line-height: 1.2; }
.ck-vcarte-tete small { font-size: clamp(12px, 2.2cqi, 14px); color: var(--c-texte-2); }
/* bouton principal : enregistrer le contact (fichier .vcf) */
.ck-enreg {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(10px, 2cqi, 16px);
  min-height: clamp(54px, 11cqi, 76px); padding: 7px clamp(14px, 3cqi, 26px); border-radius: clamp(14px, 2cqi, 18px);
  /* dégradé lumineux de la couleur du thème, assez soutenu pour un texte blanc lisible */
  --e1: color-mix(in srgb, var(--acc-2) 72%, #000); --e2: color-mix(in srgb, var(--acc) 70%, #000);
  background: linear-gradient(100deg, var(--e1), var(--e2) 50%, var(--e1)); background-size: 200% 100%; color: #fff;
  border: 1px solid color-mix(in srgb, var(--acc) 60%, #fff);
  box-shadow: 0 0 30px -6px var(--halo), inset 0 1px 0 rgba(255, 255, 255, .3); transition: box-shadow .25s, transform .15s, background-position .6s;
}
.ck[data-theme-carte="bleu"] .ck-enreg { --e1: #0b4fd6; --e2: #1688f0; }
.ck[data-theme-carte="argent"] .ck-enreg { --e1: #cbd5e1; --e2: #f1f5f9; color: #0b0d10; }
.ck-enreg:hover { background-position: 100% 0; box-shadow: 0 0 42px -4px var(--halo), inset 0 1px 0 rgba(255, 255, 255, .4); }
.ck-enreg:active { transform: scale(.98); }
.ck-enreg > svg { justify-self: end; width: clamp(22px, 4cqi, 28px); height: clamp(22px, 4cqi, 28px); }
.ck-enreg > span { display: grid; min-width: 0; }
.ck-enreg b { font-size: clamp(15px, 3cqi, 19px); font-weight: 800; line-height: 1.25; }
.ck-enreg small { font-size: clamp(10.5px, 1.9cqi, 12.5px); opacity: .9; line-height: 1.3; }
/* partager ma carte */
.ck-vcarte-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(8px, 1.6cqi, 14px); }
.ck-vcarte-actions.ck-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* « Partager » + « Installer la carte » */
.ck-vact[hidden] { display: none; }
.ck-vact {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(8px, 1.6cqi, 12px); text-align: left; cursor: pointer;
  min-height: clamp(50px, 10cqi, 72px); padding: 6px clamp(10px, 2cqi, 16px); border-radius: clamp(14px, 2cqi, 18px);
  border: 1px solid var(--acc-trait); background: var(--surface-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: border-color .2s, box-shadow .2s, transform .15s; min-width: 0;
}
.ck-vact:hover { border-color: var(--acc); box-shadow: 0 0 22px -8px var(--halo); }
.ck-vact:active { transform: scale(.98); }
.ck-vact > svg { color: var(--acc); width: clamp(22px, 4cqi, 28px); height: clamp(22px, 4cqi, 28px); }
.ck-vact > span { display: grid; min-width: 0; }
.ck-vact b { font-size: clamp(12.5px, 2.5cqi, 16px); font-weight: 700; line-height: 1.2; }
.ck-vact small { font-size: clamp(10px, 1.9cqi, 12.5px); color: var(--c-texte-2); line-height: 1.3; }
/* encart « Un projet, une collaboration ? » */
.ck-collab {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(10px, 2cqi, 18px);
  min-height: clamp(52px, 11cqi, 86px); padding: 6px clamp(14px, 2.6cqi, 24px); border-radius: clamp(16px, 2.2cqi, 22px);
  border: 1px solid var(--acc-trait); background: var(--surface); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: border-color .2s, box-shadow .2s, transform .15s; min-width: 0;
}
.ck-collab:hover { border-color: var(--acc); box-shadow: 0 0 24px -8px var(--halo); }
.ck-collab:active { transform: scale(.98); }
.ck-collab-ico { color: var(--acc); display: grid; place-items: center; }
.ck-collab-ico svg { width: clamp(22px, 4cqi, 30px); height: clamp(22px, 4cqi, 30px); }
.ck-collab-txt { display: grid; min-width: 0; }
.ck-collab-txt b { font-size: clamp(14px, 2.8cqi, 18px); font-weight: 700; line-height: 1.25; }
.ck-collab-txt small { font-size: clamp(11.5px, 2.1cqi, 14px); color: var(--c-texte-2); }
.ck-collab > svg { color: var(--c-texte-2); }

.ck-tous {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(12px, 2.4cqi, 22px);
  min-height: clamp(72px, 12cqi, 104px); padding: 10px clamp(16px, 2.6cqi, 28px); border-radius: clamp(16px, 2.2cqi, 22px);
  border: 1.5px solid var(--acc); background: linear-gradient(120deg, rgba(10, 30, 70, .85), rgba(4, 10, 26, .9));
  box-shadow: 0 0 30px -6px var(--halo), inset 0 0 26px -10px var(--acc), inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: box-shadow .25s, transform .15s; color: #f1f5f9;
}
.ck-clair .ck-tous { background: linear-gradient(120deg, #0f1f3d, #0b1324); --c-texte: #f1f5f9; }
/* thème clair : accent foncé, illisible sur le fond sombre du bouton → chevrons et titre en clair */
.ck-clair .ck-tous .ck-chevrons i { border-color: #cbd5e1; filter: drop-shadow(0 0 6px rgba(203, 213, 225, .7)); }
.ck-clair .ck-tous-txt b { color: #f8fafc; }
.ck-tous:hover { box-shadow: 0 0 44px -4px var(--halo), inset 0 0 30px -8px var(--acc), inset 0 1px 0 rgba(255, 255, 255, .18); }
.ck-tous:active { transform: scale(.98); }
.ck-tous > svg { color: #cbd5e1; }
.ck-tous-txt { display: grid; min-width: 0; }
.ck-tous-txt b { font-size: clamp(16px, 3cqi, 24px); font-weight: 800; letter-spacing: .06em; }
.ck-tous-txt small { font-size: clamp(11.5px, 2cqi, 14px); color: #b9c6d8; }
/* trois chevrons lumineux qui s'allument l'un après l'autre */
.ck-chevrons { display: flex; align-items: center; padding-left: 2px; }
.ck-chevrons i {
  display: block; width: clamp(12px, 2.2cqi, 18px); height: clamp(12px, 2.2cqi, 18px); margin-right: 2px;
  border-top: 4px solid var(--acc); border-right: 4px solid var(--acc); border-radius: 2px;
  transform: rotate(45deg); filter: drop-shadow(0 0 6px var(--acc)); animation: ck-chevron 1.6s ease-in-out infinite;
}
.ck-chevrons i:nth-child(2) { animation-delay: .2s; }
.ck-chevrons i:nth-child(3) { animation-delay: .4s; }
@keyframes ck-chevron { 0%, 100% { opacity: .35; } 40% { opacity: 1; } }

/* ---- Tous mes liens ---- */
.ck-retour { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 14px; font-weight: 600; color: var(--c-texte-2); }
.ck-retour:hover { color: var(--c-texte); }
.ck-profil-mini { grid-template-areas: "photo infos"; }
.ck-profil-mini > .ck-avatar { width: clamp(60px, 12cqi, 96px); }
.ck-profil-mini .ck-nom { font-size: clamp(17px, calc(100cqi / (var(--n, 14) * .58)), 34px); }
.ck-titre { margin: 0; display: flex; align-items: center; gap: 10px; padding-top: clamp(12px, 2cqi, 20px); border-top: 1px solid var(--sep);
  font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--c-discret); }
.ck-titre span { padding: 2px 9px; border-radius: 999px; background: var(--acc-doux); color: var(--acc); letter-spacing: .04em; }
.ck-filtres { display: flex; gap: 8px; flex-wrap: wrap; }
.ck-filtre { padding: 8px 15px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--c-texte-2);
  border: 1px solid var(--trait); background: var(--surface); }
.ck-filtre[aria-pressed="true"] { background: linear-gradient(90deg, var(--acc), var(--acc-2)); color: var(--encre); border-color: transparent; }
.ck-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ck-liste li[hidden] { display: none; }
.ck-ligne {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 9px 14px 9px 9px; border-radius: var(--ck-r);
  border: 1px solid var(--acc-trait); background: var(--surface); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.ck-ligne:hover { transform: translateY(-2px); border-color: var(--acc); box-shadow: 0 0 22px -8px var(--halo); }
.ck-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--acc), var(--acc-2)); color: var(--encre);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.ck-ligne-txt { min-width: 0; }
.ck-ligne b { display: block; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.ck-ligne small { display: block; font-size: 12.5px; color: var(--c-discret); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-ligne > svg { color: var(--c-discret); }
.ck-vide { margin: 0; text-align: center; color: var(--c-discret); }

/* ---- formulaires « Contact » et « Un projet, une collaboration ? » ---- */
.ck-form-zone { display: grid; gap: clamp(12px, 2cqi, 18px); padding-top: clamp(12px, 2cqi, 20px); border-top: 1px solid var(--sep); }
.ck-form-tete { display: flex; align-items: flex-start; gap: 14px; }
.ck-form-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--encre);
  background: linear-gradient(135deg, var(--acc), var(--acc-2)); box-shadow: 0 0 24px -6px var(--halo); }
.ck-form-titre { margin: 0; font-size: clamp(19px, 3.6cqi, 26px); font-weight: 800; line-height: 1.2; }
.ck-form-tete p { margin: 4px 0 0; color: var(--c-texte-2); font-size: clamp(13px, 2.2cqi, 15px); line-height: 1.5; }
.ck-rdv { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  border: 1px solid var(--acc-trait); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.ck-rdv:hover { border-color: var(--acc); box-shadow: 0 0 22px -8px var(--halo); }
.ck-rdv > svg { color: var(--acc); }
.ck-rdv > span { display: grid; min-width: 0; }
.ck-rdv b { font-size: 15px; }
.ck-rdv small { font-size: 12.5px; color: var(--c-discret); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-ou { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-discret); }
.ck-ou::before, .ck-ou::after { content: ""; flex: 1; height: 1px; background: var(--sep); }
.ck-rdv[hidden], .ck-ou[hidden], .ck-form[hidden], .ck-merci[hidden], .ck-form-alerte[hidden] { display: none; }
.ck-form { display: grid; gap: 14px; }
.ck-form-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.ck-champ { display: grid; gap: 6px; min-width: 0; }
.ck-champ.ck-large { grid-column: 1 / -1; }
.ck-champ label { font-size: 13px; font-weight: 700; color: var(--c-texte); }
.ck-champ label small { font-weight: 500; color: var(--c-discret); }
.ck-input { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 14px; font: 500 15px/1.4 'Inter', system-ui, sans-serif; color: var(--c-texte);
  background: var(--surface-2); border: 1px solid var(--trait); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
select.ck-input { padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--c-discret) 50%), linear-gradient(135deg, var(--c-discret) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; }
select.ck-input option { color: #0b1524; }
textarea.ck-input { resize: vertical; min-height: 120px; }
.ck-input::placeholder { color: var(--c-discret); }
.ck-input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-doux); }
.ck-champ.a-erreur .ck-input { border-color: #f87171; }
.ck-champ-err { margin: 0; min-height: 0; font-size: 12.5px; font-weight: 600; color: #fca5a5; }
.ck-champ-err:empty { display: none; }
.ck-clair .ck-champ-err { color: #dc2626; }
.ck-form-alerte { padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; color: #fecaca; background: rgba(248, 113, 113, .14); border: 1px solid rgba(248, 113, 113, .35); }
.ck-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ck-form-note { margin: 0; font-size: 12.5px; color: var(--c-discret); }
.ck-envoyer { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 16px; cursor: pointer; font: 800 16px 'Inter', system-ui, sans-serif; color: #fff;
  background: linear-gradient(100deg, color-mix(in srgb, var(--acc-2) 72%, #000), color-mix(in srgb, var(--acc) 70%, #000));
  box-shadow: 0 0 30px -6px var(--halo), inset 0 1px 0 rgba(255, 255, 255, .3); transition: box-shadow .25s, transform .15s, opacity .2s; }
.ck[data-theme-carte="bleu"] .ck-envoyer { background: linear-gradient(100deg, #0b4fd6, #1688f0); }
.ck[data-theme-carte="argent"] .ck-envoyer { background: linear-gradient(100deg, #cbd5e1, #f1f5f9); color: #0b0d10; }
.ck-envoyer:hover { box-shadow: 0 0 42px -4px var(--halo), inset 0 1px 0 rgba(255, 255, 255, .4); }
.ck-envoyer:active { transform: scale(.98); }
.ck-envoyer:disabled { opacity: .6; cursor: progress; }
.ck-merci { display: grid; justify-items: center; gap: 8px; padding: 26px 16px; text-align: center; border-radius: 18px; border: 1px solid var(--acc-trait); background: var(--surface); }
.ck-merci:focus { outline: none; }
.ck-merci-ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; background: #16a34a; box-shadow: 0 0 30px -6px rgba(34, 197, 94, .8); }
.ck-merci b { font-size: 20px; }
.ck-merci p { margin: 0; color: var(--c-texte-2); max-width: 46ch; }
.ck-btn-sec { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 700;
  border: 1px solid var(--acc-trait); background: var(--acc-doux); }
/* pages formulaires : version compacte pour tenir dans l'écran sans défilement */
.ck-vue-contact .ck-panneau, .ck-vue-collaboration .ck-panneau { gap: clamp(8px, 1.6cqi, 14px); }
.ck-vue-contact .ck-retour, .ck-vue-collaboration .ck-retour { font-size: 13px; }
.ck-vue-contact .ck-profil-mini > .ck-avatar, .ck-vue-collaboration .ck-profil-mini > .ck-avatar { width: clamp(44px, 7cqi, 60px); }
.ck-vue-contact .ck-profil-mini .ck-nom, .ck-vue-collaboration .ck-profil-mini .ck-nom { font-size: clamp(16px, calc(100cqi / (var(--n, 14) * .62)), 26px); }
.ck-vue-contact .ck-profil-mini .ck-activites, .ck-vue-collaboration .ck-profil-mini .ck-activites { display: none; }
.ck-profil-mini .ck-initiales { font-size: clamp(16px, 3.2cqi, 30px); }
.ck-vue-contact .ck-profil-mini .ck-initiales, .ck-vue-collaboration .ck-profil-mini .ck-initiales { font-size: clamp(15px, 2.2cqi, 21px); }
.ck-form-zone { gap: 10px; padding-top: 10px; }
.ck-form-tete { gap: 12px; align-items: center; }
.ck-form-ico { width: 38px; height: 38px; border-radius: 12px; }
.ck-form-ico svg { width: 20px; height: 20px; }
.ck-form-titre { font-size: clamp(17px, 3cqi, 22px); }
.ck-form-tete p { margin-top: 2px; font-size: clamp(12px, 1.9cqi, 13.5px); line-height: 1.4; }
.ck-rdv { padding: 8px 14px; border-radius: 14px; }
.ck-rdv b { font-size: 14px; }
.ck-ou { font-size: 11px; }
.ck-form { gap: 10px; }
.ck-form-grille { gap: 8px 12px; }
.ck-champ { gap: 4px; }
.ck-champ label { font-size: 12px; }
.ck-input { min-height: 42px; padding: 8px 12px; border-radius: 12px; font-size: 14.5px; }
select.ck-input { background-position: calc(100% - 20px) 18px, calc(100% - 14px) 18px; }
textarea.ck-input { min-height: 74px; height: 74px; }
.ck-form-note { font-size: 11.5px; }
.ck-envoyer { min-height: 46px; font-size: 15px; justify-self: start; }
.ck-merci { padding: 18px 14px; gap: 6px; }
.ck-merci-ico { width: 48px; height: 48px; }
/* téléphone : nom et e-mail en pleine largeur, téléphone + objet (ou entreprise + type) côte à côte */
@container carte (max-width: 559px) {
  .ck-form-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 6px 8px; }
  .ck-form[data-ck-demande="collaboration"] .ck-champ:nth-child(6) { grid-column: 1 / -1; }
  .ck-form[data-ck-demande="contact"] .ck-champ:nth-child(1), .ck-form[data-ck-demande="contact"] .ck-champ:nth-child(2),
  .ck-form[data-ck-demande="collaboration"] .ck-champ:nth-child(1), .ck-form[data-ck-demande="collaboration"] .ck-champ:nth-child(3) { grid-column: 1 / -1; }
  .ck-champ label { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ck-champ label small { display: none; }
  .ck-envoyer { width: 100%; }
  .ck-form-tete p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ck-form-note { display: none; }
  /* propriétaire sur téléphone : « Mon espace » prend la place de la pastille (une pastille réduite à son icône
     ressemblerait à un bouton alors qu'elle n'est qu'une indication) */
  .ck-haut-proprio .ck-pastille { display: none; }
}
/* écrans tactiles : 16 px minimum dans les champs (sinon l'iPhone zoome la page pendant la saisie) */
@media (pointer: coarse) {
  .ck-input { font-size: 16px; }
}

/* ---- messagerie : conversation privée (/conversation/…) et lien après l'envoi d'une demande ---- */
.ck-btn-conv { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; min-height: 46px; padding: 0 20px; border-radius: 14px;
  font-weight: 800; font-size: 15px; color: #fff; background: linear-gradient(100deg, color-mix(in srgb, var(--acc-2) 72%, #000), color-mix(in srgb, var(--acc) 70%, #000));
  box-shadow: 0 0 26px -6px var(--halo); }
.ck[data-theme-carte="bleu"] .ck-btn-conv { background: linear-gradient(100deg, #0b4fd6, #1688f0); }
.ck-btn-conv[hidden], .ck-merci-note[hidden] { display: none; }
.ck-merci-note { margin: 0; font-size: 12.5px; color: var(--c-discret); max-width: 44ch; }
.ck-vue-conversation .ck-in { max-width: 860px; }
.ck-vue-conversation .ck-profil-mini > .ck-avatar { width: clamp(52px, 9cqi, 72px); }
.ck-vue-conversation .ck-profil-mini .ck-nom { font-size: clamp(18px, calc(100cqi / (var(--n, 14) * .62)), 28px); }
.ck-vue-conversation .ck-profil-mini .ck-initiales { font-size: clamp(16px, 3cqi, 24px); }
.ck-conv-sous { margin: 2px 0 0; color: var(--c-texte-2); font-size: 14px; }
.ck-conv { display: grid; gap: 14px; padding-top: 12px; border-top: 1px solid var(--sep); }
.ck-fil { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ck-bulle { max-width: min(560px, 88%); padding: 10px 14px 12px; border-radius: 18px; border: 1px solid var(--acc-trait); background: var(--surface); }
.ck-bulle-lui { justify-self: start; border-bottom-left-radius: 6px; }
.ck-bulle-moi { justify-self: end; border-bottom-right-radius: 6px; background: var(--acc-doux); border-color: var(--acc-trait); }
.ck-bulle-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 4px; }
.ck-bulle-tete b { font-size: 13px; }
.ck-bulle-tete time { font-size: 11.5px; color: var(--c-discret); }
.ck-bulle-objet { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; color: var(--acc); }
.ck-bulle-txt { margin: 0; font-size: 14.5px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.ck-bulle-nouvelle { animation: ck-entree .3s ease-out both; }
.ck-conv-attente { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; color: var(--c-texte-2);
  background: var(--surface); border: 1px dashed var(--acc-trait); }
.ck-conv-attente svg { color: var(--acc); flex: none; }
.ck-conv-form { gap: 8px; }
.ck-conv-form textarea.ck-input { min-height: 84px; height: auto; }
.ck-conv-lien { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding-top: 10px; border-top: 1px solid var(--sep); }
.ck-conv-lien p { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--c-discret); }
.ck-conv-lien .ck-btn-sec { margin: 0; }

/* ---- pied ---- */
.ck-pied { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 12.5px; color: var(--c-discret); }
.ck-pied strong { color: var(--c-texte); }
.ck-pied a:hover { color: var(--c-texte); }

/* ---- fenêtre du QR code ---- */
.ck-dlg { padding: 0; border: 0; background: transparent; width: min(400px, calc(100vw - 24px)); color: #eef3f9; }
.ck-dlg::backdrop { background: rgba(2, 4, 8, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ck-dlg-in { position: relative; display: grid; justify-items: center; gap: 12px; padding: 26px 22px 22px; border-radius: 26px; text-align: center;
  background: #0b111c; border: 1px solid rgba(255, 255, 255, .12); font-family: 'Inter', system-ui, sans-serif; }
.ck-fermer { position: absolute; top: 12px; right: 12px; --surface: #111827; --acc-trait: rgba(255, 255, 255, .14); --c-texte: #eef3f9; --acc: #7dd3fc; }
.ck-qr-boite { width: 220px; max-width: 100%; aspect-ratio: 1; border-radius: 18px; background: #fff; padding: 10px; margin-top: 8px; }
.ck-qr-boite svg { width: 100%; height: 100%; display: block; }
.ck-qr-nom { margin: 4px 0 0; font: 800 21px/1.15 'Inter', system-ui, sans-serif; }
.ck-qr-url { margin: 0; font-size: 13.5px; font-weight: 600; color: #9fdcff; word-break: break-all; }
.ck-qr-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 4px; }
.ck-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 14px; border-radius: 14px; cursor: pointer;
  font: 700 13.5px 'Inter', system-ui, sans-serif; color: #e2e8f0; background: #111827; border: 1px solid rgba(255, 255, 255, .12); }
.ck-btn:hover { border-color: rgba(125, 211, 252, .6); }
.ck-btn-plein { grid-column: 1 / -1; background: linear-gradient(90deg, #38bdf8, #0ea5e9); color: #03121f; border-color: transparent; }
.ck-btn-large { grid-column: 1 / -1; }
.ck-btn[hidden] { display: none; }
/* guide d'installation (iPhone / iPad) */
.ck-inst-ico { display: block; width: 76px; height: 76px; margin-top: 6px; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 2px rgba(125, 211, 252, .45), 0 10px 30px -8px rgba(56, 189, 248, .6); }
.ck-inst-avatar, .ck-inst-avatar .ck-avatar-in { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, #0b4fd6, #38bdf8); }
.ck-inst-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ck-inst-avatar .ck-initiales { font: 800 26px/1 'Inter', system-ui, sans-serif; color: #fff; }
.ck-inst-txt { margin: 0; font-size: 14.5px; line-height: 1.5; color: #dbe5f1; }
.ck-inst-etapes { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; display: grid; gap: 8px; text-align: left; }
.ck-inst-etapes li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px;
  background: #111827; border: 1px solid rgba(255, 255, 255, .1); font-size: 14.5px; color: #e2e8f0; }
.ck-inst-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 800; color: #03121f; background: linear-gradient(135deg, #7dd3fc, #38bdf8); }
.ck-inst-pict { color: #7dd3fc; display: grid; }
.ck-inst-note { margin: 0; font-size: 12.5px; color: #94a3b8; }
.ck-qr-msg { margin: 0; min-height: 1.2em; font-size: 13px; color: #86efac; }

/* =============================================================================
   Tailles d'écran : seules les dimensions et le placement des blocs changent
   ============================================================================= */
/* tablette et ordinateur : indicateurs sous la bio (colonne de droite) ; sur ordinateur, « Ma carte de visite » à côté de la collaboration et de « Tous mes liens » */
@container carte (min-width: 700px) {
  .ck-profil { grid-template-areas: "photo infos" "photo tuiles"; align-items: end; }
  .ck-profil > .ck-avatar { align-self: center; }
  .ck-infos { align-self: end; }
  .ck-tuiles { align-self: start; }
  .ck-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container carte (min-width: 900px) {
  .ck-bas { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ck-bas-droite { grid-template-rows: auto 1fr; }
  .ck-bas-droite > :only-child { grid-row: 1 / -1; }
}
/* téléphone et tablette : coordonnées en cartes compactes (icône + intitulé) ; l'adresse complète reste dans le lien */
@container carte (max-width: 899px) {
  .ck-coords:not(.ck-n1) .ck-coord { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 5px; padding: 10px 6px; }
  .ck-coords:not(.ck-n1) .ck-coord-txt b { display: none; }
  .ck-coords:not(.ck-n1) .ck-coord > svg { display: none; }
  .ck-coords:not(.ck-n1) .ck-coord-txt small { color: var(--c-texte); font-size: 10.5px; }
}
@container carte (max-width: 559px) {
  .ck-pastille span { font-size: 11.5px; }
  .ck-panneau { gap: 10px; }
  .ck-bas, .ck-bas-droite { gap: 10px; }
  .ck-vcarte { gap: 8px; padding: 9px; }
  .ck-vcarte-tete { gap: 9px; padding: 0 2px; }
  .ck-vcarte-ico { width: 26px; height: 26px; }
  .ck-vcarte-tete b { font-size: 15.5px; }
  .ck-vcarte-tete small { font-size: 11.5px; line-height: 1.3; }
  .ck-vact > svg { width: 20px; height: 20px; }
  .ck-tous { min-height: 58px; }
  .ck-social { min-height: 70px; }
  .ck-tuile { min-height: 48px; }
  .ck-coord { min-height: 52px; }
  .ck-social > span:not(.ck-social-ico) { letter-spacing: .02em; font-size: clamp(8.5px, 2.3cqi, 11px); }
}
/* très petits écrans : réseaux sur deux colonnes, pastille réduite à son icône */
@container carte (max-width: 359px) {
  .ck-sociaux, .ck-sociaux.ck-n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ck-sociaux.ck-n1 { max-width: none; }
  .ck-pastille { display: none; }   /* trop étroit pour son texte : masquée plutôt que réduite à une icône trompeuse */
}
@media (prefers-reduced-motion: reduce) {
  .ck *, .ck *::before, .ck *::after { transition: none !important; animation: none !important; }
}

/* ---- prise de rendez-vous en ligne (/pseudo/rendez-vous) et page du client (/rendez-vous/…) ---- */
.ck-vue-rdv .ck-in { max-width: 860px; }
.ck-vue-rdv .ck-profil-mini > .ck-avatar { width: clamp(48px, 8cqi, 66px); }
.ck-vue-rdv .ck-profil-mini .ck-nom { font-size: clamp(18px, calc(100cqi / (var(--n, 14) * .62)), 28px); }
.ck-vue-rdv .ck-profil-mini .ck-initiales { font-size: clamp(16px, 3cqi, 22px); }
.ck-vue-rdv .ck-profil-mini .ck-activites { margin: 2px 0 0; font-size: 13.5px; color: var(--c-texte-2); }
.ck-resa { display: grid; gap: 14px; padding-top: 12px; border-top: 1px solid var(--sep); }
.ck-etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ck-etapes[hidden], .ck-etape[hidden], .ck-creneaux-zone[hidden], .ck-resa-question[hidden], .ck-cal-etat:empty { display: none; }
.ck-etape { display: grid; gap: 10px; scroll-margin-top: 12px; }
.ck-etape-titre { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 800; }
.ck-etape-titre span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; color: var(--encre);
  background: linear-gradient(135deg, var(--acc), var(--acc-2)); }
.ck-prestas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.ck-presta { position: relative; display: grid; gap: 6px; padding: 12px 14px; border-radius: 16px; cursor: pointer; border: 1px solid var(--acc-trait); background: var(--surface);
  transition: border-color .2s, box-shadow .2s; }
.ck-presta:hover { border-color: var(--acc); }
.ck-presta input { position: absolute; opacity: 0; pointer-events: none; }
.ck-presta:has(input:checked) { border-color: var(--acc); box-shadow: 0 0 0 2px var(--acc-doux), 0 0 22px -8px var(--halo); background: var(--acc-doux); }
.ck-presta:has(input:focus-visible) { outline: 2px solid var(--acc); outline-offset: 2px; }
.ck-presta-txt { display: grid; gap: 2px; min-width: 0; }
.ck-presta-txt b { font-size: 15px; overflow-wrap: anywhere; }
.ck-presta-txt small { font-size: 12.5px; color: var(--c-discret); }
.ck-presta-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--c-texte-2); }
.ck-presta-meta span { display: inline-flex; align-items: center; gap: 5px; }
.ck-presta-meta b { color: var(--acc); font-size: 14px; }
.ck-cal { display: grid; gap: 8px; padding: 12px; border-radius: 18px; border: 1px solid var(--acc-trait); background: var(--surface); max-width: 420px; }
.ck-cal-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ck-cal-mois { font-size: 15px; }
.ck-cal-nav { width: 38px; height: 38px; }
.ck-cal-nav:disabled { opacity: .3; cursor: default; }
.ck-cal-jours, .ck-cal-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.ck-cal-jours span { font-size: 11.5px; font-weight: 700; color: var(--c-discret); }
.ck-cal-grille[aria-busy="true"] { opacity: .5; }
.ck-cal-jour { aspect-ratio: 1; min-height: 36px; border-radius: 12px; cursor: pointer; font: 700 14px 'Inter', system-ui, sans-serif; color: var(--c-texte);
  border: 1px solid var(--acc-trait); background: var(--acc-doux); transition: border-color .15s, transform .15s; }
.ck-cal-jour:hover:not(:disabled) { border-color: var(--acc); transform: translateY(-1px); }
.ck-cal-jour:disabled { cursor: default; background: transparent; border-color: transparent; color: var(--c-discret); opacity: .55; }
.ck-cal-jour.ck-aujourdhui:not(.ck-choisi) { box-shadow: inset 0 -2px 0 var(--acc); }
.ck-cal-jour.ck-choisi { color: var(--encre); border-color: transparent; background: linear-gradient(135deg, var(--acc), var(--acc-2)); box-shadow: 0 0 18px -6px var(--halo); }
.ck-cal-etat { margin: 0; font-size: 12.5px; color: var(--c-discret); }
.ck-creneaux-zone { display: grid; gap: 8px; }
.ck-creneaux-titre { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--c-texte-2); }
.ck-creneaux-titre::first-letter { text-transform: uppercase; }
.ck-creneaux { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.ck-creneau { min-height: 42px; border-radius: 12px; cursor: pointer; font: 700 14.5px 'Inter', system-ui, sans-serif; color: var(--c-texte);
  border: 1px solid var(--acc-trait); background: var(--surface); }
.ck-creneau:hover { border-color: var(--acc); }
.ck-creneau[aria-checked="true"] { color: var(--encre); border-color: transparent; background: linear-gradient(135deg, var(--acc), var(--acc-2)); }
.ck-resume { margin: 0; padding: 10px 14px; border-radius: 14px; font-size: 14px; font-weight: 700; background: var(--acc-doux); border: 1px solid var(--acc-trait); }
.ck-resume::first-letter { text-transform: uppercase; }
.ck-resa-form textarea.ck-input { min-height: 70px; }
.ck-consignes { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; color: var(--c-texte-2);
  border: 1px dashed var(--acc-trait); white-space: pre-line; }
.ck-consignes svg { flex: none; margin-top: 2px; color: var(--acc); }
.ck-resa-question { margin: 0; padding-top: 10px; border-top: 1px solid var(--sep); }
.ck-resa-question a { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--c-texte-2); }
.ck-resa-question a:hover { color: var(--c-texte); }
/* page du client */
.ck-resa-statut { display: grid; gap: 2px; margin: 0; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--acc-trait); background: var(--surface); }
.ck-resa-statut b { font-size: 17px; }
.ck-resa-statut span { font-size: 14px; color: var(--c-texte-2); }
.ck-ton-ok { border-color: rgba(34, 197, 94, .55); background: rgba(34, 197, 94, .12); }
.ck-ton-ok b { color: #4ade80; }
.ck-clair .ck-ton-ok b { color: #15803d; }
.ck-ton-non { border-color: rgba(248, 113, 113, .5); background: rgba(248, 113, 113, .1); }
.ck-ton-non b { color: #fca5a5; }
.ck-clair .ck-ton-non b { color: #b91c1c; }
.ck-ton-attente b { color: var(--acc); }
.ck-recap { display: grid; gap: 0; margin: 0; border-radius: 16px; border: 1px solid var(--acc-trait); background: var(--surface); overflow: hidden; }
.ck-recap div { display: grid; grid-template-columns: minmax(110px, 30%) minmax(0, 1fr); gap: 10px; padding: 10px 14px; border-top: 1px solid var(--sep); }
.ck-recap div:first-child { border-top: 0; }
.ck-recap dt { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--c-discret); }
.ck-recap dt svg { color: var(--acc); flex: none; }
.ck-recap dd { margin: 0; font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.ck-resa-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ck-resa-actions .ck-btn-conv, .ck-resa-actions .ck-btn-sec { margin: 0; }
.ck-btn-danger { cursor: pointer; color: #fca5a5; border-color: rgba(248, 113, 113, .45); background: rgba(248, 113, 113, .08); font-family: inherit; }
.ck-clair .ck-btn-danger { color: #b91c1c; }
.ck-btn-rouge { background: #dc2626; border-color: transparent; color: #fff; }
.ck-btn-rouge:hover { border-color: transparent; background: #b91c1c; }
@container carte (max-width: 559px) {
  .ck-recap div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ck-cal { max-width: none; padding: 10px; }
  .ck-resa-form .ck-champ:not(.ck-large) { grid-column: 1 / -1; }
  .ck-resa .ck-form-note { display: block; }   /* « aucun paiement en ligne » : toujours visible */
}

/* =============================================================================
   CARTES À MODÈLE (studio) : Artiste, Influenceur, Entrepreneur, Business, Consultant, Photographe, Développeur,
   Chauffeur VTC, Coach sportif, Entreprise. Un seul balisage (inc/modeles.php, al_modele_html) ; les couleurs
   arrivent en variables (--card-background, --primary-color… reliées à --acc, --acc-2, --acc-3, --ckm-btn…).
   Téléphone : une colonne, comme les maquettes. Ordinateur : deux colonnes (présentation | contenu).
   ============================================================================= */
.ckm { background: var(--card-background); }
.ckm .ck-fond { background-color: var(--card-background); }
/* vagues premium teintées de la couleur principale : luminosité de l'image + teinte de la couleur */
.ckm.ckm-vagues .ck-fond { background: var(--voile), var(--fond-h) center / cover no-repeat, var(--ckm-teinte); background-blend-mode: normal, luminosity, normal; }
@media (orientation: portrait) {
  .ckm.ckm-vagues .ck-fond { background: var(--voile), var(--fond-v) center / cover no-repeat, var(--ckm-teinte); background-blend-mode: normal, luminosity, normal; }
}
.ckm.ckm-vagues.ck-clair .ck-fond { background-blend-mode: normal, normal, normal; }
.ckm.ck-apercu.ckm-vagues .ck-fond { background: var(--voile), var(--fond-v) center / cover no-repeat, var(--ckm-teinte); background-blend-mode: normal, luminosity, normal; }
.ckm.ck-apercu.ckm-vagues.ck-clair .ck-fond { background-blend-mode: normal, normal, normal; }
.ckm .ck-in { max-width: 1180px; }
.ckm .ck-panneau.ckm-panneau {
  gap: clamp(12px, 2cqi, 20px); padding: clamp(12px, 2.6cqi, 30px);
  background: radial-gradient(80% 30% at 50% 0%, var(--acc-doux), transparent 70%), linear-gradient(170deg, var(--ckm-panneau), var(--ckm-panneau));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .03), 0 0 calc(70px * var(--ckm-lueur)) -16px var(--glow-color), 0 60px 120px -50px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.ckm .ck-panneau.ckm-panneau::before { background: linear-gradient(135deg, var(--acc) 0%, var(--acc-trait) 30%, rgba(255, 255, 255, .05) 50%, var(--acc-trait) 70%, var(--acc-2) 100%); }
.ckm.ck-clair .ck-panneau.ckm-panneau { box-shadow: 0 40px 90px -50px rgba(15, 30, 60, .45), inset 0 1px 0 #fff; }
.ckm .ck-haut { flex-wrap: nowrap; }
.ckm-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(12px, 2cqi, 20px); }
.ckm-col { display: grid; align-content: start; gap: clamp(12px, 2cqi, 18px); min-width: 0; }

/* ---- présentation : photo de couverture, photo de profil, nom ---- */
.ckm-hero { position: relative; isolation: isolate; display: grid; gap: 10px; border-radius: clamp(18px, 2.6cqi, 26px); overflow: hidden;
  padding: clamp(14px, 3cqi, 24px); min-height: clamp(190px, 46cqi, 280px); align-content: end; border: 1px solid var(--acc-trait); }
.ckm-couverture { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.ckm-couverture-vide { display: block;
  background: radial-gradient(70% 90% at 85% 10%, color-mix(in srgb, var(--acc) 55%, transparent), transparent 70%),
    radial-gradient(60% 80% at 10% 100%, color-mix(in srgb, var(--acc-2) 45%, transparent), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.5px) 0 0 / 16px 16px, var(--card-background); }
.ckm-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, transparent 25%, color-mix(in srgb, var(--card-background) 70%, transparent) 62%, var(--card-background) 100%); }
.ckm-hero-in { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: clamp(10px, 2.4cqi, 20px); }
.ckm .ckm-avatar { width: clamp(92px, 27cqi, 150px); }
.ckm-ident { display: grid; gap: 4px; min-width: 0; padding-bottom: 4px; }
.ckm-logo-marque { width: auto; max-width: 120px; height: 36px; object-fit: contain; object-position: left center; border-radius: 8px; }
.ckm-nom { margin: 0; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; font-size: clamp(18px, calc(100cqi / (var(--n, 14) * .78)), 34px);
  overflow-wrap: anywhere; text-wrap: balance; color: var(--c-texte); text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.ck-clair .ckm-nom { text-shadow: none; }
.ckm-nom b { font-weight: 800; color: var(--acc); }
.ckm-activites { margin: 0; font-size: clamp(12px, 3.1cqi, 15px); font-weight: 600; color: var(--c-texte-2); }
.ckm-activites i { font-style: normal; color: var(--acc); }
.ckm-entreprise { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--acc-3); }
.ckm-bio { margin: 0; text-align: center; font-size: clamp(13px, 3.4cqi, 16px); color: var(--c-texte-2); line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }

/* ---- indicateurs et réseaux : tailles resserrées comme sur les maquettes ---- */
.ckm .ck-tuile { min-height: 56px; }
.ckm-sociaux .ck-social { min-height: clamp(76px, 20cqi, 110px); }

/* ---- boutons d'action ---- */
.ckm-actions { display: grid; gap: 10px; }
.ckm-action { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px;
  border-radius: var(--ck-r, 16px); border: 1px solid var(--acc-trait); background: var(--surface-2); color: var(--c-texte);
  font-weight: 700; font-size: clamp(14px, 3.4cqi, 16px); transition: border-color .2s, box-shadow .2s, transform .15s; }
.ckm-action:hover { border-color: var(--acc); box-shadow: 0 0 22px -8px var(--halo); }
.ckm-action:active { transform: scale(.98); }
.ckm-action > svg { color: var(--c-discret); }
.ckm-a-ico { display: grid; place-items: center; color: var(--acc); }
.ckm-a-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ckm a.ckm-action-1 { grid-template-columns: auto minmax(0, 1fr); min-height: 56px; border-color: transparent; color: var(--encre);
  background: linear-gradient(100deg, var(--ckm-btn), var(--ckm-btn-2)); box-shadow: 0 10px 30px -12px var(--glow-color), inset 0 1px 0 rgba(255, 255, 255, .25); }
.ckm-action-1 .ckm-a-ico { color: inherit; }
.ckm-deg-uni a.ckm-action-1 { background: var(--ckm-btn); }
.ckm-deg-lumineux a.ckm-action-1 { box-shadow: 0 0 calc(18px + 30px * var(--ckm-lueur)) -4px var(--glow-color), inset 0 1px 0 rgba(255, 255, 255, .35); }
.ckm-a-configurer { opacity: .55; border-style: dashed; }

/* ---- sections du métier ---- */
.ckm-section { display: grid; gap: 10px; scroll-margin-top: 16px; }
.ckm-titre { margin: 0; font-size: clamp(15px, 3.6cqi, 18px); font-weight: 800; color: var(--c-texte); }
.ckm-vide { display: flex; align-items: center; gap: 8px; margin: 0; padding: 14px; border-radius: 14px; border: 1px dashed var(--acc-trait); font-size: 13px; color: var(--c-discret); }
.ckm-vignettes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(6px, 1.6cqi, 12px); }
.ckm-vignettes.ckm-n1 { grid-template-columns: minmax(0, 1fr); max-width: 50%; }
.ckm-vignettes.ckm-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ckm-vignettes.ckm-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ckm-vignette { display: grid; gap: 6px; min-width: 0; }
a.ckm-vignette:hover .ckm-img { border-color: var(--acc); box-shadow: 0 0 20px -8px var(--halo); }
.ckm-img { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--acc-trait); background: var(--surface-2); transition: border-color .2s, box-shadow .2s; }
.ckm-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ckm-vide-img { display: grid; place-items: center; width: 100%; height: 100%; color: var(--acc);
  background: radial-gradient(80% 80% at 30% 20%, var(--acc-doux), transparent 70%), var(--surface); }
.ckm-legende { display: grid; min-width: 0; text-align: center; }
.ckm-legende b { font-size: clamp(11px, 2.7cqi, 13px); font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ckm-legende small { font-size: clamp(10px, 2.4cqi, 12px); color: var(--c-discret); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ckm-prix { color: var(--acc-3) !important; font-weight: 800; font-size: clamp(11px, 2.8cqi, 14px) !important; }
.ckm-etiquettes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ckm-etiquette { display: grid; place-items: center; gap: 6px; min-height: 40px; padding: 8px 6px; border-radius: 12px; border: 1px solid var(--acc-trait);
  background: var(--surface-2); font-size: clamp(11.5px, 2.9cqi, 13.5px); font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.ckm-etiquette.a-ico { min-height: 76px; }
.ckm-eti-ico { color: var(--acc); }
.ckm-tech { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ckm-tech .ckm-etiquette { background: transparent; border-color: transparent; padding: 4px 2px; }
.ckm-badge { display: grid; place-items: center; width: clamp(38px, 10cqi, 52px); aspect-ratio: 1; border-radius: 12px; font: 800 clamp(12px, 3cqi, 16px)/1 'Inter', system-ui, sans-serif;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .7); }
.ckm-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ckm-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  border: 1px solid var(--acc-trait); background: var(--surface-2); }
a.ckm-ligne:hover { border-color: var(--acc); }
.ckm-ligne-txt { display: grid; min-width: 0; }
.ckm-ligne b { font-size: 14px; font-weight: 700; }
.ckm-ligne small { font-size: 12.5px; color: var(--c-discret); }
.ckm-ligne > svg { color: var(--c-discret); }

/* ---- ma carte de visite et tous mes liens ---- */
.ckm-vcarte-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ckm-vcarte-actions.ck-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ckm-tous { border-color: var(--acc); }
.ckm .ck-tous { background: linear-gradient(120deg, color-mix(in srgb, var(--acc) 22%, #050a14), color-mix(in srgb, var(--acc-2) 14%, #04070d)); }

/* ---- téléphone étroit ---- */
@container carte (max-width: 380px) {
  .ckm-vcarte-actions, .ckm-vcarte-actions.ck-2 { grid-template-columns: minmax(0, 1fr); }
  .ckm-tech { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* ---- ordinateur et tablette : deux colonnes ---- */
@container carte (min-width: 860px) {
  .ckm-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 2.4cqi, 30px); align-items: start; }
  .ckm .ckm-avatar { width: clamp(110px, 12cqi, 150px); }
  .ckm-nom { font-size: clamp(22px, calc(50cqi / (var(--n, 14) * .78)), 36px); }
  .ckm-activites, .ckm-bio { font-size: 15px; }
  .ckm-hero { min-height: 250px; }
  .ckm-sociaux .ck-social { min-height: 96px; }
  .ckm-action { font-size: 15px; }
  .ckm-legende b { font-size: 13px; }
  .ckm-legende small { font-size: 12px; }
  .ckm-etiquette { font-size: 13.5px; }
}
/* les zones nommées de la carte classique (photo, infos, tuiles…) ne s'appliquent pas aux cartes à modèle */
.ckm-col > *, .ckm-hero-in > * { grid-area: auto; }
/* aperçu privé du propriétaire (carte en brouillon ou dépubliée) */
.ck-bandeau-prive { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; padding: 9px 14px;
  font: 600 13px/1.4 'Inter', system-ui, sans-serif; color: #1d1203; background: #fbbf24; text-align: center; }
.ck-bandeau-prive svg { flex: none; }
.ck-bandeau-prive a { color: inherit; font-weight: 800; text-decoration: underline; }
