/* ============================================================
   SR PORTFOLIO — port.css  v2  "ransom editorial"
   ============================================================ */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --or:    #FF6B00;
  --noir:  #0A0A0A;
  --gris:  #141414;
  --mid:   #222;
  --txt:   #ccc;
  --blanc: #fff;
  --cream: #F2EAD8;
  --bd:    #7A1010;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--noir);
  color: var(--txt);
  overflow-x: hidden;
}

/* grain subtil */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.28; mix-blend-mode: overlay;
}

/* ---- LANG ---- */
body:not(.lang-en) .en { display: none !important; }
body.lang-en .fr { display: none !important; }

/* ============================================================
   NAV
   ============================================================ */
nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 40px;
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #1a1a1a;
}

.nav-brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 16px;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--or); text-decoration: none;
}

.nav-right { display: flex; align-items: center; gap: 28px; }

.nav-links { display: flex; gap: 28px; list-style: none; }

.nav-links a {
  font-family: 'Space Mono', monospace;
  font-size: 10px; color: #bbb; text-decoration: none;
  letter-spacing: 1px; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--or); }

.lang-switch { display: flex; gap: 0; }
.lang-btn {
  padding: 4px 9px;
  font-family: 'Space Mono', monospace; font-size: 9px;
  letter-spacing: 1px; cursor: pointer;
  color: #444; background: transparent;
  border: 1px solid #222; transition: all 0.2s;
}
.lang-btn.active { background: var(--or); color: var(--blanc); border-color: var(--or); }

/* ============================================================
   HERO  — lettres ransom
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 100px 40px 60px;
  background: var(--noir);
  position: relative; overflow: hidden;
}

/* fond animé subtil */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,107,0,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(122,16,16,0.07) 0%, transparent 45%);
}

.hero > * { position: relative; z-index: 1; }

/* ligne de lettres */
.name-row {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 6px;
  margin-bottom: 28px;
}

.letter {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: clamp(42px, 7vw, 80px);
  text-transform: uppercase; line-height: 1;
  padding: 2px 10px;
  cursor: default;
  transition: transform 0.12s;
}
.letter:hover { transform: scale(1.2) rotate(0deg) !important; }

.l-space { width: 20px; display: inline-block; }

/* couleurs ransom */
@keyframes f1  { 0%,100%{transform:rotate(-2deg) translateY(0)}   50%{transform:rotate(-2deg) translateY(-7px)} }
@keyframes f2  { 0%,100%{transform:rotate(1.5deg) translateY(0)}  50%{transform:rotate(1.5deg) translateY(-5px)} }
@keyframes f3  { 0%,100%{transform:rotate(-1deg) translateY(0)}   50%{transform:rotate(-1deg) translateY(-9px)} }
@keyframes f4  { 0%,100%{transform:rotate(2deg) translateY(0)}    50%{transform:rotate(2deg) translateY(-4px)} }
@keyframes f5  { 0%,100%{transform:rotate(-1.5deg) translateY(0)} 50%{transform:rotate(-1.5deg) translateY(-8px)} }
@keyframes f6  { 0%,100%{transform:rotate(1deg) translateY(0)}    50%{transform:rotate(1deg) translateY(-6px)} }
@keyframes f7  { 0%,100%{transform:rotate(-2.5deg) translateY(0)} 50%{transform:rotate(-2.5deg) translateY(-5px)} }
@keyframes f8  { 0%,100%{transform:rotate(1deg) translateY(0)}    50%{transform:rotate(1deg) translateY(-10px)} }
@keyframes f9  { 0%,100%{transform:rotate(-1deg) translateY(0)}   50%{transform:rotate(-1deg) translateY(-6px)} }
@keyframes f10 { 0%,100%{transform:rotate(2deg) translateY(0)}    50%{transform:rotate(2deg) translateY(-7px)} }
@keyframes f11 { 0%,100%{transform:rotate(-1.5deg) translateY(0)} 50%{transform:rotate(-1.5deg) translateY(-5px)} }

.l1  { background:#FF6B00; color:#fff;   animation: f1  2.1s ease-in-out infinite; }
.l2  { background:#fff;    color:#7A1010;animation: f2  2.6s ease-in-out infinite; }
.l3  { background:#7A1010; color:#FF6B00;animation: f3  1.9s ease-in-out infinite; }
.l4  { background:#FF6B00; color:#fff;   animation: f4  2.4s ease-in-out infinite; }
.l5  { background:#3D1A00; color:#F2EAD8;animation: f5  2.2s ease-in-out infinite; }
.l6  { background:#F2EAD8; color:#0A0A0A;animation: f6  2.8s ease-in-out infinite; }
.l7  { background:#7A1010; color:#F2EAD8;animation: f7  2.0s ease-in-out infinite; }
.l8  { background:#FF6B00; color:#fff;   animation: f8  2.5s ease-in-out infinite; }
.l9  { background:#3D1A00; color:#F2EAD8;animation: f9  1.8s ease-in-out infinite; }
.l10 { background:#F2EAD8; color:#0A0A0A;animation: f10 2.3s ease-in-out infinite; }
.l11 { background:#0A0A0A; color:#FF6B00; border:2px solid #FF6B00; animation: f11 2.7s ease-in-out infinite; }

.hero-welcome {
  font-family: 'Barlow', sans-serif; font-size: 15px;
  font-style: italic; color: #555;
  max-width: 500px; line-height: 1.9;
  margin: 0 auto 36px;
}
.hero-welcome span { color: var(--or); }

.btn-row { display: flex; gap: 12px; justify-content: center; }

.btn-primary {
  background: var(--or); color: #fff; border: none;
  padding: 11px 26px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }

.btn-secondary {
  background: transparent; color: #555;
  border: 1px solid #2a2a2a;
  padding: 11px 26px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--or); color: var(--or); }

/* scroll indicator */
.scroll-cue {
  margin-top: 60px;
  font-family: 'Space Mono', monospace; font-size: 9px;
  letter-spacing: 3px; text-transform: uppercase;
  color: #333; display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: f1 2s ease-in-out infinite;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--or), transparent);
}

/* ============================================================
   SECTION COMMUNES
   ============================================================ */
.sec-label {
  font-family: 'Space Mono', monospace; font-size: 9px;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--or); margin-bottom: 6px;
}

.sec-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(36px,5vw,56px); font-weight: 900;
  text-transform: uppercase; color: var(--blanc); line-height: 1;
  margin-bottom: 32px;
}
.sec-title em { color: var(--or); font-style: normal; }

/* ============================================================
   PROFIL
   ============================================================ */
.profil-sec {
  background: var(--gris); padding: 96px 80px 96px;
}

.profil-top {
  display: grid; grid-template-columns: 1fr 320px; gap: 80px;
  align-items: start; max-width: 1200px; margin: 0 auto;
}

.profil-left { display: flex; flex-direction: column; gap: 40px; }

.profil-right {
  display: flex; justify-content: flex-end;
  padding-top: 16px;
}

.photo-placeholder {
  width: 280px; height: 340px;
  background: #1e1e1e; border: 1px solid #333;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
}
.photo-placeholder i { font-size: 52px; color: #555; }
.photo-placeholder span {
  font-family: 'Space Mono', monospace; font-size: 8px;
  color: #444; letter-spacing: 2px; text-transform: uppercase;
}

/* Carrousel photo */
.photo-carousel {
  position: relative; width: 280px; height: 340px;
}
.carousel-inner {
  width: 100%; height: 100%; position: relative; overflow: hidden;
}
.carousel-img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; top: 0; left: 0;
  opacity: 0; transition: opacity 0.6s ease;
}
.carousel-img.active { opacity: 1; }

.carousel-btn {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(10,10,10,0.75); border: 1px solid #333;
  color: var(--or); width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; font-size: 16px;
}
.carousel-btn:hover {
  background: var(--or); color: #fff; border-color: var(--or);
}

.cv-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--or); color: #fff;
  padding: 11px 24px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none;
  transition: opacity 0.2s; width: fit-content;
}
.cv-btn:hover { opacity: 0.8; }

.bio-text {
  font-size: 17px; color: #aaa; line-height: 1.9;
  max-width: 600px;
}

/* Méta profil style liste aérée */
.profil-meta { display: flex; flex-direction: column; gap: 0; }

.profil-meta-item {
  display: flex; gap: 32px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid #1a1a1a;
}
.profil-meta-item:first-child { border-top: 1px solid #1a1a1a; }

.profil-meta-label {
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: 2px; text-transform: uppercase; color: #666;
  min-width: 80px; flex-shrink: 0;
}
.profil-meta-val {
  font-family: 'Barlow', sans-serif; font-size: 16px; color: #bbb; line-height: 1.6;
}

/* anciens styles gardés pour compat */
.block-title {
  font-family: 'Space Mono', monospace; font-size: 9px;
  letter-spacing: 2px; text-transform: uppercase; color: #444; margin-bottom: 10px;
}
.tools-chips, .interest-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-chip {
  padding: 4px 10px; background: #111; color: var(--or);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  border: 1px solid #1f1f1f; transition: border-color 0.2s;
}
.tool-chip:hover { border-color: var(--or); }
.int-chip {
  padding: 4px 10px; background: transparent; color: #555;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 10px; letter-spacing: 1px; text-transform: uppercase; border: 1px solid #222;
}

/* ============================================================
   PROJETS
   ============================================================ */
.proj-sec { background: var(--noir); padding: 96px 0 0; }

.proj-header { padding: 0 40px 20px; }

.proj-type-tabs { display: flex; gap: 0; }
.ptab {
  padding: 10px 28px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 15px; letter-spacing: 2px;
  text-transform: uppercase; cursor: pointer;
  color: #fff; background: transparent;
  border: 1px solid #777; transition: all 0.2s;
}
.ptab.active { background: var(--or); color: #fff; border-color: var(--or); }
.ptab:hover:not(.active) { color: var(--or); border-color: var(--or); }

.filters-zone { padding: 0 40px 24px; }
.filter-group {
  display: flex; gap: 6px; flex-wrap: wrap;
  align-items: center; margin-bottom: 6px;
}
.filter-label {
  font-family: 'Space Mono', monospace; font-size: 11px;
  color: #fff; letter-spacing: 2px; text-transform: uppercase; min-width: 100px;
}
.ftag {
  padding: 4px 10px;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; color: #fff; border: 1px solid #777; font-size: 13px;
  background: transparent; transition: all 0.2s;
}
.ftag:hover, .ftag.active { background: var(--or); color: #fff; border-color: var(--or); }
.ftag.comp:hover, .ftag.comp.active { background: var(--bd); color: #fff; border-color: var(--bd); }

.reset-btn {
  padding: 4px 12px; font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; color: #fff; border: 1px solid #777; background: transparent;
  margin-left: auto; transition: color 0.2s;
}
.reset-btn:hover { color: var(--or); }

/* grille masonry-like */
.proj-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

/* Items de taille variable — effet éditorial */
.pw-item {
  aspect-ratio: 4/3; overflow: hidden;
  position: relative; cursor: pointer; text-decoration: none;
  display: block;
}
/* certains items + grands */
.pw-item:nth-child(3n+1) { aspect-ratio: 3/2; }
.pw-item:nth-child(5n+2) { aspect-ratio: 1/1; }

.pw-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}
.pw-item:hover .pw-bg { transform: scale(1.04); }

.pw-bg i { font-size: 36px; opacity: 0.15; color: var(--or); }
.b1 { background: #111; }
.b2 { background: #1a0a00; }

.pw-overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.88);
  opacity: 0; transition: opacity 0.3s;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end;
  padding: 20px;
}
.pw-item:hover .pw-overlay { opacity: 1; }

.pw-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 18px; text-transform: uppercase;
  color: #fff; line-height: 1.1; margin-bottom: 4px;
}
.pw-meta {
  font-family: 'Space Mono', monospace; font-size: 9px;
  color: #555; letter-spacing: 1px; margin-bottom: 10px;
}
.pw-badge {
  font-family: 'Barlow Condensed', sans-serif; font-size: 10px;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--or); border: 1px solid var(--or);
  padding: 2px 8px; margin-bottom: 10px;
}
.pw-cta {
  font-family: 'Space Mono', monospace; font-size: 9px;
  color: var(--or); letter-spacing: 2px; text-transform: uppercase;
}

.pw-empty {
  grid-column: span 3; padding: 80px 40px;
  text-align: center;
  font-family: 'Space Mono', monospace; font-size: 11px; color: #2a2a2a;
}
.pw-empty i { font-size: 40px; display: block; margin-bottom: 12px; }

/* ============================================================
   COMPÉTENCES
   ============================================================ */
.comp-sec { background: #0d0d0d; padding: 96px 80px 96px; }

.comp-grid-new {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border-top: 1px solid #1a1a1a;
  max-width: 1200px; margin: 0 auto; border: 1px solid #222;
}

.comp-cat {
  padding: 48px 40px; border-right: 1px solid #222;
  border-bottom: 1px solid #222;
  transition: background 0.3s;
}
.comp-cat:last-child { border-right: none; }
.comp-cat:hover { background: #111; }

.comp-cat-num {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
  font-size: 72px; color: #222; line-height: 1;
  margin-bottom: 8px; letter-spacing: -3px;
  transition: color 0.3s;
}
.comp-cat:hover .comp-cat-num { color: #2a2a2a; }

.comp-cat-name {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 20px; text-transform: uppercase; color: var(--blanc);
  margin-bottom: 28px; letter-spacing: 1px; line-height: 1.2;
}

.comp-list {
  list-style: none; display: flex; flex-direction: column; gap: 12px;
}
.comp-list li {
  font-family: 'Barlow', sans-serif; font-size: 16px; color: #999;
  padding-left: 14px; position: relative; line-height: 1.4;
  transition: color 0.2s;
}
.comp-list li::before {
  content: '—'; position: absolute; left: 0;
  color: var(--or); font-size: 12px;
}
.comp-cat:hover .comp-list li { color: #999; }

/* anciens styles gardés pour compat */
.comp-big-grid { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  padding: 3px 9px; background: #111; color: #555;
  font-family: 'Space Mono', monospace; font-size: 8px;
  letter-spacing: 1px; text-transform: uppercase; border: 1px solid #1f1f1f;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-sec { background: var(--noir); padding: 96px 40px 80px; }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

.contact-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: clamp(40px,6vw,72px);
  text-transform: uppercase; color: var(--blanc); line-height: 1;
  margin-bottom: 16px;
}
.contact-title span { color: var(--or); }

.contact-tagline {
  font-family: 'Space Mono', monospace; font-size: 10px;
  color: #aaa; letter-spacing: 1px; margin-bottom: 32px;
}

.social-col { display: flex; flex-direction: column; gap: 12px; }

.s-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Space Mono', monospace; font-size: 10px;
  color: #ddd; text-decoration: none; letter-spacing: 1px;
  transition: color 0.2s;
}
.s-link:hover { color: var(--or); }
.s-link i { font-size: 14px; }

.eval-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Space Mono', monospace; font-size: 12px;
  color: #aaa; text-decoration: none; letter-spacing: 1px;
  margin-top: 20px; transition: color 0.2s;
}
.eval-link:hover { color: #555; }

/* form contact */
.fg { margin-bottom: 14px; }
.fg label {
  font-family: 'Space Mono', monospace; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase; color: #bbb;
  display: block; margin-bottom: 6px;
}
.fg input, .fg textarea {
  width: 100%; padding: 10px 12px;
  background: #111; border: 1px solid #333;
  color: #fff; font-family: 'Barlow', sans-serif; font-size: 13px;
  transition: border-color 0.2s; outline: none;
}
.fg input:focus, .fg textarea:focus { border-color: var(--or); }
.fg textarea { resize: vertical; min-height: 100px; }

.send-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--or); color: #fff; border: none;
  padding: 11px 24px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; cursor: pointer; transition: opacity 0.2s;
}
.send-btn:hover { opacity: 0.85; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #050505; padding: 24px 40px;
  border-top: 1px solid #111;
  display: flex; justify-content: space-between; align-items: center;
}
.f-txt {
  font-family: 'Space Mono', monospace; font-size: 9px;
  color: #666; letter-spacing: 1px;
}

/* ============================================================
   PROJET.PHP
   ============================================================ */
.projet-hero {
  height: 70vh; min-height: 400px;
  position: relative; overflow: hidden;
  background: #111;
}
.projet-hero-img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; opacity: 0.65;
  transition: opacity 0.5s;
}
.projet-hero:hover .projet-hero-img { opacity: 0.8; }

.projet-hero-no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #222; font-size: 60px;
}

.projet-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 50%);
  display: flex; align-items: flex-end; padding: 40px;
}

.projet-hero-info { max-width: 800px; }

.projet-hero-num {
  font-family: 'Space Mono', monospace; font-size: 9px;
  color: var(--or); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 8px;
}
.projet-hero-titre {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: clamp(28px,5vw,56px);
  text-transform: uppercase; color: #fff; line-height: 1;
  margin-bottom: 12px;
}

.projet-meta-row {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.meta-badge {
  font-family: 'Barlow Condensed', sans-serif; font-size: 11px;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; background: rgba(255,255,255,0.08);
  color: #aaa; border: 1px solid rgba(255,255,255,0.1);
}
.meta-badge.orange { background: var(--or); color: #fff; border-color: var(--or); }

/* nav retour projet */
.projet-topnav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 40px;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid #1a1a1a;
}
.projet-back {
  font-family: 'Space Mono', monospace; font-size: 10px;
  color: #555; text-decoration: none; letter-spacing: 1px;
  transition: color 0.2s;
}
.projet-back:hover { color: var(--or); }
.projet-espace-link {
  font-family: 'Space Mono', monospace; font-size: 10px;
  color: var(--or); text-decoration: none; letter-spacing: 1px;
}

/* contenu projet */
.projet-content { max-width: 780px; margin: 0 auto; padding: 64px 40px; }

.projet-section-label {
  font-family: 'Space Mono', monospace; font-size: 9px;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--or); margin-bottom: 12px; margin-top: 48px;
}
.projet-section-label:first-child { margin-top: 0; }

.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tech-tag {
  padding: 3px 10px; background: #111; color: #555;
  font-family: 'Space Mono', monospace; font-size: 8px;
  letter-spacing: 1px; text-transform: uppercase; border: 1px solid #1f1f1f;
}

.projet-desc {
  font-size: 15px; color: #888; line-height: 1.85;
  padding-left: 16px; border-left: 2px solid var(--or);
}

/* galerie */
.galerie-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
  gap: 4px;
}
.galerie-img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  cursor: pointer; transition: opacity 0.2s; display: block;
}
.galerie-img:hover { opacity: 0.75; }

/* vidéo */
.video-wrap {
  position: relative; padding-bottom: 56.25%;
  height: 0; overflow: hidden;
}
.video-wrap iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: 0;
}

/* AC accordéon */
.ac-list { display: flex; flex-direction: column; gap: 2px; }

.ac-item {
  border: 1px solid #1a1a1a; overflow: hidden;
  transition: border-color 0.2s;
}
.ac-item.open { border-color: var(--or); }

.ac-header {
  padding: 14px 18px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  background: #0d0d0d; transition: background 0.2s;
}
.ac-header:hover { background: #111; }
.ac-item.open .ac-header { background: #111; }

.ac-nom {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 13px; text-transform: uppercase; color: var(--or); letter-spacing: 1px;
}
.ac-chevron {
  font-size: 14px; color: #444; transition: transform 0.25s;
}
.ac-item.open .ac-chevron { transform: rotate(180deg); color: var(--or); }

.ac-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
}
.ac-body.open {
  max-height: 400px; padding: 16px 18px 18px;
}
.ac-body p {
  font-size: 13px; color: #666; line-height: 1.8;
}

/* commentaires */
.comment-block { margin-top: 8px; }

.comment-form input, .comment-form textarea {
  width: 100%; padding: 10px 12px;
  background: #0d0d0d; border: 1px solid #1a1a1a; color: #ccc;
  font-family: 'Barlow', sans-serif; font-size: 13px;
  margin-bottom: 8px; outline: none; transition: border-color 0.2s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--or); }
.comment-form textarea { min-height: 80px; resize: vertical; }

.comment-submit {
  background: var(--or); color: #fff; border: none;
  padding: 9px 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; cursor: pointer; transition: opacity 0.2s;
}
.comment-submit:hover { opacity: 0.85; }

.comment-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }

.comment-item {
  background: #0d0d0d; padding: 14px 16px; border-left: 2px solid #1a1a1a;
  transition: border-color 0.2s;
}
.comment-item:hover { border-left-color: var(--or); }

.comment-author {
  font-family: 'Space Mono', monospace; font-size: 9px;
  color: var(--or); letter-spacing: 1px; margin-bottom: 6px;
}
.comment-text { font-size: 13px; color: #666; line-height: 1.75; }
.comment-date {
  font-family: 'Space Mono', monospace; font-size: 8px; color: #333; margin-top: 8px;
}

.no-comment {
  font-family: 'Space Mono', monospace; font-size: 10px; color: #2a2a2a;
  letter-spacing: 1px;
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.95);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  font-size: 28px; color: #555; cursor: pointer; line-height: 1;
  transition: color 0.2s; background: none; border: none;
}
.lightbox-close:hover { color: #fff; }

/* ============================================================
   LOGIN / REGISTER
   ============================================================ */
.auth-wrap {
  min-height: 100vh; background: var(--noir);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
}
.auth-box {
  width: 100%; max-width: 400px;
  border: 1px solid #1a1a1a; padding: 40px; background: #0d0d0d;
}
.auth-logo {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--or); text-decoration: none; display: block; margin-bottom: 32px;
}
.auth-title {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
  font-size: 36px; text-transform: uppercase; color: #fff;
  line-height: 1; margin-bottom: 6px;
}
.auth-sub {
  font-family: 'Space Mono', monospace; font-size: 9px;
  color: #333; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 28px;
}
.auth-field { margin-bottom: 14px; }
.auth-field label {
  font-family: 'Space Mono', monospace; font-size: 8px;
  letter-spacing: 2px; text-transform: uppercase; color: #333;
  display: block; margin-bottom: 6px;
}
.auth-field input {
  width: 100%; padding: 10px 12px;
  border: 1px solid #1a1a1a; background: #111;
  font-size: 13px; color: #ccc; font-family: 'Barlow', sans-serif;
  outline: none; transition: border-color 0.2s;
}
.auth-field input:focus { border-color: var(--or); }
.auth-btn {
  width: 100%; background: var(--or); color: #fff; border: none;
  padding: 12px 24px;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
  font-size: 14px; letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; margin-top: 6px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity 0.2s;
}
.auth-btn:hover { opacity: 0.85; }
.auth-error {
  background: rgba(122,16,16,0.25); border: 1px solid var(--bd);
  color: #ffaaaa; font-family: 'Space Mono', monospace; font-size: 10px;
  padding: 10px 12px; margin-bottom: 16px;
}
.auth-success {
  background: rgba(16,100,16,0.2); border: 1px solid #1a7a1a;
  color: #aaffaa; font-family: 'Space Mono', monospace; font-size: 10px;
  padding: 10px 12px; margin-bottom: 16px;
}
.auth-link {
  text-align: center; margin-top: 20px;
  font-family: 'Space Mono', monospace; font-size: 9px; color: #333;
}
.auth-link a { color: var(--or); text-decoration: none; }
.auth-link a:hover { text-decoration: underline; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-note {
  font-family: 'Space Mono', monospace; font-size: 8px; color: #2a2a2a;
  margin-top: 16px; line-height: 1.7; border-top: 1px solid #111; padding-top: 14px;
}

/* ============================================================
   ESPACE ÉVALUATEUR
   ============================================================ */
.eval-wrap { min-height: 100vh; background: var(--noir); padding: 100px 40px 60px; }
.eval-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 48px; border-bottom: 1px solid #1a1a1a; padding-bottom: 20px;
}
.eval-title {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
  font-size: 28px; text-transform: uppercase; color: var(--or);
}
.eval-subtitle {
  font-family: 'Space Mono', monospace; font-size: 9px;
  color: #333; letter-spacing: 1px; margin-top: 4px;
}
.eval-logout {
  font-family: 'Space Mono', monospace; font-size: 9px;
  color: #444; text-decoration: none; letter-spacing: 1px;
  border: 1px solid #1a1a1a; padding: 6px 12px; transition: all 0.2s;
}
.eval-logout:hover { color: var(--or); border-color: var(--or); }

.eval-traces { display: flex; flex-direction: column; gap: 3px; }
.eval-trace-item {
  display: flex; align-items: center; gap: 20px;
  background: #0d0d0d; padding: 16px 20px;
  text-decoration: none; transition: background 0.2s; border-left: 2px solid transparent;
}
.eval-trace-item:hover { background: #111; border-left-color: var(--or); }
.eval-trace-thumb {
  width: 60px; height: 40px; object-fit: cover; flex-shrink: 0; opacity: 0.7;
}
.eval-trace-thumb-placeholder {
  width: 60px; height: 40px; background: #111; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.eval-trace-thumb-placeholder i { color: #2a2a2a; font-size: 18px; }
.eval-trace-title {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 15px; text-transform: uppercase; color: #ccc; flex: 1;
}
.eval-trace-meta {
  font-family: 'Space Mono', monospace; font-size: 8px; color: #333; letter-spacing: 1px;
}
.eval-trace-arrow { color: #2a2a2a; font-size: 14px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .hero { padding: 80px 20px 40px; }
  .profil-top { grid-template-columns: 1fr; gap: 40px; }
  .profil-right { justify-content: flex-start; }
  .photo-placeholder { width: 100%; height: 220px; }
  .profil-sec { padding: 80px 20px 60px; }
  .comp-grid-new { grid-template-columns: 1fr 1fr; }
  .comp-cat { border-right: none; border-bottom: 1px solid #1a1a1a; }
  .comp-sec { padding: 80px 20px 60px; }
  .proj-wall { grid-template-columns: repeat(2,1fr); }
  .pw-empty { grid-column: span 2; }
  .comp-big-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-sec, .comp-sec, .proj-sec { padding: 80px 20px 60px; }
  .projet-content { padding: 40px 20px; }
  .projet-topnav { padding: 14px 20px; }
  .eval-wrap { padding: 80px 20px 40px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-grid .ic-wh { grid-column: span 1; }
}

@media (max-width: 600px) {
  .proj-wall { grid-template-columns: 1fr; }
  .pw-empty { grid-column: span 1; }
  .letter { font-size: 36px; padding: 2px 7px; }
  .projet-hero { height: 50vh; }
}
