/* NOX STUDIO — Minimal dark identity */

:root{
  --bg: #0B0B0B;
  --fg: #FFFFFF;
  --muted: rgba(255,255,255,0.72);
  --muted2: rgba(255,255,255,0.55);
  --line: rgba(255,255,255,0.10);
  --card: rgba(255,255,255,0.04);
  --shadow: rgba(0,0,0,0.6);
  --max: 1080px;
  --radius: 20px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  color: var(--fg);
  background: #050505; /* fond noir réel pour contraste étoiles/nébuleuse */
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  letter-spacing: 0.2px;
  overflow-x: hidden;
}

/* Canvas space */
#space{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.95;
}

/* Subtle noise overlay (léger) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.05), transparent 35%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,0.03), transparent 40%),
    linear-gradient(to bottom, rgba(255,255,255,0.02), transparent 40%, rgba(255,255,255,0.02));
  opacity: 0.14; /* ↓ un peu plus bas pour ne pas “blanchir” */
  mix-blend-mode: screen;
}

/* Voile de lisibilité (très discret) */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(900px 600px at 50% 15%, rgba(255,255,255,0.02), transparent 70%);
  opacity: 1; /* l’opacité est déjà dans la couleur */
}

/* Contenu au-dessus du canvas */
.header, main, section, footer{
  position: relative;
  z-index: 2;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 4px; }

.container{
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 10;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(11,11,11,0.55);
  border-bottom: 1px solid var(--line);
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
}

.brand .mark{
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  position: relative;
  box-shadow: 0 12px 30px var(--shadow);
  background: rgba(255,255,255,0.03);
}

.brand .mark::after{
  content:"";
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  background: var(--fg);
  box-shadow: 0 0 20px rgba(255,255,255,0.25);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.brand .mark::before{
  content:"";
  position:absolute;
  inset: 6px;
  border-radius:999px;
  background: var(--bg);
  transform: translateX(5px);
}

/* Nav links */
.links{
  display:flex;
  align-items:center;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
}

.links a{
  padding: 8px 10px;
  border-radius: 12px;
}

.links a:hover{
  background: rgba(255,255,255,0.05);
  color: var(--fg);
  text-decoration: none;
}

/* Hero */
.hero{
  padding: 72px 0 36px;
}
/* ===== Portfolio projects ===== */

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin: 80px 0;
  align-items: center;
}

.project-media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px var(--shadow);
}

.project-media.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  height: 320px;
  color: var(--muted2);
  font-size: 14px;
}

.project-content h2 {
  margin-top: 0;
}

.project-content ul {
  padding-left: 18px;
  margin: 12px 0;
}

@media (max-width: 900px) {
  .project {
    grid-template-columns: 1fr;
  }
}
/* ===== Portfolio hover premium ===== */

.project-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.project-media img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px var(--shadow);
  transition: transform 0.6s ease, filter 0.6s ease;
}

/* zoom + glow */
.project-media:hover img {
  transform: scale(1.06);
  filter: brightness(1.08);
}

/* halo lumineux */
.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.15), transparent 70%);
}

.project-media:hover::after {
  opacity: 1;
}
.project-media:active img {
  transform: scale(1.02);
}
/* ===== About page ===== */

.about-block {
  margin: 60px 0;
  max-width: 720px;
}

.about-block ul {
  padding-left: 18px;
  margin-top: 12px;
}

.about-cta {
  margin: 80px 0;
}
.section { margin: 90px 0; 
}
.underline {
  border-bottom: 2px solid white;
  display: inline-block;
  padding-bottom: 6px;
}
/* Menu déroulant — gris premium */

select,
select option {
  background: #1b1b1b;   /* gris profond */
  color: #eaeaea;        /* blanc doux */
  border: 1px solid rgba(255,255,255,0.12);
}

select:hover {
  border-color: rgba(255,255,255,0.25);
}

select:focus {
  outline: none;
  border-color: rgba(255,255,255,0.45);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.08);
}

/* flèche custom */
.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #eaeaea 50%),
    linear-gradient(135deg, #eaeaea 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
/* ===== CONTACT PREMIUM ===== */

.contact-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  margin-top: 32px;
}

.contact-form form{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label{
  font-size: 13px;
  color: var(--muted2);
  margin-bottom: 4px;
}

.contact-form input,
.contact-form select,
.contact-form textarea{
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.25s ease;
}

.contact-form textarea{
  resize: vertical;
  min-height: 140px;
}

/* hover */
.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover{
  border-color: rgba(255,255,255,0.25);
}

/* focus premium glow */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
  border-color: rgba(255,255,255,0.55);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.05);
}

/* bouton */
.contact-form button{
  margin-top: 12px;
  align-self: flex-start;
}

/* info panel */
.contact-info{
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

/* responsive */
@media (max-width: 900px){
  .contact-grid{
    grid-template-columns: 1fr;
  }
}
/* ===== PREMIUM BUTTON MICRO-ANIM ===== */

.btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--fg);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  transform: translateY(0);
  overflow: hidden;
}

/* glow hover */
.btn::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.18), transparent 70%);
  opacity:0;
  transition: opacity 0.3s ease;
}

.btn:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 10px 30px rgba(255,255,255,0.06);
}

.btn:hover::before{
  opacity:1;
}

/* press effect */
.btn:active{
  transform: translateY(1px) scale(0.98);
  box-shadow: none;
}

/* primary variant */
.btn.primary{
  background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.04));
  border-color: rgba(255,255,255,0.35);
}
/* ===== UI / TRUST BADGES ===== */
.badges{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}
.badge{
  font-size:12px;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}

/* ===== PREMIUM BUTTON MICRO-ANIM ===== */
.btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--fg);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  transform: translateY(0);
  overflow: hidden;
}
.btn::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.18), transparent 70%);
  opacity:0;
  transition: opacity 0.3s ease;
}
.btn:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 10px 30px rgba(255,255,255,0.06);
  text-decoration:none;
}
.btn:hover::before{ opacity:1; }
.btn:active{
  transform: translateY(1px) scale(0.98);
  box-shadow:none;
}
.btn.primary{
  background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.04));
  border-color: rgba(255,255,255,0.35);
}

/* ===== FIX SELECT (gris premium, lisible) ===== */
select,
select option{
  background:#1b1b1b;
  color:#eaeaea;
}
select:focus{
  outline:none;
  border-color: rgba(255,255,255,0.45);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.08);
}

/* ===== CONTACT PREMIUM ===== */
.contact-grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  margin-top: 28px;
}
.contact-form form{
  display:flex;
  flex-direction:column;
  gap: 16px;
}
.field{
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.field label{
  font-size: 13px;
  color: var(--muted2);
}
.contact-form input,
.contact-form select,
.contact-form textarea{
  width:100%;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  outline:none;
  transition: all .25s ease;
}
.contact-form textarea{
  resize: vertical;
  min-height: 160px;
}
.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover{
  border-color: rgba(255,255,255,0.25);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
  border-color: rgba(255,255,255,0.55);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.05);
}
.contact-info ul{
  margin: 0;
  padding-left: 18px;
}
@media (max-width: 900px){
  .contact-grid{ grid-template-columns: 1fr; }
}
.project-content h2 a {
  text-decoration: none;
  color: inherit;
}

.project-content h2 a:hover {
  text-decoration: underline;
}