/* =========================================
   BASE STYLES
   ========================================= */
:root {
  --bg: #0b0e14;
  --panel: #121723;
  --line: #232b3d;
  --text: #e9eef8;
  --mut: #93a0b8;
  --acc: #6aa7ff;
  --acc2: #a98bff;
  --r: 18px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 14, 20, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -.01em;
}

nav { display: flex; gap: 4px; overflow-x: auto; }

nav a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--mut);
  text-decoration: none;
  font-size: 0.94rem;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

nav a:hover {
  color: var(--text);
  background: var(--panel);
}

h1 {
  font-size: clamp(2.6rem, 7vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 22px 0 18px;
  font-weight: 800;
  background: linear-gradient(120deg, #fff 30%, var(--acc) 70%, var(--acc2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 0 0 32px;
}

h3 {
  margin: 0 0 16px;
  font-size: 1.4rem;
  letter-spacing: -.01em;
  color: var(--text);
}

.lead {
  color: var(--mut);
  max-width: 60ch;
  margin: 0 0 30px;
  font-size: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  font: inherit;
  color: var(--text);
  transition: transform 0.15s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--acc);
}

ul.pts {
  margin: 14px 0 24px;
  padding-left: 18px;
  color: #c6cfe0;
}

ul.pts li {
  margin-bottom: 8px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  font-size: 0.84rem;
  padding: 4px 11px;
  border-radius: 8px;
  background: #0e1320;
  border: 1px solid var(--line);
  color: #c6cfe0;
}

.state {
  display: inline-block;
  font-size: 0.82rem;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.state.ok { background: rgba(74, 222, 128, 0.14); color: #86efac; }
.state.plan { background: rgba(147, 160, 184, 0.15); color: #c6cfe0; }

footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--mut);
  font-size: 0.9rem;
  text-align: center;
}

.in { animation: in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.24s; }

@keyframes in {
  from { opacity: 0; transform: translateY(18px); }
}

/* =========================================
   SPÉCIFIQUE PORTFOLIO & ROM
   ========================================= */

.portfolio-hero {
  padding: 88px 0 40px;
}

/* Section Présentation ROM */
.rom-section {
  background: var(--panel);
  padding: 40px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  margin-bottom: 56px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.rom-section h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--acc);
}

.rom-section p {
  color: #c6cfe0;
  margin-bottom: 16px;
}

/* Grille des projets */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  padding: 20px 0 60px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

/* Carte mise en avant (pour R2.01) */
.project-card.featured {
  grid-column: 1 / -1; /* Prend toute la largeur de la grille */
}

.project-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-content p {
  color: #c6cfe0;
  font-size: 0.95rem;
  margin: 12px 0;
  line-height: 1.6;
}

/* =========================================
   MÉMO COMMANDES CISCO
   ========================================= */

.cisco-memo {
  padding: 60px 0 80px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 30%, var(--bg));
}

.cisco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.code-block {
  background: #05070a; /* Très sombre pour simuler un terminal */
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.code-block b {
  display: inline-block;
  color: #86efac;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(134, 239, 172, 0.2);
  padding-bottom: 6px;
}

.code-block p {
  font-family: "Courier New", Courier, monospace;
  color: #a98bff; /* Violet technique */
  font-size: 0.88rem;
  line-height: 1.8;
  margin: 0;
}

/* Responsive */
@media (max-width: 820px) {
  .portfolio-hero { padding: 56px 0 32px; }
  .rom-section { padding: 24px; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 24px; }
  .project-content { padding: 24px; }
}

/* Années */
.year-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }
.year-head h2 { margin: 0; }
.year-head .state { margin: 0; }
.year-note { color: var(--mut); margin: 0 0 28px; max-width: 62ch; }
.soon { border: 1px dashed var(--line); border-radius: var(--r); padding: 32px; color: var(--mut); }
.soon p { margin: 0; }
#annee2 { padding: 60px 0 80px; border-top: 1px solid var(--line); }
#annee1 { padding-top: 20px; }