/* OMBREMIMS — design system
   Développement × Produit × Image
   White-based · per-page accent (blue / yellow / pink) */

:root{
  --white:        #FFFFFF;
  --white-2:      #FAFBFD;          /* very subtle off-white */
  --white-3:      #F2F4F8;          /* card / panel */

  --ink:          #0B0E1A;          /* deep ink */
  --ink-soft:     #2A2F40;
  --ink-mute:     #6A7080;

  /* page accents (overridden per page) */
  --accent:       #1A4DFF;
  --accent-deep:  #0B2EB8;
  --accent-soft:  #5B7BFF;
  --accent-tint:  #E6ECFF;          /* very pale wash */
  --accent-fg:    #FFFFFF;          /* text color on accent fill */

  /* photography (pink) */
  --pink:         #FF3BA8;
  --pink-deep:    #C8267F;
  --pink-soft:    #FF85C8;
  --pink-tint:    #FFE7F3;

  /* developer (blue) */
  --blue:         #1A4DFF;
  --blue-deep:    #0B2EB8;
  --blue-soft:    #5B7BFF;
  --blue-tint:    #E6ECFF;

  /* product owner (yellow) */
  --yellow:       #FFCF00;
  --yellow-deep:  #E5A500;
  --yellow-soft:  #FFE066;
  --yellow-tint:  #FFF6CC;

  --line:         rgba(11,14,26,.10);
  --line-strong:  rgba(11,14,26,.28);

  --shadow-1:     0 1px 0 rgba(11,14,26,.04), 0 8px 24px -12px rgba(11,14,26,.18);
  --shadow-2:     0 30px 80px -30px rgba(11,14,26,.35);

  --radius:       18px;
  --radius-sm:    10px;

  --maxw:         1280px;

  --f-display:    "Cinzel", "Cormorant Garamond", "Times New Roman", serif;
  --f-editorial:  "Cormorant Garamond", "Times New Roman", serif;
  --f-body:       "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  --f-mono:       "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*{ box-sizing: border-box; }

html, body{
  margin:0; padding:0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* —————————————————— typography —————————————————— */
.display{
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.05;
}
.editorial{
  font-family: var(--f-editorial);
  font-style: italic;
  font-weight: 500;
}
.eyebrow{
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

a{ color: inherit; text-decoration: none; }

/* —————————————————— top bar —————————————————— */
.topbar{
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  background: color-mix(in oklab, var(--white) 85%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .brand{
  display:flex; align-items:center; gap: 12px;
  font-family: var(--f-display);
  letter-spacing: .18em;
  font-size: 15px;
}
.topbar .brand img{ width: 34px; height: 34px; object-fit: contain; }
.topbar .brand .wordmark{ font-weight: 600; }

.topbar nav{
  display: flex; gap: 4px; align-items: center;
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
}
.topbar nav a{
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.topbar nav a:hover{ background: var(--ink); color: var(--white); }
.topbar nav a.active{ background: var(--accent); color: var(--accent-fg); }
.topbar nav a.cta{ background: var(--ink); color: var(--white); }
.topbar nav a.cta:hover{ background: var(--accent); color: var(--accent-fg); }

@media (max-width: 720px){
  .topbar nav a:not(.cta){ display: none; }
}

/* —————————————————— buttons —————————————————— */
.btn{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s, color .2s, box-shadow .2s, border-color .2s;
}
.btn-primary{
  background: var(--accent); color: var(--accent-fg);
  box-shadow: 0 12px 30px -12px color-mix(in oklab, var(--accent) 60%, transparent);
}
.btn-primary:hover{ background: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost{
  background: transparent; color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover{ background: var(--ink); color: var(--white); }
.btn-ink{
  background: var(--ink); color: var(--white);
}
.btn-ink:hover{ background: var(--accent); color: var(--accent-fg); }

/* —————————————————— footer —————————————————— */
.footer{
  position: relative; z-index: 1;
  padding: 80px clamp(20px, 4vw, 48px) 48px;
  display: grid; gap: 40px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.footer h4{
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 14px;
}
.footer .big{
  font-family: var(--f-display);
  letter-spacing: .12em;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  margin: 0 0 18px;
}
.footer .big em{ color: var(--accent); font-style: normal; }
.footer ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover{ color: var(--accent); }
.footer .meta{
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 20px; padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-mute);
}
@media (max-width: 720px){
  .footer{ grid-template-columns: 1fr; }
}

/* —————————————————— static legal pages —————————————————— */
.legal-shell{
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  padding: clamp(52px, 8vw, 96px) 0 clamp(72px, 10vw, 120px);
}
.legal-hero{
  display: grid;
  gap: 18px;
  padding-bottom: clamp(34px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
}
.legal-hero > *{ min-width: 0; }
.legal-hero h1{
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(44px, 8vw, 96px);
  line-height: .98;
  letter-spacing: .08em;
  overflow-wrap: anywhere;
}
.legal-hero p{
  max-width: 68ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.6vw, 21px);
}
.legal-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .42fr);
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(34px, 5vw, 60px);
}
.legal-stack{ display: grid; gap: 22px; }
.legal-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--accent-tint) 60%, transparent), transparent 60%),
    var(--white-2);
  box-shadow: var(--shadow-1);
}
.legal-card h2{
  margin: 0 0 16px;
  font-family: var(--f-display);
  letter-spacing: .08em;
  font-size: clamp(22px, 2.4vw, 30px);
}
.legal-card h3{
  margin: 24px 0 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.legal-card p,
.legal-card li{
  color: var(--ink-soft);
}
.legal-card p{ margin: 0 0 12px; }
.legal-card ul{
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 8px;
}
.legal-card a{
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-note{
  border-color: var(--line-strong);
  background: var(--ink);
  color: var(--white);
}
.legal-note h2,
.legal-note p,
.legal-note li{ color: var(--white); }
.legal-note a{ color: var(--accent-soft); }
.legal-aside{
  align-self: start;
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}
.legal-aside .legal-card:not(.legal-note){
  background: var(--white);
}
@media (max-width: 860px){
  .legal-grid{ grid-template-columns: 1fr; }
  .legal-aside{ position: static; }
}
@media (max-width: 480px){
  .legal-hero h1{
    font-size: clamp(34px, 10vw, 44px);
    letter-spacing: .03em;
  }
}

/* —————————————————— sparkles helper —————————————————— */
.sparkle{
  position: absolute;
  width: 14px; height: 14px;
  pointer-events: none;
  color: var(--accent);
  filter: drop-shadow(0 0 8px color-mix(in oklab, var(--accent) 60%, transparent));
  animation: twinkle 3.4s ease-in-out infinite;
}
@keyframes twinkle{
  0%, 100%{ transform: scale(1) rotate(0deg); opacity: .9; }
  50%{ transform: scale(.55) rotate(45deg); opacity: .35; }
}

/* —————————————————— gallery: shared lightbox ——————————————————
   Used by the "Galerie" onglet on photography.html. Any .g-item opens
   the lightbox (wired by gallery.js). data-full = large source. */
.g-item{ cursor: zoom-in; }
.lb{
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  background: rgba(8,6,10,.95);
  backdrop-filter: blur(6px);
}
.lb.open{ display: flex; animation: lb-in .3s ease both; }
@keyframes lb-in{ from{ opacity: 0; } to{ opacity: 1; } }
.lb figure{ margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb img{ max-width: 92vw; max-height: 82vh; object-fit: contain; box-shadow: 0 40px 120px -30px rgba(0,0,0,.8); border-radius: 2px; }
.lb figcaption{
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.lb-btn{
  position: absolute; z-index: 2;
  background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 22px; line-height: 1;
  transition: background .2s, transform .2s, border-color .2s;
}
.lb-btn:hover{ background: var(--pink, #FF3BA8); border-color: var(--pink, #FF3BA8); transform: scale(1.05); }
.lb-prev{ left: clamp(12px, 3vw, 36px); top: 50%; transform: translateY(-50%); }
.lb-prev:hover{ transform: translateY(-50%) scale(1.05); }
.lb-next{ right: clamp(12px, 3vw, 36px); top: 50%; transform: translateY(-50%); }
.lb-next:hover{ transform: translateY(-50%) scale(1.05); }
.lb-close{ top: clamp(12px, 3vw, 28px); right: clamp(12px, 3vw, 28px); }
.lb-counter{
  position: absolute; top: clamp(14px,3vw,30px); left: clamp(14px,3vw,30px); z-index: 2;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; color: rgba(255,255,255,.7);
}
@media (max-width: 600px){ .lb-prev, .lb-next{ top: auto; bottom: 18px; transform: none; } .lb-prev:hover,.lb-next:hover{ transform: scale(1.05); } }

/* —————————————————— motion —————————————————— */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation: none !important;
    transition: none !important;
  }
}
