/* =========================================================
   PORTFOLIO — Concept Art & Web Design
   ========================================================= */

:root {
  --bg: #071423;
  --bg-2: #0a1b2f;
  --surface: #0f2238;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f6f4f1;
  --muted: #8fa0b5;
  --accent: #fb4f0c;      /* ambre / coucher de soleil */
  --accent-2: #ff8a4c;    /* turquoise */
  --folder: #fb5a1a;
  --folder-dark: #c23c06;
  --paper: #ffffff;

  --font-display: "Syne", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 5vw, 80px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: var(--bg); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(251, 79, 12, .6); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .3);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .08); box-shadow: none; }
.btn--small { padding: .6rem 1.15rem; font-size: .85rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(255, 138, 76, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 138, 76, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 138, 76, 0); } }

/* =========================================================
   MENU
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.3rem var(--gutter);
  transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 20, 35, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-block: .85rem;
  border-color: var(--line);
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -.02em;
}
.nav__logo img { height: 40px; width: auto; transition: height .4s; }
.nav.scrolled .nav__logo img { height: 34px; }
.footer .nav__logo img { height: 52px; }

.nav__links { display: flex; gap: 2.2rem; }
.nav__links a {
  position: relative;
  font-size: .92rem;
  color: var(--muted);
  transition: color .3s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); transform-origin: left; }

.nav__burger { display: none; width: 40px; height: 40px; position: relative; }
.nav__burger span {
  position: absolute; left: 8px; right: 8px; height: 2px;
  background: var(--text);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.nav__burger span:first-child { top: 15px; }
.nav__burger span:last-child { top: 23px; }
.nav__burger.open span:first-child { top: 19px; transform: rotate(45deg); }
.nav__burger.open span:last-child { top: 19px; transform: rotate(-45deg); }

/* =========================================================
   ACCUEIL — scène concept art
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8rem var(--gutter) 6rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__scene { position: absolute; inset: 0; z-index: -1; }
.layer { position: absolute; inset: -4%; width: 108%; height: 108%; will-change: transform; transition: transform .6s var(--ease); }

.layer--sky {
  background:
    radial-gradient(ellipse 50% 35% at 74% 62%, rgba(251, 79, 12, .55), transparent 70%),
    radial-gradient(ellipse 90% 40% at 50% 72%, rgba(251, 79, 12, .35), transparent 70%),
    linear-gradient(180deg, #040c17 0%, #0a233d 34%, #173a5e 54%, #8f3a2a 66%, #fb6a2a 75%, #fb6a2a 100%);
}
.layer--stars {
  background-image:
    radial-gradient(1px 1px at 10% 12%, #fff, transparent),
    radial-gradient(1px 1px at 22% 30%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 35% 8%, #fff, transparent),
    radial-gradient(1px 1px at 48% 22%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 62% 14%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 78% 6%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 88% 26%, #fff, transparent),
    radial-gradient(1px 1px at 5% 38%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 55% 35%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 93% 40%, rgba(255,255,255,.5), transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .5; } to { opacity: 1; } }


.layer--fog {
  top: auto; bottom: 22%; height: 22%;
  background: linear-gradient(180deg, transparent, rgba(251, 100, 40, .22) 50%, transparent);
  filter: blur(20px);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { from { translate: -3% 0; } to { translate: 3% 0; } }

.layer--grain {
  inset: 0; width: 100%; height: 100%;
  opacity: .14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__scene::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 20, 35, .85) 0%, rgba(7, 20, 35, .35) 55%, transparent 80%),
    linear-gradient(0deg, var(--bg) 0%, transparent 12%);
}

/* Overlay "web design" */
.hero__ui { position: absolute; inset: 90px var(--gutter) 40px; pointer-events: none; z-index: 0; }
.corner { position: absolute; width: 18px; height: 18px; border-color: rgba(255, 255, 255, .45); border-style: solid; border-width: 0; }
.corner--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.corner--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.corner--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.corner--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.hero__coords {
  position: absolute;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .05em;
}
.hero__coords { bottom: -2px; right: 28px; }

/* Panneaux d'interface flottants (façon Figma) */
.ui-panel {
  position: absolute;
  right: 0;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: rgba(255, 255, 255, .7);
  background: rgba(7, 20, 35, .55);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  animation: panelIn .9s var(--ease) forwards;
}
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ui-panel--swatches { bottom: 30px; display: flex; align-items: center; gap: .45rem; padding: .55rem .7rem; animation-delay: 1.4s; }
.ui-panel--swatches span { width: 16px; height: 16px; border-radius: 50%; background: var(--s); border: 1px solid rgba(255, 255, 255, .3); }
.ui-panel--swatches code { margin-left: .3rem; color: #fff; }
@media (max-width: 1100px) { .ui-panel { display: none; } }

.hero__content { position: relative; max-width: 920px; z-index: 1; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.2vw, 6rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 1.4rem 0 1.6rem;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line { animation: rise 1.1s var(--ease) both; }
.hero__title .line:nth-child(2) { animation-delay: .12s; }
.hero__title .line:nth-child(3) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(60%); } to { opacity: 1; transform: none; } }
.hero__title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), #ffa36e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  max-width: 520px;
  color: #c3cedb;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  margin-bottom: 2.4rem;
  animation: rise 1.1s .35s var(--ease) both;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; animation: rise 1.1s .45s var(--ease) both; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 2rem;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll i { width: 1px; height: 44px; background: linear-gradient(var(--text), transparent); animation: scrollLine 2s ease-in-out infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: clamp(5rem, 12vw, 9rem) var(--gutter); }
.section__head {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: .5rem 1.5rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1;
}
.section__intro { color: var(--muted); max-width: 520px; }

/* Apparition au scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   COMPÉTENCES
   ========================================================= */
.skills { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }

.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin-bottom: 4rem;
}
.tool {
  position: relative;
  padding: 1.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s;
}
.tool::before {
  content: "";
  position: absolute;
  top: -40%; right: -40%;
  width: 80%; aspect-ratio: 1;
  background: radial-gradient(circle, var(--c), transparent 65%);
  opacity: .12;
  transition: opacity .5s, transform .5s var(--ease);
}
.tool:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.tool:hover::before { opacity: .3; transform: scale(1.2); }
.tool__badge {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  margin-bottom: 1.4rem;
}
.tool h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: .4rem; }
.tool p { color: var(--muted); font-size: .9rem; }
.tool__bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.tool__bar span {
  display: block; height: 100%; width: 0;
  background: var(--c);
  border-radius: inherit;
  transition: width 1.4s .2s var(--ease);
}
.tool.visible .tool__bar span { width: var(--w); }

/* Domaines (onglets) */
.domains {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.4);
  padding: clamp(1rem, 3vw, 2rem);
}
.domains__tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  scrollbar-width: none;
  padding-bottom: .4rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.domains__tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  font-size: .9rem;
  color: var(--muted);
  transition: background .3s, color .3s;
  margin-bottom: .6rem;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--text); color: var(--bg); font-weight: 600; }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.panel { display: none; grid-template-columns: 1fr 1.3fr; gap: 2rem; padding: 1rem .5rem; }
.panel.active { display: grid; animation: fadePanel .6s var(--ease); }
@keyframes fadePanel { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.panel__icon {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff8a4c);
  color: #0a233d;
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.panel__icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.panel__intro h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.1; margin-bottom: .8rem; }
.panel__intro p { color: var(--muted); }
.panel__list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 1.02rem;
  transition: padding .3s var(--ease), color .3s;
}
.panel__list li::before {
  content: "";
  width: 8px; height: 8px;
  border: 1.5px solid var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.panel__list li:hover { padding-left: .6rem; color: var(--accent); }

/* =========================================================
   PROJETS — dossiers
   ========================================================= */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 3rem; }
.filter {
  padding: .6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .88rem;
  color: var(--muted);
  transition: all .3s var(--ease);
}
.filter:hover { color: var(--text); border-color: rgba(255, 255, 255, .35); }
.filter.active { background: var(--accent); border-color: var(--accent); color: #0a233d; font-weight: 600; }

.folders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 3.5rem 2rem;
}

.folder { display: block; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.folder.hide { display: none; }
.folder.appear { animation: folderIn .6s var(--ease) both; }
@keyframes folderIn { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }

.folder__body {
  position: relative;
  aspect-ratio: 4 / 3.1;
  perspective: 1400px;
  margin-top: 2.2rem;
}

/* Fond du dossier + onglet */
.folder__back {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--folder-dark), #8f2c04);
  border-radius: 6px 14px 14px 14px;
  box-shadow: 0 30px 50px -25px rgba(0, 0, 0, .8);
}
.folder__back::before {
  content: "";
  position: absolute;
  left: 0; bottom: 100%;
  width: 42%; height: 26px;
  background: var(--folder-dark);
  border-radius: 12px 12px 0 0;
  clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%);
}

/* Feuilles / image à l'intérieur */
.folder__paper {
  position: absolute;
  left: 6%; right: 6%;
  top: 6%; bottom: 8%;
  background: var(--paper);
  border-radius: 6px;
  padding: 7px;
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .5);
  transition: transform .7s var(--ease);
  transform-origin: bottom center;
}
.folder__paper--2 { background: #e3e8ee; left: 9%; right: 9%; top: 3%; }
.folder__img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

/* Rabat avant */
.folder__front {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 78%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.1rem 1.3rem;
  background: linear-gradient(170deg, #ff8a4c 0%, var(--folder) 45%, #e0440a 100%);
  border-radius: 10px 10px 14px 14px;
  transform-origin: bottom center;
  transform-style: preserve-3d;
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 -2px 10px rgba(0, 0, 0, .15);
  z-index: 2;
}
.folder__front::after { /* reflet */
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, .25), transparent 40%);
  pointer-events: none;
}
.folder__label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #0a233d;
  background: rgba(255, 255, 255, .35);
  padding: .3rem .65rem;
  border-radius: 6px;
}
.folder__open {
  font-size: .82rem;
  font-weight: 600;
  color: #0a233d;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .4s, transform .4s var(--ease);
}

/* --- Animation d'ouverture au survol --- */
.folder:hover .folder__front,
.folder:focus-visible .folder__front {
  transform: rotateX(-42deg) translateY(2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 30px 40px -10px rgba(0, 0, 0, .55);
}
.folder:hover .folder__paper,
.folder:focus-visible .folder__paper { transform: translateY(-26%) rotate(-2.5deg); }
.folder:hover .folder__paper--2,
.folder:focus-visible .folder__paper--2 { transform: translateY(-14%) rotate(4deg); }
.folder:hover .folder__open,
.folder:focus-visible .folder__open { opacity: 1; transform: none; }
.folder:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 8px; border-radius: 14px; }

.folder__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1.2rem;
}
.folder__meta h3 { font-family: var(--font-display); font-size: 1.15rem; transition: color .3s; }
.folder__meta span { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); white-space: nowrap; }
.folder:hover .folder__meta h3 { color: var(--accent); }

/* Visuels d'attente (à remplacer par vos images) */
.art-1 { background:
  radial-gradient(circle at 70% 30%, #ffffff 0 12%, transparent 13%),
  linear-gradient(160deg, #0a233d, #1d4a78 55%, #fb4f0c); }
.art-2 { background:
  radial-gradient(circle at 75% 35%, #fff1e8 0 9%, transparent 10%),
  linear-gradient(0deg, #05101d 0 22%, transparent 22%),
  linear-gradient(175deg, #0a233d, #c2441a 55%, #ff8a4c); }
.art-3 { background:
  linear-gradient(#0a233d 0 0) 10% 15% / 80% 8% no-repeat,
  linear-gradient(#ff8a4c 0 0) 10% 40% / 45% 6% no-repeat,
  linear-gradient(rgba(10,35,61,.35) 0 0) 10% 55% / 60% 4% no-repeat,
  linear-gradient(#0a233d 0 0) 10% 80% / 25% 10% no-repeat,
  linear-gradient(140deg, #ffffff, #ffd9c4); }
.art-4 { background:
  radial-gradient(circle at 50% 50%, #071423 0 18%, transparent 19%),
  radial-gradient(circle at 50% 50%, #f6f4f1 0 28%, transparent 29%),
  linear-gradient(135deg, #fb4f0c, #a8340a); }
.art-5 { background:
  linear-gradient(#fb4f0c 0 0) 12% 70% / 30% 10% no-repeat,
  linear-gradient(#f6f4f1 0 0) 12% 30% / 70% 10% no-repeat,
  linear-gradient(rgba(255,255,255,.4) 0 0) 12% 48% / 50% 5% no-repeat,
  linear-gradient(160deg, #071423, #173a5e); }
.art-6 { background:
  radial-gradient(ellipse at 50% 120%, #ff8a4c, transparent 60%),
  linear-gradient(0deg, transparent 0 40%, rgba(5,16,29,.85) 40% 42%, transparent 42%),
  linear-gradient(180deg, #05101d, #0a233d 60%, #c2441a); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) var(--gutter) 2rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(251, 79, 12, .12), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer__cta { text-align: center; margin-bottom: clamp(4rem, 8vw, 6rem); }
.footer__cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 1rem 0 2.2rem;
}
.footer__cta em { font-style: normal; color: var(--accent); }
.footer__cta .btn { padding: 1.1rem 3.2rem; font-size: 1.05rem; }

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}
.footer__tag { color: var(--muted); margin-top: .5rem; font-size: .9rem; }
.footer h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer ul li { margin-bottom: .55rem; }
.footer ul a { transition: color .3s, padding .3s var(--ease); }
.footer ul a:hover { color: var(--accent); padding-left: 4px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--muted);
}
.footer__top:hover { color: var(--text); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .nav__cta { display: none; }
  .nav__burger { display: block; z-index: 2; }
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: rgba(7, 20, 35, .97);
    backdrop-filter: blur(10px);
    clip-path: circle(0% at calc(100% - 40px) 40px);
    transition: clip-path .7s var(--ease);
  }
  .nav__links.open { clip-path: circle(150% at calc(100% - 40px) 40px); }
  .nav__links a { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--text); }

  .panel { grid-template-columns: 1fr; gap: 1rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .domains__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
  .domains__tabs .tab { margin-bottom: 0; padding: .65rem .6rem; font-size: .82rem; line-height: 1.3; text-align: center; border: 1px solid var(--line); border-radius: 12px; }
  .domains__tabs .tab:last-child { grid-column: 1 / -1; }
  .domains__tabs { padding-bottom: 1rem; }
  .section__head { grid-template-columns: 1fr; }
  .hero__ui { display: none; }
  .hero__scene::after {
    background: linear-gradient(0deg, var(--bg) 5%, rgba(7, 20, 35, .55) 60%, rgba(7, 20, 35, .3));
  }
}

/* Sur écran tactile : dossiers légèrement entrouverts */
@media (hover: none) {
  .folder .folder__front { transform: rotateX(-18deg); }
  .folder .folder__paper { transform: translateY(-12%) rotate(-1.5deg); }
  .folder .folder__open { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* Couverture du dossier "Logos" */
.cover-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  background: #eef1f5;
}
.cover-logos img {
  width: 100%; height: 100%;
  min-height: 0;
  object-fit: contain;
  padding: 8% 10%;
  background: #fff;
  border-radius: 3px;
}

/* Couverture du dossier "Instagram" */
.cover-posts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
  background: #fff;
}
.cover-posts img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: top; }

/* Badge qui apparaît à l'ouverture d'un dossier (ex. logo Instagram) */
.folder__badge {
  position: absolute;
  top: -14px;
  /* plusieurs badges : --i décale chaque badge vers la gauche */
  right: calc(-10px + var(--i, 0) * 62px);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, .6);
  opacity: 0;
  transform: translateY(14px) scale(.4) rotate(-18deg);
  transition: opacity .45s var(--ease), transform .6s cubic-bezier(.34, 1.56, .64, 1);
  transition-delay: 0s;
  pointer-events: none;
}
.folder__badge svg { width: 60%; height: 60%; fill: none; stroke: #fff; stroke-width: 2; }
.folder__badge .dot { fill: #fff; stroke: none; }
.folder__badge--ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
/* Logos d'outils en couleurs d'origine */
.folder__badge--logo svg { stroke: none; }
.folder__badge--figma { background: #1e1e1e; }
.folder__badge--figma svg { width: 42%; height: 62%; }
.folder__badge--vscode { background: #0078d4; }
.folder__badge--vscode svg { fill: #fff; }
.folder__badge--ai { background: #330000; box-shadow: inset 0 0 0 2.5px #ff9a00, 0 14px 30px -8px rgba(0, 0, 0, .6); }
.folder__badge--ai svg { width: 82%; height: 82%; }
.folder__badge--ps { background: #001e36; box-shadow: inset 0 0 0 2.5px #31a8ff, 0 14px 30px -8px rgba(0, 0, 0, .6); }
.folder__badge--ps svg { width: 82%; height: 82%; }
.folder__badge--mail { background: linear-gradient(135deg, #ff8a4c, var(--accent)); }
.folder__badge--mail svg { stroke-linejoin: round; stroke-linecap: round; }
.folder__badge--filezilla { background: #bf0000; overflow: hidden; }
.folder__badge--filezilla img { width: 100%; height: 100%; object-fit: cover; }
.folder:hover .folder__badge,
.folder:focus-visible .folder__badge {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(var(--r, 8deg));
  transition-delay: calc(.15s + var(--i, 0) * .1s);
}
@media (hover: none) {
  .folder .folder__badge { opacity: 1; transform: rotate(var(--r, 8deg)) scale(.85); }
}

/* =========================================================
   AMBIANCE DE L'ACCUEIL : halo qui respire, braises
   ========================================================= */
@keyframes sun-breathe {
  0%, 100% { opacity: .85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero__embers { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero__embers i {
  position: absolute;
  bottom: -12px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #ffb48c;
  box-shadow: 0 0 10px 3px rgba(251, 79, 12, .55);
  opacity: 0;
  animation: ember-rise 10s linear infinite;
}
.hero__embers i:nth-child(1)  { left: 52%; animation-delay: 0s; }
.hero__embers i:nth-child(2)  { left: 57%; animation-delay: 1.4s; animation-duration: 12s; }
.hero__embers i:nth-child(3)  { left: 61%; animation-delay: 3s; width: 3px; height: 3px; }
.hero__embers i:nth-child(4)  { left: 66%; animation-delay: .7s; animation-duration: 11s; }
.hero__embers i:nth-child(5)  { left: 70%; animation-delay: 2.2s; }
.hero__embers i:nth-child(6)  { left: 74%; animation-delay: 4.6s; animation-duration: 13s; width: 5px; height: 5px; }
.hero__embers i:nth-child(7)  { left: 78%; animation-delay: 5.8s; width: 3px; height: 3px; }
.hero__embers i:nth-child(8)  { left: 82%; animation-delay: 1.9s; animation-duration: 9s; }
.hero__embers i:nth-child(9)  { left: 86%; animation-delay: 7s; }
.hero__embers i:nth-child(10) { left: 90%; animation-delay: 3.7s; animation-duration: 12s; width: 3px; height: 3px; }
.hero__embers i:nth-child(11) { left: 94%; animation-delay: 6.3s; }
.hero__embers i:nth-child(12) { left: 45%; animation-delay: 8.4s; animation-duration: 14s; width: 3px; height: 3px; }
.hero__embers i:nth-child(13) { left: 35%; animation-delay: 5s; animation-duration: 15s; width: 2px; height: 2px; }
.hero__embers i:nth-child(14) { left: 25%; animation-delay: 9.5s; animation-duration: 16s; width: 2px; height: 2px; }
@keyframes ember-rise {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: .95; }
  60% { transform: translate(-30px, -60vh); }
  100% { transform: translate(15px, -100vh); opacity: 0; }
}


@media (prefers-reduced-motion: reduce) {
  .hero__embers { display: none; }
}





/* =========================================================
   ILLUSTRATION DE L'ACCUEIL (style du logo)
   ========================================================= */
.hero .layer--sky {
  background:
    radial-gradient(ellipse 40% 50% at 72% 45%, rgba(251, 79, 12, .2), transparent 70%),
    linear-gradient(180deg, #071423 0%, #0a1b2f 100%);
}
.lg-glow, .lg-window, .lg-swoosh, .lg-brush, .lg-cursor, .lg-click, .lg-pixels rect { transform-box: fill-box; }

.lg-glow { transform-origin: center; animation: lg-breathe 5s ease-in-out infinite; }
@keyframes lg-breathe { 0%, 100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

.lg-window { animation: lg-float 7s ease-in-out infinite; }
@keyframes lg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.lg-swoosh { transform-origin: 70% 30%; animation: lg-swing 8s ease-in-out infinite; }
@keyframes lg-swing { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-3deg); } }

/* le pinceau va et vient pendant que le trait se peint */
.lg-brush { transform-origin: 0% 100%; animation: lg-brush 5s ease-in-out infinite; }
@keyframes lg-brush { 0%, 100% { transform: rotate(0deg) translate(0, 0); } 45% { transform: rotate(-4deg) translate(-14px, 6px); } }
.lg-paint { stroke-dasharray: 230; stroke-dashoffset: 230; animation: lg-paint 5s ease-in-out infinite; }
@keyframes lg-paint {
  0% { stroke-dashoffset: 230; opacity: 1; }
  45% { stroke-dashoffset: 0; opacity: 1; }
  80% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* le curseur clique */
.lg-cursor { animation: lg-cursor 4s ease-in-out infinite; }
@keyframes lg-cursor { 0%, 100% { transform: translate(1290px, 516px); } 50% { transform: translate(1276px, 504px); } 55% { transform: translate(1276px, 504px) scale(.92); } 60% { transform: translate(1276px, 504px); } }
.lg-click { transform-origin: center; opacity: 0; animation: lg-click 4s ease-out infinite; }
@keyframes lg-click { 0%, 54% { opacity: 0; transform: scale(.3); } 56% { opacity: 1; transform: scale(.5); } 80% { opacity: 0; transform: scale(2); } 100% { opacity: 0; } }

/* les pixels clignotent et flottent */
.lg-pixels rect { transform-origin: center; animation: lg-pixel 3s ease-in-out infinite; }
.lg-pixels rect:nth-child(2) { animation-delay: -1s; }
.lg-pixels rect:nth-child(3) { animation-delay: -2s; }
.lg-pixels rect:nth-child(4) { animation-delay: -.5s; }
.lg-pixels rect:nth-child(5) { animation-delay: -1.5s; }
.lg-pixels rect:nth-child(6) { animation-delay: -2.5s; }
@keyframes lg-pixel { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-8px); opacity: .5; } }

/* Illustration centrée à droite, fixe (pas de parallaxe ni d'interaction) */
.hero__art {
  position: absolute;
  top: 50%;
  right: calc(var(--gutter) + 7vw);
  width: min(40vw, 620px);
  aspect-ratio: 730 / 620;
  transform: translateY(-48%);
  pointer-events: none;
}
.hero__art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
@media (max-width: 900px) {
  .hero__art { width: 88vw; right: 50%; top: auto; bottom: 3rem; transform: translateX(50%); opacity: .28; }
}

/* Vraies icônes des logiciels dans les cartes compétences, avec un contour blanc */
.tool__badge--icon {
  border: 2px solid #fff;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .6);
}
.tool__badge--icon svg { width: 62%; height: 62%; }
.tool__badge--figma { background: #1e1e1e; }
.tool__badge--figma svg { width: 40%; }
.tool__badge--ps { background: #001e36; }
.tool__badge--ps svg, .tool__badge--ai svg { width: 82%; height: 82%; }
.tool__badge--ai { background: #330000; }
.tool__badge--claude { background: #d97757; }
.tool__badge--gpt { background: #10a37f; }
.tool__pair { display: flex; gap: .6rem; margin-bottom: 1.4rem; }
.tool__pair .tool__badge { margin-bottom: 0; }
