/* Dev-Geek 2026 — refonte visuelle (palette encre / ivoire / pervenche). Chargee APRES styles.css, uniquement sur les pages marquees <body class="v26">.
   Garde les images et la disposition ; remplace typographie, couleurs, surfaces et textes. */
.v26 {
  --bg: #0a0d13;
  --bg2: #0e121a;
  --surface: #121722;
  --line: #252c3a;
  --text: #f1ede4;
  --muted: #b4b8c2;
  --soft: #858c99;
  --accent: #a9b8ff;
  --accent-ink: #0a0d13;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  -webkit-user-select: auto;
  user-select: auto;
}
.v26 img, .v26 a { -webkit-user-select: none; user-select: none; }
.v26 ::selection { background: var(--accent); color: var(--accent-ink); }
.v26 :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.v26 { scrollbar-color: #2a3644 var(--bg); }

/* fond : plus de halos rose / cyan */
.v26 .ambient { background: var(--bg); }
.v26 .ambient:after { opacity: .035; }

/* textes toujours visibles : pas d'apparition au defilement */
.v26 .reveal, .v26 .reveal.visible { opacity: 1; transform: none; transition: none; }

/* en-tete : barre pleine, sans verre flou */
.v26 .site-header {
  top: 0; width: 100%; max-width: none; border-radius: 0; border: 0;
  border-bottom: 1px solid transparent; background: transparent;
  backdrop-filter: none; box-shadow: none; padding: 12px max(16px, calc((100% - 1440px) / 2 + 16px));
  transition: background-color .25s ease, border-color .25s ease;
}
/* transparente en haut de page, pleine des qu'on fait defiler (classe is-scrolled posee par app.js) */
.v26 .site-header.is-scrolled, .v26.menu-open .site-header, .menu-open .v26 .site-header { background: var(--bg); border-bottom-color: var(--line); }
.v26 .main-nav a, .v26 .nav-parent { border-radius: 6px; font-family: var(--sans); font-weight: 500; color: #cfd6df; }
.v26 .main-nav a:hover, .v26 .nav-parent:hover { background: transparent; color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
/* sous-menu Services : une liste simple sur une colonne, sans tuiles ni numeros */
.v26 .nav-submenu { width: 300px; padding: 6px 0; gap: 0; grid-template-columns: 1fr; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); backdrop-filter: none; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.v26 .nav-submenu a { display: block !important; min-height: 0; padding: 11px 18px !important; border: 0; border-radius: 0 !important; background: transparent !important; color: var(--text) !important; transform: none !important; }
.v26 .nav-submenu a + a { border-top: 1px solid var(--line); }
.v26 .nav-submenu a span { display: none; }
.v26 .nav-submenu a strong { font: 500 15px/1.35 var(--sans); white-space: nowrap; }
.v26 .nav-submenu a:hover strong, .v26 .nav-submenu a:focus-visible strong { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
@media (max-width: 759px) {
  .v26 .nav-submenu { width: auto; border-left: 1px solid var(--line); }
  .v26 .nav-submenu a { padding: 10px 14px !important; }
}

/* titres */
.v26 h1, .v26 h2, .v26 h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; text-wrap: balance; }
.v26 .hero h1 { font-size: clamp(44px, 6.4vw, 92px) !important; line-height: 1.02 !important; margin: 0 0 24px; }
.v26 .hero h1 em { font-style: italic; color: var(--accent); }
.v26 .section-title h2, .v26 .profile-copy h2, .v26 .cta h2 { font-size: clamp(32px, 3.8vw, 56px) !important; line-height: 1.08 !important; }
.v26 .lead { font-size: clamp(17px, 1.35vw, 20px) !important; line-height: 1.65; color: var(--muted); max-width: 58ch; }

/* boutons : plats, coins sobres */
.v26 .btn { min-height: 50px; padding: 0 22px; border-radius: 8px; font-family: var(--sans); font-weight: 600; letter-spacing: 0; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.v26 .btn.primary { background: var(--text); color: var(--accent-ink); border: 1px solid var(--text); }
.v26 .btn.primary:hover { background: var(--accent); border-color: var(--accent); }
.v26 .btn.ghost { background: transparent; color: var(--text); border: 1px solid #3a4655; }
.v26 .btn.ghost:hover { border-color: var(--text); }

/* hero : la photo garde sa place, sans halo */
.v26 .void-glow { display: none; }
.v26 .hero-copy { max-width: 660px; }

/* ligne des technologies : statique, une seule fois */
.v26 .marquee { background: var(--bg2); border-block: 1px solid var(--line); }
.v26 .marquee div { animation: none; width: auto; justify-content: center; flex-wrap: wrap; gap: 10px 28px; padding: 18px 16px; }
.v26 .marquee span { font: 500 14px/1.4 var(--mono); color: var(--muted); letter-spacing: .02em; }
.v26 .marquee span[aria-hidden="true"] { display: none; }

/* introduction : texte simple a droite */
.v26 .intro { padding-block: 96px; }
.v26 .intro-text { border: 0; border-radius: 0; background: none; box-shadow: none; padding: 0; }
.v26 .intro-text p, .v26 .profile-copy p, .v26 .cta p { color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.7; max-width: 62ch; }

/* services : meme disposition autour de l'image, cartes pleines et sobres */
.v26 .vertical-title { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4.4vw, 64px) !important; line-height: 1.05 !important; }
.v26 .service-orbit:before { border-color: var(--line); background: none; }
.v26 .orbit-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; backdrop-filter: none; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); padding: 18px 20px; }
.v26 .orbit-card h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(20px, 1.6vw, 24px); text-transform: none; line-height: 1.15; margin-bottom: 8px; }
.v26 .orbit-card p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.v26 .rocket-visual img { filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .45)); }

/* projets : meme carrousel, sans numeros ni majuscules */
.v26 .featured-project-head span { display: none; }
.v26 .featured-project-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3vw, 44px); }
.v26 .featured-project-head a { border-radius: 8px; background: transparent; border-color: #3a4655; text-transform: none; letter-spacing: 0; font: 500 15px var(--sans); color: var(--text); }
.v26 .featured-project-head a:hover { border-color: var(--text); }
.v26 .featured-project-head a b { color: var(--accent); }
.v26 .featured-project-card { border-radius: 10px; border-color: var(--line); box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
.v26 .featured-project-content small { display: none; }
.v26 .featured-project-content h3 { font-family: var(--serif); font-weight: 600; text-shadow: none; }
.v26 .featured-project-content p { color: #d5dbe3; font-size: 14px; }
.v26 .featured-tags span { border-radius: 4px; font: 500 12px var(--mono); background: rgba(8, 11, 16, .7); border: 1px solid rgba(255, 255, 255, .14); }
.v26 .featured-project-more { background: var(--surface); }
.v26 .featured-project-more:before { display: none; }
.v26 .featured-project-more .featured-project-content strong { border-radius: 8px; background: var(--text); color: var(--accent-ink); border: 0; font-weight: 600; }

/* methode : le globe garde sa place, texte sans carte */
.v26 .profile-copy { border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; }

/* appel final : texte centre, sans carte */
.v26 .cta { border: 0; border-radius: 0; background: none; box-shadow: none; padding: clamp(72px, 9vw, 128px) 0; text-align: center; }
.v26 .cta h2 { margin-inline: auto; max-width: 18ch; }
.v26 .cta p { margin: 20px auto 32px; max-width: 54ch; }

/* pied de page */
.v26 .footer strong { font-family: var(--serif); font-weight: 600; font-size: 20px; }
.v26 .footer a { color: var(--accent); font-weight: 500; }
.v26 .footer span { color: var(--muted); }

/* WhatsApp : bouton conserve, panneau sobre */
.v26 .whatsapp-panel { border-radius: 10px; background: var(--surface); border: 1px solid var(--line); backdrop-filter: none; }

/* ===== moment signature : la lampe frontale de l'astronaute =====
   L'espace s'allume au chargement (0,9 s) puis la lumiere suit le pointeur (site-2026.js).
   Sans JS ou sans @property : la scene est simplement eclairee, rien n'est cache. */
@property --lamp-r { syntax: "<length>"; inherits: true; initial-value: 440px; }
.v26 .void-hero { --lamp-x: 72%; --lamp-y: 42%; --lamp-r: 440px; animation: lamp-on .9s cubic-bezier(.16, 1, .3, 1) .15s both; }
@keyframes lamp-on { from { --lamp-r: 0px; } to { --lamp-r: 440px; } }
.v26 .hero-light {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background:
    radial-gradient(circle var(--lamp-r) at var(--lamp-x) var(--lamp-y), rgba(169, 184, 255, .16), transparent 62%),
    radial-gradient(circle var(--lamp-r) at var(--lamp-x) var(--lamp-y), transparent 0, transparent 30%, rgba(4, 6, 10, .86) 100%);
}

/* fusee : elle decolle pendant que la section defile (navigateurs compatibles uniquement) */
@supports (animation-timeline: view()) {
  .v26 .rocket-visual img { animation: rocket-lift linear both; animation-timeline: view(); animation-range: entry 10% exit 60%; }
  @keyframes rocket-lift { from { transform: translateY(70px); } to { transform: translateY(-50px); } }
}

/* projets : la vignette passe en pleine couleur au survol, la legende remonte */
.v26 .featured-project-card img { filter: saturate(.7) brightness(.85); transition: filter .3s ease, transform .55s cubic-bezier(.16, 1, .3, 1); }
.v26 .featured-project-card:hover img, .v26 .featured-project-card:focus-within img { filter: saturate(1.05) brightness(1); }
.v26 .featured-project-content { transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.v26 .featured-project-card:hover .featured-project-content { transform: translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
  .v26 .void-hero { animation: none; }
  .v26 *, .v26 *:before, .v26 *:after { animation: none !important; transition: none !important; }
}

/* ===== couleurs de lumiere tirees des images : nebuleuse (bleu-vert) et visiere (magenta) ===== */
.v26 { --nebula: #3cc7bd; --visor: #ff5aa8; }

/* en-tete : la lampe prend une touche magenta au centre */
.v26 .hero-light {
  background:
    radial-gradient(circle calc(var(--lamp-r) * .45) at var(--lamp-x) var(--lamp-y), rgba(255, 90, 168, .12), transparent 70%),
    radial-gradient(circle var(--lamp-r) at var(--lamp-x) var(--lamp-y), rgba(169, 184, 255, .16), transparent 62%),
    radial-gradient(circle var(--lamp-r) at var(--lamp-x) var(--lamp-y), transparent 0, transparent 30%, rgba(4, 6, 10, .86) 100%);
}

/* services : une comete fait le tour de l'orbite autour de la fusee */
@property --orbit-a { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
.v26 .service-orbit:after {
  content: ""; position: absolute; inset: 80px 18%; border-radius: 999px; pointer-events: none; z-index: 1;
  border: 2px solid transparent;
  background: conic-gradient(from var(--orbit-a), transparent 0deg 292deg, rgba(60, 199, 189, .15) 312deg, rgba(60, 199, 189, .85) 352deg, #f1ede4 358deg, transparent 360deg) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* la comete est deplacee par site-2026.js ; quand elle passe pres d'une carte, la carte s'allume */
.v26 .orbit-card { transition: background-color .9s ease, border-color .9s ease, box-shadow .9s ease, transform .9s cubic-bezier(.16, 1, .3, 1); }
.v26 .orbit-card p { transition: color .9s ease; }
.v26 .orbit-card h3 { transition: color .9s ease; }
.v26 .orbit-card.is-lit, .v26 .orbit-card:hover {
  background-color: #133a3c; border-color: rgba(60, 199, 189, .85); transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35), 0 8px 36px rgba(60, 199, 189, .32);
  transition-duration: .35s;
}
.v26 .orbit-card.is-lit h3, .v26 .orbit-card:hover h3 { color: #7ff0e6; transition-duration: .35s; }
.v26 .orbit-card.is-lit p, .v26 .orbit-card:hover p { color: #e3f1ef; transition-duration: .35s; }
@media (max-width: 900px) { .v26 .service-orbit:after { display: none; } }

/* appel final : la nebuleuse revient derriere le texte, et la lumiere suit la souris */
.v26 .cta { position: relative; isolation: isolate; --lamp-x: 50%; --lamp-y: 45%; }
.v26 .cta-sky {
  position: absolute; z-index: -1; top: -120px; bottom: -120px; left: 50%; width: 100vw; transform: translateX(-50%);
  pointer-events: none; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 48% 44% at 50% 50%, #000 0, rgba(0, 0, 0, .6) 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 48% 44% at 50% 50%, #000 0, rgba(0, 0, 0, .6) 55%, transparent 100%);
}
.v26 .cta-sky:before {
  content: ""; position: absolute; inset: -10%;
  background: url('/assets/void-spacebg.jpg') 50% 50% / cover no-repeat;
  opacity: .75; animation: sky-drift 38s ease-in-out infinite alternate; animation-play-state: paused;
}
.v26 .cta.is-live .cta-sky:before { animation-play-state: running; }
@keyframes sky-drift { from { transform: scale(1.06) translate3d(-2%, -1.5%, 0); } to { transform: scale(1.12) translate3d(2%, 1.5%, 0); } }
.v26 .cta-sky:after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle 340px at var(--lamp-x) var(--lamp-y), rgba(255, 90, 168, .22), transparent 70%),
    radial-gradient(circle 520px at calc(var(--lamp-x) + 14%) calc(var(--lamp-y) + 10%), rgba(60, 199, 189, .2), transparent 70%),
    radial-gradient(ellipse 40% 55% at 50% 50%, rgba(10, 13, 19, .55), transparent 80%);
}

@media (prefers-reduced-motion: reduce) {
  .v26 .cta-sky:before { animation: none; }
  .v26 .orbit-card.is-lit { transform: none; }
}

/* ===================== page A propos ===================== */
.v26 .subhero h1 { font-size: clamp(44px, 6vw, 88px) !important; line-height: 1.02 !important; }
.v26 .subhero h1 em { font-style: italic; color: var(--accent); }
.v26 .subhero-img { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: none !important; }
.v26 .subhero-copy h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; margin: 0 0 14px; text-transform: none; letter-spacing: -.01em; color: var(--text); }
.v26 .subhero-copy p { color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.7; max-width: 62ch; }

/* "Concretement" : une liste simple, sans carte */
.v26 .glass-panel { border: 0; border-radius: 0; background: none; box-shadow: none; padding: 0; }
.v26 .glass-panel h3 { font-size: 24px; margin: 0 0 6px; }
.v26 .glass-panel li { position: relative; padding: 14px 0 14px 26px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; color: var(--text); font-size: 17px; line-height: 1.55; }
.v26 .glass-panel li:last-child { border-bottom: 1px solid var(--line); }
.v26 .glass-panel li:before { content: ""; position: absolute; left: 0; top: 26px; width: 12px; height: 1px; background: var(--accent); }

/* parcours */
.v26 .story-timeline .section-title h2 { font-size: clamp(32px, 3.8vw, 56px); }
.v26 .story-timeline-list:before { background: var(--line); }
.v26 .story-timeline-date { font: 500 14px/1.4 var(--mono); color: var(--muted); letter-spacing: 0; text-transform: none; }
.v26 .story-timeline-dot { width: 14px; height: 14px; background: var(--bg); border: 2px solid #3a4655; box-shadow: none; transition: border-color .5s ease, background-color .5s ease, box-shadow .5s ease; }
.v26 .story-timeline-dot:before { display: none; }
.v26 .story-timeline-card { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 10px 24px rgba(0, 0, 0, .22); backdrop-filter: none; }
.v26 .story-timeline-place { color: var(--soft) !important; font: 500 13px/1.3 var(--sans) !important; letter-spacing: 0 !important; text-transform: none !important; }
.v26 .story-timeline-card h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(21px, 1.9vw, 28px); line-height: 1.15; }
.v26 .story-timeline-card strong { color: var(--accent); font-weight: 500; }
.v26 .story-timeline-card p:not(.story-timeline-place) { color: var(--muted); }

/* la ligne du parcours se remplit pendant la lecture ; chaque point s'allume a son etape */
@supports (animation-timeline: view()) {
  .v26 .story-timeline-list { view-timeline-name: --parcours; }
  .v26 .story-timeline-list:after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%) scaleY(0); transform-origin: top;
    background: linear-gradient(180deg, var(--accent), var(--nebula)); pointer-events: none;
    animation: parcours-fill linear both; animation-timeline: --parcours; animation-range: entry 30% exit 60%;
  }
  @keyframes parcours-fill { to { transform: translateX(-50%) scaleY(1); } }
  .v26 .story-timeline-dot { animation: dot-on linear both; animation-timeline: view(); animation-range: entry 60% cover 45%; }
  @keyframes dot-on { to { border-color: var(--nebula); background-color: var(--nebula); box-shadow: 0 0 0 5px rgba(60, 199, 189, .16); } }
}
@media (prefers-reduced-motion: reduce) {
  .v26 .story-timeline-list:after { animation: none; transform: translateX(-50%) scaleY(1); }
  .v26 .story-timeline-dot { animation: none; border-color: var(--nebula); }
}
@media (max-width: 640px) { .v26 .story-timeline-list:after { left: 9px; } }
