/* ==========================================================================
   Ismilink — pages publiques (portfolio + page de liens)
   Tout est piloté par des variables injectées depuis la configuration de l'utilisateur.
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
.ic { width: 20px; height: 20px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 24px; height: 24px; }
[dir="rtl"] .ic-flip { transform: scaleX(-1); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus, #a78bfa); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: fixed; top: 12px; inset-inline-start: 12px; z-index: 100; padding: 12px 18px; border-radius: 12px; background: #fff; color: #111; font-weight: 700; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Bandeau brouillon (visible uniquement par le propriétaire) */
.draft-banner { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; gap: 10px; align-items: center; padding: 10px 16px; border-radius: 99px; background: #fbbf24; color: #1c1300; font: 700 14px/1.2 system-ui, sans-serif; box-shadow: 0 10px 30px rgb(0 0 0 / .3); }

/* ==========================================================================
   PORTFOLIO
   ========================================================================== */
.pf {
  --pf-text: #f1f0f7;
  --pf-muted: #bebcd1;
  --pf-subtle: #9f9db6;
  --pf-surface: rgb(255 255 255 / var(--pf-glass));
  --pf-surface-2: rgb(255 255 255 / calc(var(--pf-glass) + .05));
  --pf-border: rgb(255 255 255 / .12);
  --pf-border-strong: rgb(255 255 255 / .34);
  --pf-input: rgb(0 0 0 / .25);
  --pf-shadow: 0 20px 60px rgb(0 0 0 / .35);
  --pf-accent-text: color-mix(in srgb, var(--pf-accent) 58%, #ffffff);
  --pf-base: #0a0a12;
  --focus: color-mix(in srgb, var(--pf-accent) 55%, #ffffff);
  color-scheme: dark;
  font-family: var(--pf-font-b);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--pf-text);
  background: var(--pf-base);
}
.pf.mode-light, .pf.mode-auto-light {
  --pf-text: #17152b;
  --pf-muted: #46435f;
  --pf-subtle: #5a5775;
  --pf-surface: rgb(255 255 255 / calc(.45 + var(--pf-glass)));
  --pf-surface-2: rgb(255 255 255 / calc(.6 + var(--pf-glass)));
  --pf-border: rgb(255 255 255 / .85);
  --pf-border-strong: rgb(23 21 43 / .45);
  --pf-input: rgb(255 255 255 / .85);
  --pf-shadow: 0 20px 50px rgb(40 30 90 / .12);
  --pf-accent-text: color-mix(in srgb, var(--pf-accent) 72%, #000000);
  --pf-base: #f4f2fb;
  --focus: color-mix(in srgb, var(--pf-accent) 70%, #000000);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  .pf.mode-auto:not(.mode-dark) {
    --pf-text: #17152b; --pf-muted: #46435f; --pf-subtle: #5a5775;
    --pf-surface: rgb(255 255 255 / calc(.45 + var(--pf-glass))); --pf-surface-2: rgb(255 255 255 / calc(.6 + var(--pf-glass)));
    --pf-border: rgb(255 255 255 / .85); --pf-border-strong: rgb(23 21 43 / .45); --pf-input: rgb(255 255 255 / .85);
    --pf-shadow: 0 20px 50px rgb(40 30 90 / .12); --pf-accent-text: color-mix(in srgb, var(--pf-accent) 72%, #000000);
    --pf-base: #f4f2fb; --focus: color-mix(in srgb, var(--pf-accent) 70%, #000000); color-scheme: light;
  }
}
.pf.density-compact { --pf-gap: 16px; --pf-pad: 24px; --pf-section: 48px; }
.pf.density-comfortable { --pf-gap: 24px; --pf-pad: 32px; --pf-section: 72px; }
.pf.density-spacious { --pf-gap: 32px; --pf-pad: 40px; --pf-section: 104px; }

/* Fonds */
.pf-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--pf-base); overflow: hidden; }
.bg-aurora .pf-bg { background:
  radial-gradient(42vmax 42vmax at 10% 5%, rgb(var(--pf-accent-rgb) / .45), transparent 60%),
  radial-gradient(40vmax 40vmax at 92% 20%, rgb(var(--pf-accent2-rgb) / .38), transparent 62%),
  radial-gradient(36vmax 36vmax at 50% 105%, rgb(var(--pf-accent-rgb) / .25), transparent 60%), var(--pf-base); }
.bg-mesh .pf-bg { background:
  radial-gradient(at 0% 0%, rgb(var(--pf-accent-rgb) / .35) 0, transparent 50%),
  radial-gradient(at 100% 0%, rgb(var(--pf-accent2-rgb) / .3) 0, transparent 50%),
  radial-gradient(at 100% 100%, rgb(var(--pf-accent-rgb) / .25) 0, transparent 50%),
  radial-gradient(at 0% 100%, rgb(var(--pf-accent2-rgb) / .25) 0, transparent 50%), var(--pf-base); }
.bg-grid .pf-bg { background:
  radial-gradient(50vmax 40vmax at 80% 0%, rgb(var(--pf-accent-rgb) / .3), transparent 60%),
  radial-gradient(40vmax 40vmax at 0% 60%, rgb(var(--pf-accent2-rgb) / .22), transparent 60%), var(--pf-base); }
.bg-grid .pf-bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--pf-border) 1px, transparent 1px), linear-gradient(90deg, var(--pf-border) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); opacity: .6; }
.bg-gradient .pf-bg { background: linear-gradient(150deg, var(--pf-bg1), var(--pf-bg2)); }
.bg-solid .pf-bg { background: var(--pf-bg1); }
.bg-image .pf-bg { background: linear-gradient(rgb(0 0 0 / .45), rgb(0 0 0 / .55)), var(--pf-bg-image) center / cover no-repeat, var(--pf-base); }
.mode-light.bg-image .pf-bg, .mode-auto-light.bg-image .pf-bg { background: linear-gradient(rgb(255 255 255 / .6), rgb(255 255 255 / .7)), var(--pf-bg-image) center / cover no-repeat, var(--pf-base); }

.pf-glass {
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), var(--pf-shadow);
  -webkit-backdrop-filter: blur(var(--pf-blur)) saturate(160%);
  backdrop-filter: blur(var(--pf-blur)) saturate(160%);
}
.pf h1, .pf h2, .pf h3 { font-family: var(--pf-font-h); margin: 0; color: var(--pf-text); font-weight: 700; letter-spacing: -0.02em; }
.pf[lang="ar"] h1, .pf[lang="ar"] h2, .pf[lang="ar"] h3 { letter-spacing: 0; }
.pf h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem); line-height: 1; margin-bottom: 24px; }
.pf[lang="ar"] h1 { line-height: 1.2; }
.pf h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); line-height: 1.05; margin-bottom: 32px; }
.pf h3 { font-size: 1.1875rem; line-height: 1.25; }
.pf p { margin: 0 0 16px; }
.pf p:last-child { margin-bottom: 0; }
.pf :where(a) { color: var(--pf-accent-text); }
.pf .prose a { text-decoration: underline; text-underline-offset: 3px; }
.pf .prose ul { padding-inline-start: 1.2rem; margin: 0 0 16px; }
.pf .muted { color: var(--pf-muted); }

.pf-wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 640px) { .pf-wrap { padding-inline: 16px; } }

/* Boutons */
.pf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: calc(var(--pf-radius) * .6); font: 600 1rem/1 var(--pf-font-b); text-decoration: none; white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: transform .15s, filter .15s, background-color .15s; flex-shrink: 0; }
.pf-btn:active { transform: scale(.98); }
.pf-btn-primary { background: var(--pf-accent); color: var(--pf-on-accent); box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 12px 30px -10px rgb(var(--pf-accent-rgb) / .8); }
.pf-btn-primary:hover { filter: brightness(1.08); }
.pf-btn-glass { background: var(--pf-surface-2); color: var(--pf-text); border-color: var(--pf-border-strong); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.pf-btn-glass:hover { background: var(--pf-surface); }
.pf-icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--pf-border); background: var(--pf-surface); color: var(--pf-text); cursor: pointer; text-decoration: none; }
.pf-icon-btn:hover { background: var(--pf-surface-2); }

/* Navigation */
.pf-nav { position: sticky; top: 12px; z-index: 20; margin: 12px auto 0; }
.pf-nav .inner { display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 20px; border-radius: calc(var(--pf-radius) * .8); }
[dir="rtl"] .pf-nav .inner { padding: 8px 20px 8px 8px; }
.pf-nav .name { font: 700 1.0625rem var(--pf-font-h); color: var(--pf-text); text-decoration: none; white-space: nowrap; }
.pf-nav nav { display: flex; gap: 20px; margin-inline: auto; overflow-x: auto; scrollbar-width: none; }
.pf-nav nav a { color: var(--pf-muted); text-decoration: none; font-weight: 600; font-size: .9375rem; white-space: nowrap; padding: 8px 0; }
.pf-nav nav a:hover { color: var(--pf-text); }
.pf-nav .actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.pf .ic-when-light { display: none; }
.pf.mode-light .ic-when-light, .pf.mode-auto-light .ic-when-light { display: inline; }
.pf.mode-light .ic-when-dark, .pf.mode-auto-light .ic-when-dark { display: none; }
@media (prefers-color-scheme: light) { .pf.mode-auto:not(.mode-dark) .ic-when-light { display: inline; } .pf.mode-auto:not(.mode-dark) .ic-when-dark { display: none; } }
@media (max-width: 860px) { .pf-nav nav { display: none; } }

/* Hero */
.pf-hero { padding-block: calc(var(--pf-section) + 24px) var(--pf-section); }
.pf-cover { height: 240px; border-radius: var(--pf-radius); background: var(--pf-cover) center / cover no-repeat; margin-bottom: -72px; box-shadow: var(--pf-shadow); }
.pf-avatar { width: 136px; height: 136px; object-fit: cover; border: 4px solid var(--pf-surface-2); box-shadow: 0 0 0 1px var(--pf-border), var(--pf-shadow); background: linear-gradient(135deg, var(--pf-accent), var(--pf-accent2)); display: grid; place-items: center; font: 700 3rem var(--pf-font-h); color: var(--pf-on-accent); position: relative; }
.shape-circle .pf-avatar { border-radius: 50%; }
.shape-rounded .pf-avatar { border-radius: 32px; }
.shape-square .pf-avatar { border-radius: 8px; }
.pf-role { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); color: var(--pf-accent-text); font-weight: 600; margin-bottom: 16px; }
.pf-bio { font-size: 1.125rem; color: var(--pf-muted); max-width: 60ch; margin-bottom: 28px; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--pf-muted); font-weight: 600; font-size: .9375rem; margin-bottom: 28px; }
.pf-meta span { display: inline-flex; align-items: center; gap: 8px; }
.pf-available { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: rgb(34 197 94 / .14); color: #4ade80; font-size: .875rem; font-weight: 700; margin-bottom: 24px; border: 1px solid rgb(34 197 94 / .3); }
.mode-light .pf-available, .mode-auto-light .pf-available { color: #15803d; }
@media (prefers-color-scheme: light) { .mode-auto:not(.mode-dark) .pf-available { color: #15803d; } }
.pf-available .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgb(34 197 94 / .2); }
.pf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.pf-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--pf-surface); border: 1px solid var(--pf-border); color: var(--pf-text); transition: transform .15s, background-color .15s; }
.pf-socials a:hover { transform: translateY(-2px); background: var(--pf-surface-2); }

.layout-classic .pf-hero { text-align: center; }
.layout-classic .pf-hero .pf-avatar { margin: 0 auto 28px; }
.layout-classic .pf-bio { margin-inline: auto; }
.layout-classic .pf-meta, .layout-classic .pf-actions, .layout-classic .pf-socials { justify-content: center; }
.layout-classic .pf-cover + .pf-avatar { margin-top: 0; }
.layout-split .pf-hero .grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.layout-split .pf-hero .visual { display: grid; place-items: center; }
.layout-split .pf-hero .pf-avatar { width: min(320px, 100%); height: auto; aspect-ratio: 1; font-size: 6rem; }
@media (max-width: 860px) { .layout-split .pf-hero .grid { grid-template-columns: 1fr; } .layout-split .pf-hero .visual { order: -1; justify-items: start; } .layout-split .pf-hero .pf-avatar { width: 160px; font-size: 3.5rem; } }

.layout-sidebar .pf-shell { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 32px; align-items: start; padding-block: 32px var(--pf-section); }
.layout-sidebar .pf-side { position: sticky; top: 24px; padding: var(--pf-pad); text-align: center; }
.layout-sidebar .pf-side .pf-avatar { margin: 0 auto 20px; width: 120px; height: 120px; }
.layout-sidebar .pf-side h1 { font-size: 2rem; line-height: 1.1; margin-bottom: 8px; }
.layout-sidebar .pf-side .pf-role { font-size: 1.0625rem; }
.layout-sidebar .pf-side .pf-bio { font-size: 1rem; }
.layout-sidebar .pf-side .pf-meta, .layout-sidebar .pf-side .pf-actions, .layout-sidebar .pf-side .pf-socials { justify-content: center; }
.layout-sidebar .pf-side .pf-actions .pf-btn { width: 100%; }
.layout-sidebar .pf-main { display: grid; gap: var(--pf-gap); }
@media (max-width: 960px) { .layout-sidebar .pf-shell { grid-template-columns: 1fr; } .layout-sidebar .pf-side { position: static; } }

/* Sections */
.pf-sections { display: grid; gap: var(--pf-gap); padding-bottom: var(--pf-section); }
.pf-section { padding: var(--pf-pad); scroll-margin-top: 96px; }
@media (max-width: 640px) { .pf-section { padding: 24px 20px; } }
.pf-section > h2 { display: flex; align-items: center; gap: 12px; }
.pf-section > h2::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--pf-accent), var(--pf-accent2)); flex-shrink: 0; }
.pf-about { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.pf-about.has-image { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.pf-about img { border-radius: calc(var(--pf-radius) - 8px); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 760px) { .pf-about.has-image { grid-template-columns: 1fr; } }
.pf-about .prose { font-size: 1.0625rem; color: var(--pf-muted); }

.pf-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-chip { padding: 10px 16px; border-radius: 99px; background: var(--pf-surface-2); border: 1px solid var(--pf-border); font-weight: 600; font-size: .9375rem; }
.pf-bars { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 32px; }
.pf-bar .row { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 8px; font-size: .9375rem; }
.pf-bar .row span:last-child { color: var(--pf-subtle); font-variant-numeric: tabular-nums; }
.pf-bar .track { height: 8px; border-radius: 99px; background: var(--pf-surface-2); overflow: hidden; }
.pf-bar .fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--pf-accent), var(--pf-accent2)); }
.pf-skill-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.pf-skill-cards div { padding: 16px; border-radius: calc(var(--pf-radius) * .6); background: var(--pf-surface-2); border: 1px solid var(--pf-border); font-weight: 700; }
.pf-skill-cards small { display: block; font-weight: 600; color: var(--pf-subtle); margin-top: 4px; }

.pf-timeline { display: grid; gap: 28px; position: relative; padding-inline-start: 28px; }
.pf-timeline::before { content: ''; position: absolute; inset-inline-start: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--pf-accent), transparent); opacity: .5; }
.pf-tl-item { position: relative; }
.pf-tl-item::before { content: ''; position: absolute; inset-inline-start: -28px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--pf-accent); box-shadow: 0 0 0 4px rgb(var(--pf-accent-rgb) / .25); }
.pf-tl-item .when { font-size: .875rem; font-weight: 700; color: var(--pf-accent-text); margin-bottom: 4px; }
.pf-tl-item h3 { margin-bottom: 4px; }
.pf-tl-item .where { color: var(--pf-muted); font-weight: 600; margin-bottom: 8px; }
.pf-tl-item .desc { color: var(--pf-muted); font-size: .9375rem; }

.pf-projects { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pf-projects.list { grid-template-columns: 1fr; }
.pf-projects.masonry { display: block; columns: 2 300px; column-gap: 20px; }
.pf-projects.masonry .pf-project { break-inside: avoid; margin-bottom: 20px; }
.pf-project { border-radius: calc(var(--pf-radius) - 6px); background: var(--pf-surface-2); border: 1px solid var(--pf-border); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.pf-project:hover { transform: translateY(-3px); box-shadow: var(--pf-shadow); }
.pf-projects.list .pf-project { flex-direction: row; }
.pf-projects.list .pf-project .media { width: 240px; flex-shrink: 0; aspect-ratio: auto; }
@media (max-width: 640px) { .pf-projects.list .pf-project { flex-direction: column; } .pf-projects.list .pf-project .media { width: 100%; aspect-ratio: 16 / 10; } }
.pf-project .media { aspect-ratio: 16 / 10; background: linear-gradient(135deg, rgb(var(--pf-accent-rgb) / .5), rgb(var(--pf-accent2-rgb) / .5)); display: grid; place-items: center; color: var(--pf-on-accent); }
.pf-projects.masonry .pf-project:nth-child(3n+2) .media { aspect-ratio: 4 / 5; }
.pf-project .media img { width: 100%; height: 100%; object-fit: cover; }
.pf-project .media .ic { width: 40px; height: 40px; opacity: .8; }
.pf-project .body { padding: 20px; display: grid; gap: 10px; align-content: start; }
.pf-project .body p { color: var(--pf-muted); font-size: .9375rem; margin: 0; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-tags span { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgb(var(--pf-accent-rgb) / .16); color: var(--pf-accent-text); }
.pf-project .open { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9375rem; text-decoration: none; margin-top: 4px; }

.pf-services { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pf-service { padding: 24px; border-radius: calc(var(--pf-radius) - 6px); background: var(--pf-surface-2); border: 1px solid var(--pf-border); display: grid; gap: 12px; align-content: start; }
.pf-service .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--pf-accent), var(--pf-accent2)); color: var(--pf-on-accent); }
.pf-service p { color: var(--pf-muted); font-size: .9375rem; margin: 0; }
.pf-service .price { font: 700 1.25rem var(--pf-font-h); color: var(--pf-accent-text); }

.pf-gallery { display: grid; gap: 12px; }
.pf-gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pf-gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pf-gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { .pf-gallery.cols-3, .pf-gallery.cols-4 { grid-template-columns: repeat(2, 1fr); } }
.pf-gallery figure { margin: 0; border-radius: calc(var(--pf-radius) - 8px); overflow: hidden; position: relative; background: var(--pf-surface-2); aspect-ratio: 1; }
.pf-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pf-gallery figure:hover img { transform: scale(1.04); }
.pf-gallery figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 24px 12px 10px; background: linear-gradient(transparent, rgb(0 0 0 / .7)); color: #fff; font-size: .875rem; font-weight: 600; }
.pf-gallery .ph { display: grid; place-items: center; height: 100%; color: var(--pf-subtle); background: linear-gradient(135deg, rgb(var(--pf-accent-rgb) / .2), rgb(var(--pf-accent2-rgb) / .2)); }

.pf-testimonials { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pf-quote { margin: 0; padding: 24px; border-radius: calc(var(--pf-radius) - 6px); background: var(--pf-surface-2); border: 1px solid var(--pf-border); display: grid; gap: 16px; }
.pf-quote blockquote { margin: 0; font-size: 1.0625rem; }
.pf-quote .ic { color: var(--pf-accent-text); width: 28px; height: 28px; }
.pf-quote figcaption { display: flex; align-items: center; gap: 12px; }
.pf-quote figcaption img, .pf-quote .ini { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--pf-accent), var(--pf-accent2)); display: grid; place-items: center; color: var(--pf-on-accent); font-weight: 700; }
.pf-quote strong { display: block; }
.pf-quote span { color: var(--pf-subtle); font-size: .875rem; }

.pf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.pf-stat { text-align: center; padding: 20px; border-radius: calc(var(--pf-radius) - 6px); background: var(--pf-surface-2); border: 1px solid var(--pf-border); }
.pf-stat .v { font: 700 clamp(2rem, 1.6rem + 1.5vw, 2.75rem)/1 var(--pf-font-h); color: var(--pf-accent-text); }
.pf-stat .l { color: var(--pf-muted); font-weight: 600; margin-top: 8px; font-size: .9375rem; }

.pf-video { border-radius: calc(var(--pf-radius) - 6px); overflow: hidden; box-shadow: var(--pf-shadow); border: 1px solid var(--pf-border); background: #000; }
.pf-video iframe { display: block; width: 100%; border: 0; }
.pf-video-caption { color: var(--pf-muted); margin-top: 12px; font-size: .9375rem; }

.pf-cta { text-align: center; padding: calc(var(--pf-pad) + 16px) var(--pf-pad); background: linear-gradient(135deg, rgb(var(--pf-accent-rgb) / .28), rgb(var(--pf-accent2-rgb) / .28)), var(--pf-surface); }
.pf-cta > h2 { justify-content: center; }
.pf-cta > h2::before { display: none; }
.pf-cta p { color: var(--pf-muted); font-size: 1.125rem; max-width: 52ch; margin: 0 auto 28px; }

.pf-contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.pf-contact.no-form { grid-template-columns: 1fr; }
@media (max-width: 860px) { .pf-contact { grid-template-columns: 1fr; } }
.pf-contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.pf-contact-list a { display: inline-flex; align-items: center; gap: 12px; color: var(--pf-text); font-weight: 600; text-decoration: none; min-height: 44px; }
.pf-contact-list .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--pf-surface-2); border: 1px solid var(--pf-border); color: var(--pf-accent-text); }
.pf-form { display: grid; gap: 20px; }
.pf-field { display: grid; gap: 8px; }
.pf-field label { font-weight: 600; font-size: .9375rem; }
.pf-input { width: 100%; min-height: 48px; padding: 12px 16px; border-radius: calc(var(--pf-radius) * .5); border: 1px solid var(--pf-border-strong); background: var(--pf-input); color: var(--pf-text); font: 500 1rem/1.4 var(--pf-font-b); }
.pf-input::placeholder { color: var(--pf-subtle); }
textarea.pf-input { min-height: 140px; resize: vertical; }
.pf-alert { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 14px; font-weight: 600; }
.pf-alert.ok { background: rgb(34 197 94 / .14); border: 1px solid rgb(34 197 94 / .35); }
.pf-alert.ko { background: rgb(239 68 68 / .14); border: 1px solid rgb(239 68 68 / .35); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pf-footer { text-align: center; padding: 32px 16px 48px; color: var(--pf-subtle); font-size: .875rem; }
.pf-footer a { color: var(--pf-muted); text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.pf-footer a:hover { color: var(--pf-text); }

/* Révélation au défilement (uniquement si JS actif et animations activées) */
.pf-anim.js-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.pf-anim.js-on .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   PAGE DE LIENS
   ========================================================================== */
.lk {
  font-family: var(--lk-font);
  color: var(--lk-text);
  background: var(--lk-bg1);
  line-height: 1.5;
  --focus: var(--lk-text);
}
.lk-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.lkbg-aurora .lk-bg { background:
  radial-gradient(60vmax 60vmax at 0% 0%, color-mix(in srgb, var(--lk-bg1) 90%, transparent), transparent 60%),
  radial-gradient(60vmax 60vmax at 100% 100%, color-mix(in srgb, var(--lk-bg2) 90%, transparent), transparent 60%),
  #0b0b16; }
.lkbg-aurora .lk-bg::before, .lkbg-aurora .lk-bg::after { content: ''; position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(70px); opacity: .55; animation: lk-drift 22s ease-in-out infinite alternate; }
.lkbg-aurora .lk-bg::before { background: var(--lk-bg1); top: -25vmax; left: -15vmax; }
.lkbg-aurora .lk-bg::after { background: var(--lk-bg2); bottom: -25vmax; right: -15vmax; animation-direction: alternate-reverse; }
@keyframes lk-drift { to { transform: translate(8vmax, 6vmax) scale(1.1); } }
.lkbg-mesh .lk-bg { background:
  radial-gradient(at 0% 0%, var(--lk-bg1) 0, transparent 55%),
  radial-gradient(at 100% 0%, var(--lk-bg2) 0, transparent 55%),
  radial-gradient(at 100% 100%, var(--lk-bg1) 0, transparent 55%),
  radial-gradient(at 0% 100%, var(--lk-bg2) 0, transparent 55%), #f5f3ff; }
.lkbg-gradient .lk-bg { background: linear-gradient(160deg, var(--lk-bg1), var(--lk-bg2)); }
.lkbg-solid .lk-bg { background: var(--lk-bg1); }
.lkbg-image .lk-bg { background: linear-gradient(rgb(0 0 0 / .35), rgb(0 0 0 / .5)), var(--lk-bg-image) center / cover no-repeat, #111; }

.lk-main { width: 100%; max-width: 640px; margin-inline: auto; padding: 56px 20px 40px; display: grid; gap: 16px; }
.lk-head { text-align: center; display: grid; justify-items: center; gap: 8px; margin-bottom: 12px; }
.lk-avatar { width: 104px; height: 104px; object-fit: cover; box-shadow: 0 0 0 4px rgb(255 255 255 / .18), 0 16px 40px rgb(0 0 0 / .25); margin-bottom: 8px; background: linear-gradient(135deg, var(--lk-bg1), var(--lk-bg2)); display: grid; place-items: center; font: 700 2.5rem var(--lk-font); color: #fff; }
.lkshape-circle .lk-avatar { border-radius: 50%; }
.lkshape-rounded .lk-avatar { border-radius: 28px; }
.lkshape-square .lk-avatar { border-radius: 10px; }
.lk-head h1 { margin: 0; font-size: 1.5rem; line-height: 1.2; font-weight: 700; color: var(--lk-text); }
.lk-head .handle { font-size: .9375rem; opacity: .85; font-weight: 600; direction: ltr; }
.lk-head .bio { max-width: 46ch; font-size: 1rem; opacity: .92; margin: 4px 0 0; white-space: pre-line; }
.lk-socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.lk-socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--lk-text); background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .16); transition: transform .15s; }
.lk-socials a:hover { transform: translateY(-2px) scale(1.05); }
.lk-socials .ic { width: 20px; height: 20px; }

.lk-list { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.lk-btn {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 56px; text-decoration: none;
  color: var(--lk-btn-text); font-weight: 700; font-size: 1rem; text-align: center; justify-content: center;
  transition: transform .18s, box-shadow .18s, filter .18s, background-color .18s; overflow: hidden; isolation: isolate;
}
.lk-btn .lk-ico { position: absolute; inset-inline-start: 10px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border-radius: calc(var(--lk-r) * .7); overflow: hidden; }
.lk-btn .lk-ico img { width: 100%; height: 100%; object-fit: cover; }
.lk-btn .lk-end { position: absolute; inset-inline-end: 16px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 6px; }
.lk-btn .lk-price { font-size: .8125rem; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--lk-btn-text) 16%, transparent); }
.lk-btn .lk-title { overflow-wrap: anywhere; }
.lk-btn:hover { transform: translateY(-2px) scale(1.01); }
.lk-btn:active { transform: scale(.99); }
.lkshape-btn-square .lk-btn { --lk-r: 6px; border-radius: 6px; }
.lkshape-btn-rounded .lk-btn { --lk-r: 16px; border-radius: 16px; }
.lkshape-btn-pill .lk-btn { --lk-r: 30px; border-radius: 999px; }
.lkstyle-glass .lk-btn { background: color-mix(in srgb, var(--lk-btn) 16%, transparent); border: 1px solid color-mix(in srgb, var(--lk-btn) 30%, transparent); -webkit-backdrop-filter: blur(var(--lk-blur)) saturate(160%); backdrop-filter: blur(var(--lk-blur)) saturate(160%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 10px 30px -12px rgb(0 0 0 / .35); }
.lkstyle-glass .lk-btn:hover { background: color-mix(in srgb, var(--lk-btn) 24%, transparent); }
.lkstyle-solid .lk-btn { background: var(--lk-btn); }
.lkstyle-outline .lk-btn { background: transparent; border: 2px solid var(--lk-btn); }
.lkstyle-outline .lk-btn:hover { background: color-mix(in srgb, var(--lk-btn) 14%, transparent); }
.lkstyle-soft .lk-btn { background: var(--lk-btn); box-shadow: 0 14px 34px -14px rgb(0 0 0 / .45); }
.lkstyle-hard .lk-btn { background: var(--lk-btn); border: 2px solid var(--lk-text); box-shadow: 5px 5px 0 var(--lk-text); }
.lkstyle-hard .lk-btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--lk-text); }
.lk-btn.featured { min-height: 68px; }
.lkstyle-glass .lk-btn.featured, .lkstyle-outline .lk-btn.featured { background: linear-gradient(135deg, color-mix(in srgb, var(--lk-bg1) 70%, transparent), color-mix(in srgb, var(--lk-bg2) 70%, transparent)); border-color: color-mix(in srgb, var(--lk-btn) 45%, transparent); color: #fff; }
.anim-pulse { animation: lk-pulse 2.2s ease-in-out infinite; }
.anim-glow { animation: lk-glow 2.4s ease-in-out infinite; }
.anim-wobble { animation: lk-wobble 4s ease-in-out infinite; }
.anim-shine::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .35) 50%, transparent 70%); transform: translateX(-120%); animation: lk-shine 3.2s ease-in-out infinite; }
@keyframes lk-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@keyframes lk-glow { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lk-btn) 0%, transparent); } 50% { box-shadow: 0 0 28px 4px color-mix(in srgb, var(--lk-bg2) 70%, transparent); } }
@keyframes lk-wobble { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(-2deg); } 92% { transform: rotate(2deg); } 95% { transform: rotate(-1deg); } }
@keyframes lk-shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.lk-header { text-align: center; font-size: 1rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin: 16px 0 0; opacity: .9; color: var(--lk-text); }
.lk[lang="ar"] .lk-header { letter-spacing: 0; text-transform: none; }

.lk-news { margin-top: 12px; padding: 20px; border-radius: 20px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .18); -webkit-backdrop-filter: blur(var(--lk-blur)); backdrop-filter: blur(var(--lk-blur)); text-align: center; }
.lk-news h2 { margin: 0 0 6px; font-size: 1.125rem; color: var(--lk-text); }
.lk-news p { margin: 0 0 14px; opacity: .9; font-size: .9375rem; }
.lk-news form { display: flex; gap: 8px; flex-wrap: wrap; }
.lk-news input { flex: 1 1 200px; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid rgb(255 255 255 / .45); background: rgb(255 255 255 / .92); color: #17152b; font: 500 1rem var(--lk-font); }
.lk-news button { min-height: 48px; padding: 0 20px; border-radius: 14px; border: 0; background: var(--lk-btn); color: var(--lk-btn-text); font: 700 1rem var(--lk-font); cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.lkstyle-glass .lk-news button, .lkstyle-outline .lk-news button { background: #fff; color: #17152b; }
.lk-news .ok { font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.lk-foot { text-align: center; margin-top: 28px; display: grid; gap: 12px; justify-items: center; }
.lk-foot a { color: var(--lk-text); opacity: .85; text-decoration: none; font-size: .875rem; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .16); }
.lk-foot a:hover { opacity: 1; }
.lk-foot .ic { width: 16px; height: 16px; }
.lk-empty { text-align: center; opacity: .85; padding: 24px; }

/* Porte (lien verrouillé / contenu sensible) */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.gate-card { width: 100%; max-width: 420px; padding: 32px; border-radius: 28px; text-align: center; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .2); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 30px 80px rgb(0 0 0 / .35); color: var(--lk-text); }
.gate-card .ico { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 20px; display: grid; place-items: center; background: rgb(255 255 255 / .16); }
.gate-card h1 { font-size: 1.375rem; margin: 0 0 8px; }
.gate-card p { opacity: .9; margin: 0 0 24px; }
.gate-card form { display: grid; gap: 12px; }
.gate-card input { min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid rgb(255 255 255 / .5); background: rgb(255 255 255 / .92); color: #17152b; font: 600 1.125rem var(--lk-font); text-align: center; letter-spacing: .1em; }
.gate-card .btn { min-height: 52px; border-radius: 14px; border: 0; font: 700 1rem var(--lk-font); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.gate-card .btn-main { background: #fff; color: #17152b; }
.gate-card .btn-sub { background: transparent; color: var(--lk-text); border: 1px solid rgb(255 255 255 / .35); }
.gate-card .err { color: #fecaca; font-weight: 700; margin-bottom: 12px; display: flex; gap: 8px; justify-content: center; align-items: center; }

/* Lien « Signaler » discret */
.lk-foot .lk-report, .pf-footer .pf-report { opacity: .62; font-size: .8125rem; }
.lk-foot .lk-report:hover, .pf-footer .pf-report:hover { opacity: 1; }
