/* UREK · mouvement discret et ambiance évolutive — complément non destructif */
:root {
  --urek-a: 40, 167, 233;
  --urek-b: 18, 53, 82;
  --urek-c: 5, 17, 29;
  --urek-focus: rgba(40, 167, 233, .24);
}

body {
  position: relative;
  isolation: isolate;
  background: #172532;
  transition: background-color 900ms ease, color 400ms ease;
}

/* Deux halos très doux : la couleur est pilotée par la section visible. */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  width: min(55vw, 760px);
  height: min(55vw, 760px);
  border-radius: 50%;
  filter: blur(52px);
  opacity: .22;
  transition: background 1100ms ease, transform 1500ms cubic-bezier(.2,.75,.2,1), opacity 700ms ease;
}
body::before { top: -25vw; left: -18vw; background: rgb(var(--urek-a)); transform: translate3d(0, 0, 0); }
body::after { right: -24vw; bottom: -26vw; background: rgb(var(--urek-b)); transform: translate3d(0, 0, 0); }

body[data-urek-tone="home"] { --urek-a: 40, 167, 233; --urek-b: 8, 45, 77; --urek-c: 5, 17, 29; background-color: #172532; }
body[data-urek-tone="team"] { --urek-a: 45, 133, 180; --urek-b: 36, 77, 108; --urek-c: 13, 27, 40; background-color: #1b303e; }
body[data-urek-tone="service"] { --urek-a: 33, 156, 151; --urek-b: 34, 103, 132; --urek-c: 8, 30, 38; background-color: #17343b; }
body[data-urek-tone="portfolio"] { --urek-a: 45, 121, 173; --urek-b: 66, 86, 150; --urek-c: 17, 25, 51; background-color: #202a43; }
body[data-urek-tone="chatyana"] { --urek-a: 40, 167, 233; --urek-b: 62, 125, 142; --urek-c: 9, 33, 43; background-color: #183540; }
body[data-urek-tone="contact"] { --urek-a: 32, 120, 178; --urek-b: 24, 65, 86; --urek-c: 7, 20, 29; background-color: #15242f; }
body[data-urek-tone="team"]::before, body[data-urek-tone="service"]::before { transform: translate3d(16vw, 11vh, 0) scale(.9); }
body[data-urek-tone="portfolio"]::after, body[data-urek-tone="chatyana"]::after { transform: translate3d(-15vw, -12vh, 0) scale(1.08); }

/* La lecture reste nette sur une ambiance qui accompagne la navigation. */
#team, #service, #portfolio, #chatyana, #contact { position: relative; background: linear-gradient(110deg, rgba(8,18,28,.88), rgba(20,43,60,.70)); transition: background 850ms ease, box-shadow 700ms ease; }
#team::before, #service::before, #portfolio::before, #chatyana::before, #contact::before { content:""; position:absolute; inset:0; pointer-events:none; background: linear-gradient(90deg, rgba(255,255,255,.025), transparent 42%); opacity:0; transition: opacity 650ms ease; }
section.is-current::before { opacity:1; }
section.is-current { box-shadow: inset 0 1px rgba(255,255,255,.06), inset 0 -1px rgba(0,0,0,.1); }

/* Entrées modestes : aucune translation excessive, aucun flash. */
html.js-motion .motion-reveal { opacity: 0; transform: translateY(14px); transition: opacity 560ms ease, transform 650ms cubic-bezier(.2,.75,.2,1); }
html.js-motion .motion-reveal.is-visible { opacity: 1; transform: none; }
html.js-motion .motion-reveal:nth-child(2) { transition-delay: 70ms; }
html.js-motion .motion-reveal:nth-child(3) { transition-delay: 130ms; }
html.js-motion .motion-reveal:nth-child(4) { transition-delay: 190ms; }

/* Navigation et boutons : sentiment de précision, sans rebond. */
.navbar-default { background: rgba(255,255,255,.96); transition: background 350ms ease, box-shadow 350ms ease; }
.navbar-default.urek-nav-scrolled { box-shadow: 0 8px 28px rgba(1, 15, 26, .16); }
.navbar-default .navbar-nav li a { position:relative; transition: color 260ms ease; }
.navbar-default .navbar-nav li a::after { content:""; position:absolute; right:15px; bottom:15px; left:15px; height:2px; background:#28a7e9; transform:scaleX(0); transform-origin:right; transition:transform 260ms ease; }
.navbar-default .navbar-nav li a:hover::after, .navbar-default .navbar-nav li a.current::after { transform:scaleX(1); transform-origin:left; }
#home .btn, #chatyana .btn, #contact input[type="submit"] { transition: transform 220ms ease, box-shadow 220ms ease, background 260ms ease, border-color 260ms ease; }
#home .btn:hover, #chatyana .btn:hover, #contact input[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 8px 19px rgba(0,0,0,.2); }
#team .team-wrapper, #service .col-md-4 { border: 1px solid transparent; transition: transform 300ms cubic-bezier(.2,.75,.2,1), background 300ms ease, border-color 300ms ease, box-shadow 300ms ease; }
#team .team-wrapper:hover { opacity:1; bottom:auto; transform:translateY(-5px); border-color:rgba(100,205,250,.5); box-shadow:0 16px 30px rgba(0,0,0,.18); }
#service .col-md-4:hover { transform:translateY(-4px); background:rgba(255,255,255,.10); border-color:rgba(100,205,250,.32); box-shadow:0 16px 30px rgba(0,0,0,.14); }

/* Indicateur discret de progression, utile sur une page longue. */
#urek-progress { position:fixed; z-index:2000; top:0; left:0; height:3px; width:100%; transform:scaleX(0); transform-origin:left; background:linear-gradient(90deg,#28a7e9,#77d3de); box-shadow:0 1px 8px rgba(40,167,233,.45); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  body, body::before, body::after, #team, #service, #portfolio, #chatyana, #contact, .navbar-default, #team .team-wrapper, #service .col-md-4, #home .btn, #chatyana .btn, #contact input[type="submit"] { transition:none !important; }
  body::before, body::after { display:none; }
  html.js-motion .motion-reveal { opacity:1; transform:none; }
}
