/* =========================================================
   Axel Azevedo — Portfolio 2026
   Couleurs et typos reprises du fichier Figma « portfolio-web »
   ========================================================= */
:root {
  --noir: #0a0a0a;
  --noir-2: #121212;
  --carte: #171717;
  --filet: #3b3b3b;
  --creme: #e8e5de;
  --gris: #8c8c87;
  --papier: #d6d5ce;
  --papier-2: #b5b4ad;
  --filet-clair: #999991;
  --orange: #f0532b;
  --archivo: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(20px, 3.2vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--noir); color: var(--creme); font-family: var(--archivo); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.accent { color: var(--orange); }
.muted { color: var(--gris); }
.mono, .legend, .bar, .mainnav a, .fiche dt {
  font-family: var(--mono); font-size: 10px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase;
}
.label-link, .btn-back span, .back-index span, .dossier__btn, .index__open {
  font-family: var(--mono); font-weight: 700; font-size: 12px; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase;
}
.arrow { flex: none; }

/* Barre fine type « dossier » */
.bar { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--filet); }
.bar--light { color: var(--noir-2); border-color: var(--noir-2); }

/* Fond quadrillé (zones claires) */
.grid-bg {
  background-color: var(--papier);
  background-image:
    linear-gradient(to right, rgba(18,18,18,.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18,18,18,.18) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Pilule dégradée */
.pill { width: min(640px, 100%); height: 26px; border-radius: 0 180px 180px 0; background: linear-gradient(to right, var(--orange), #000); }

/* ================= ACCUEIL : COUVERTURE ================= */
.cover { position: relative; min-height: min(100vh, 995px); padding: 24px clamp(20px, 4.5vw, 68px) 0; overflow: hidden; }
.cover__top { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 26px; border-bottom: 1px solid var(--filet); }
.mainnav { display: flex; gap: 32px; padding-top: 7px; }
.mainnav a:hover { color: var(--orange); }
.cover__arch {
  position: absolute; z-index: 1; left: 50%; transform: translateX(-50%); top: 120px; bottom: 0;
  width: clamp(180px, 23.8vw, 360px); border-radius: 180px 180px 0 0;
  background: linear-gradient(to bottom, var(--orange), #000);
}
.cover__name {
  position: relative; z-index: 2; margin-top: clamp(80px, 10vw, 148px);
  font-weight: 800; text-transform: uppercase; font-size: clamp(64px, 12.6vw, 190px); line-height: .9; letter-spacing: -.03em;
}
.cover__name span { display: block; }
.cover__name span:first-child { padding-left: 1.9%; }
.cover__name span:last-child { padding-left: 22.5%; }
.cover__intro { position: relative; z-index: 2; margin: clamp(80px, 14vw, 220px) 0 0 1.9%; font-family: var(--mono); font-size: clamp(13px, 1.06vw, 16px); line-height: 1.6; }
.cover__scroll { position: relative; z-index: 2; display: block; width: 44px; margin: 40px auto 34px; transition: transform .2s; }
.cover__scroll:hover { transform: translateY(4px); }

/* ================= ACCUEIL : INDEX ================= */
.index { background: var(--papier); color: var(--noir-2); border-top: 1px solid var(--noir-2); border-bottom: 1px solid var(--noir-2); }
.index__body { display: flex; min-height: 702px; }
.index__hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 60px 20px; text-align: center; }
.index__kicker { font-family: var(--mono); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.index__title { font-weight: 800; text-transform: uppercase; font-size: clamp(48px, 6.35vw, 96px); line-height: .88; letter-spacing: -.05em; }
.index__hint { font-family: var(--mono); font-size: clamp(13px, 1.32vw, 20px); letter-spacing: .08em; text-transform: uppercase; }
.index__fiche { width: 520px; flex: none; border-left: 1px solid var(--noir-2); display: flex; flex-direction: column; }
.index__status { padding: 12px 16px 14px; border-bottom: 1px solid var(--noir-2); color: var(--orange); font-weight: 700; font-size: 20px; text-transform: uppercase; }
.index__count { padding: 12px 16px 14px; border-bottom: 1px solid var(--noir-2); font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -.02em; }
.index__list { flex: 1; }
.index__list a { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--filet-clair); transition: background .15s, color .15s; }
.index__list a:hover { background: var(--noir-2); color: var(--creme); }
.index__name { flex: 1; font-weight: 500; font-size: 14px; }
.index__actions { display: flex; border-top: 1px solid var(--noir-2); }
.index__open { flex: 1; text-align: center; padding: 18px; background: var(--papier-2); transition: background .15s; }
.index__open:hover { background: var(--orange); }
.index__top { display: flex; align-items: center; padding: 0 20px; border-left: 1px solid var(--noir-2); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

/* ================= ACCUEIL : DOSSIERS ================= */
.projects { display: flex; flex-direction: column; gap: 48px; padding: 55px var(--pad) 120px; }
.projects__title, .index__title { margin: 0; }
.projects__title { font-weight: 800; text-transform: uppercase; font-size: clamp(48px, 6.35vw, 96px); line-height: .88; letter-spacing: -.05em; }
.dossier { display: block; background: var(--noir); border: 1px solid var(--filet); transition: border-color .2s; }
.dossier:hover { border-color: var(--orange); }
.dossier__body { display: flex; }
.dossier--right .dossier__body { flex-direction: row-reverse; }
.dossier__visual { flex: 0 0 58.8%; background: var(--carte); }
.dossier__visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.dossier:hover .dossier__visual img { transform: scale(1.02); }
.dossier__visual { overflow: hidden; }
.dossier__fiche { flex: 1; display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 2.7vw, 40px); border-left: 1px solid var(--filet); }
.dossier--right .dossier__fiche { border-left: 0; border-right: 1px solid var(--filet); }
.dossier__num { color: var(--orange); font-weight: 800; font-size: clamp(56px, 6.35vw, 96px); line-height: .88; letter-spacing: -.05em; margin-bottom: 14px; }
.dossier__name { font-weight: 700; font-size: clamp(30px, 2.9vw, 44px); line-height: 1.05; letter-spacing: -.02em; }
.dossier__sub { display: block; font-weight: 300; font-size: 20px; letter-spacing: -.02em; }
.dossier__desc { flex: 1; color: var(--gris); font-weight: 300; font-size: 16px; line-height: 1.5; }
.dossier__btn { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 20px; background: var(--papier); color: var(--noir-2); transition: background .15s; }
.dossier:hover .dossier__btn { background: var(--orange); }

/* ================= ACCUEIL : CONTACT ================= */
.contact { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 160px 20px; text-align: center; }
.contact h2 { font-family: var(--mono); font-weight: 700; font-size: clamp(28px, 2.65vw, 40px); line-height: 1.15; text-transform: uppercase; }
.contact__thanks { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; margin-bottom: 16px; }
.contact__links { display: flex; flex-direction: column; align-items: center; gap: 35px; padding: 20px 40px; color: var(--orange); text-transform: uppercase; }
.contact__mail, .contact__tel { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .06em; }
.contact__mail { text-decoration: underline; }
.contact__social { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.contact__links a:hover { color: var(--creme); }

/* ================= BANDEAU DÉFILANT ================= */
.marquee { overflow: hidden; border-top: 1px solid var(--filet); padding: 16px 0; }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: defile 40s linear infinite; }
.marquee__track span { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ================= PAGE PROJET ================= */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px clamp(16px, 2.1vw, 32px); border-bottom: 1px solid var(--filet); }
.btn-back { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border: 1px solid var(--filet); color: var(--orange); transition: border-color .15s; }
.btn-back:hover { border-color: var(--orange); }
.ptitle { display: flex; flex-direction: column; gap: 28px; padding: clamp(48px, 6.35vw, 96px) var(--pad) 64px; }
.ptitle__meta { display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); text-transform: uppercase; line-height: 1.4; }
.ptitle__meta .accent { font-weight: 700; font-size: 12px; letter-spacing: .06em; }
.ptitle__meta .muted { font-size: 10px; letter-spacing: .08em; }
.ptitle h1 { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 40px; font-weight: 800; text-transform: uppercase; }
.ptitle__num { color: var(--orange); font-size: clamp(80px, 10.6vw, 160px); line-height: .9; letter-spacing: -.03em; }
.ptitle__name { font-size: clamp(56px, 7.9vw, 120px); line-height: .88; letter-spacing: -.05em; }
.ptitle .pill { width: min(613px, 100%); }
.ptitle__summary { max-width: 760px; color: var(--gris); font-weight: 300; font-size: clamp(17px, 1.32vw, 20px); line-height: 1.5; }

.fiche { display: flex; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.fiche__item { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 18px 24px 22px; border-right: 1px solid var(--filet); }
.fiche__item:last-child { border-right: 0; }
.fiche dt { color: var(--gris); }
.fiche dd { font-weight: 500; font-size: 16px; line-height: 1.4; }

.pmain { display: flex; flex-direction: column; gap: 20px; padding: var(--pad); }

/* Blocs visuels (images exportées depuis Figma) */
.row { display: flex; gap: clamp(12px, 1.1vw, 16px); align-items: flex-start; }
.row--single { width: calc(var(--rw) / 1420 * 100%); max-width: 100%; }
.row--center { margin-inline: auto; }
.cell { flex: var(--rw) 1 0; min-width: 0; }
.visuel { position: relative; width: 100%; aspect-ratio: var(--w) / var(--h); background: var(--carte); overflow: hidden; }
.visuel img { width: 100%; height: 100%; object-fit: cover; }
.visuel--video video { width: 100%; height: 100%; object-fit: contain; background: var(--carte); }

.note { color: var(--noir-2); border-top: 1px solid var(--noir-2); border-bottom: 1px solid var(--noir-2); }
.note__row { display: flex; gap: 48px; padding: var(--pad); border-bottom: 1px solid var(--noir-2); }
.note__row:last-child { border-bottom: 0; }
.note__row h3 { flex: 0 0 420px; font-weight: 700; font-size: clamp(24px, 2.1vw, 32px); line-height: 1.05; letter-spacing: -.02em; }
.note__row p { flex: 1; font-weight: 300; font-size: clamp(16px, 1.19vw, 18px); line-height: 1.5; }

.gallery { display: flex; flex-direction: column; gap: 16px; padding: 48px var(--pad) 96px; }
.gallery h2 { padding-bottom: 16px; color: var(--creme); }

.pnav { display: flex; border-top: 1px solid var(--filet); }
.pnav__item { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 40px var(--pad) 44px; }
.pnav__prev { align-items: flex-start; border-right: 1px solid var(--filet); }
.pnav__next { align-items: flex-end; text-align: right; }
.pnav__item .label-link { display: flex; align-items: center; gap: 12px; }
.pnav__name { font-weight: 700; font-size: clamp(26px, 2.9vw, 44px); line-height: 1.05; letter-spacing: -.02em; transition: color .15s; }
a.pnav__item:hover .pnav__name { color: var(--orange); }
.back-index { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 22px; background: var(--papier); color: var(--noir-2); transition: background .15s; }
.back-index:hover { background: var(--orange); }

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
  .index__fiche { width: 42%; }
  .note__row h3 { flex-basis: 30%; }
}
@media (max-width: 860px) {
  .index__body, .dossier__body, .dossier--right .dossier__body { flex-direction: column; }
  .index__fiche { width: 100%; border-left: 0; border-top: 1px solid var(--noir-2); }
  .index__hero { min-height: 420px; }
  .dossier__fiche, .dossier--right .dossier__fiche { border: 0; border-top: 1px solid var(--filet); }
  .dossier__visual { flex-basis: auto; aspect-ratio: 824 / 540; }
  .fiche { flex-wrap: wrap; }
  .fiche__item { flex: 1 1 50%; border-bottom: 1px solid var(--filet); }
  .note__row { flex-direction: column; gap: 16px; }
  .note__row h3 { flex-basis: auto; }
  .row { flex-direction: column; }
  .row--single { width: 100%; }
  .cell { width: 100%; }
  .pnav { flex-direction: column; }
  .pnav__prev { border-right: 0; border-bottom: 1px solid var(--filet); }
}
@media (max-width: 560px) {
  .mainnav { gap: 16px; }
  .cover { min-height: auto; }
  .cover__top { flex-direction: column; gap: 12px; }
  .cover__intro { margin-top: 64px; }
  .cover__name span:last-child { padding-left: 0; }
  .btn-back span { display: none; }
  .fiche__item { flex-basis: 100%; }
  .contact { padding: 100px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}
