/* ═══════════════════════════════════════════════════
   SCIENCES DE L'INGENIEUR — PARC DES LOGES
   Editorial Engineering Aesthetic
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ink: #1a1a2e;
  --paper: #f8f6f1;
  --cream: #eee9df;
  --accent: #c44b2b;
  --accent-light: #e8735a;
  --teal: #2b7a78;
  --teal-light: #3aafa9;
  --gold: #d4a853;
  --slate: #555b6e;
  --light-slate: #89909e;
  --border: #d5cfc3;
  --card-bg: #ffffff;
  --shadow-sm: 0 1px 3px rgba(26,26,46,0.06);
  --shadow-md: 0 4px 16px rgba(26,26,46,0.08);
  --shadow-lg: 0 12px 40px rgba(26,26,46,0.12);
  --radius: 12px;
  --radius-sm: 6px;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── GRAIN OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ─── SELECTION ─── */
::selection {
  background: var(--accent);
  color: white;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate); }

/* ═══ NAVIGATION ═══ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248,246,241,0.85);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.nav-logo {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  transform: rotate(-3deg);
}

.nav-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.nav-title span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--slate);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ═══ HERO ═══ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(196,75,43,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(43,122,120,0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(212,168,83,0.04) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,26,46,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,26,46,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 2rem;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--slate);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.8s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-stat {
  text-align: left;
}

.hero-stat .number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.8rem;
  color: var(--light-slate);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 12px rgba(196,75,43,0.3);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(196,75,43,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

/* ═══ SECTIONS ═══ */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 3rem;
}

/* ═══ CHALLENGE CARDS ═══ */
.challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.challenge-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  display: block;
  position: relative;
}

.challenge-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-accent {
  height: 4px;
  width: 100%;
}

.card-accent.red { background: linear-gradient(90deg, var(--accent), var(--accent-light)); }
.card-accent.teal { background: linear-gradient(90deg, var(--teal), var(--teal-light)); }
.card-accent.gold { background: linear-gradient(90deg, var(--gold), #e8c46c); }
.card-accent.blue { background: linear-gradient(90deg, #3d5a80, #5b8fb9); }
.card-accent.purple { background: linear-gradient(90deg, #7b2d8e, #a855c7); }

.card-body {
  padding: 1.8rem;
}

.card-number {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--cream);
  position: absolute;
  top: 16px;
  right: 20px;
  font-style: italic;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 1.2rem;
}

.card-icon.red { background: rgba(196,75,43,0.1); color: var(--accent); }
.card-icon.teal { background: rgba(43,122,120,0.1); color: var(--teal); }
.card-icon.gold { background: rgba(212,168,83,0.1); color: var(--gold); }
.card-icon.blue { background: rgba(61,90,128,0.1); color: #3d5a80; }
.card-icon.purple { background: rgba(123,45,142,0.1); color: #7b2d8e; }

.card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--light-slate);
  margin-bottom: 1rem;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.2rem;
}

.tag {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--cream);
  color: var(--slate);
  letter-spacing: 0.02em;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.2rem;
  border-top: 1px solid var(--cream);
}

.card-meta {
  font-size: 0.78rem;
  color: var(--light-slate);
}

.card-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream);
  display: grid;
  place-items: center;
  transition: all 0.3s;
  font-size: 14px;
  color: var(--slate);
}

.challenge-card:hover .card-arrow {
  background: var(--accent);
  color: white;
  transform: translateX(4px);
}

/* ═══ COMPETENCES SECTION ═══ */
.competences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.comp-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}

.comp-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.comp-icon {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.comp-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.comp-detail {
  font-size: 0.78rem;
  color: var(--light-slate);
  line-height: 1.5;
}

/* ═══ TIMELINE ═══ */
.timeline {
  position: relative;
  padding-left: 3rem;
  margin-top: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(213,207,195,0.5);
}

.timeline-item:last-child { border-bottom: none; margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2.35rem;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-phase {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.7;
}

/* ═══ CHALLENGE DETAIL PAGE ═══ */
.challenge-hero {
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.challenge-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-size: 50px 50px;
  background-image:
    linear-gradient(var(--ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink) 1px, transparent 1px);
}

.challenge-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--slate);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent); }

.challenge-number-big {
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 1;
  color: var(--cream);
  font-style: italic;
  position: absolute;
  right: 0;
  top: -1rem;
}

.challenge-detail-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.challenge-meta-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--slate);
}

.meta-item svg { color: var(--accent); }

/* ─── CONTENT AREA ─── */
.content-area {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.content-block {
  margin-bottom: 4rem;
}

.content-block h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--cream);
}

.content-block h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 2rem 0 0.8rem;
  color: var(--accent);
}

.content-block p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--slate);
}

.content-block ul, .content-block ol {
  margin: 0.8rem 0 1.2rem 1.5rem;
  color: var(--slate);
}

.content-block li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.content-block li strong {
  color: var(--ink);
}

/* ─── INFO BOXES ─── */
.info-box {
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  border-left: 4px solid;
}

.info-box.context {
  background: rgba(43,122,120,0.06);
  border-color: var(--teal);
}

.info-box.problem {
  background: rgba(196,75,43,0.06);
  border-color: var(--accent);
}

.info-box.tip {
  background: rgba(212,168,83,0.06);
  border-color: var(--gold);
}

.info-box-title {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.info-box.context .info-box-title { color: var(--teal); }
.info-box.problem .info-box-title { color: var(--accent); }
.info-box.tip .info-box-title { color: var(--gold); }

.info-box p {
  font-size: 0.9rem;
  margin: 0;
}

/* ─── SEANCE CARDS ─── */
.seance-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.seance-card:hover {
  box-shadow: var(--shadow-md);
}

.seance-header {
  padding: 1.5rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
}

.seance-num {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  flex-shrink: 0;
}

.seance-info {
  flex: 1;
}

.seance-info h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.seance-info .seance-sub {
  font-size: 0.8rem;
  color: var(--light-slate);
  margin-top: 2px;
}

.seance-toggle {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--slate);
  transition: all 0.3s;
  font-size: 12px;
}

.seance-card.open .seance-toggle {
  transform: rotate(180deg);
  background: var(--accent);
  color: white;
}

.seance-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.seance-card.open .seance-content {
  max-height: 2000px;
}

.seance-inner {
  padding: 0 1.8rem 1.8rem;
  border-top: 1px solid var(--cream);
  padding-top: 1.5rem;
}

.activity {
  margin-bottom: 1.5rem;
}

.activity-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-title .time {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--light-slate);
  background: var(--cream);
  padding: 2px 8px;
  border-radius: 100px;
}

.activity ul {
  margin-left: 1.2rem;
  color: var(--slate);
  font-size: 0.88rem;
}

.activity li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.livrable {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.livrable strong {
  color: var(--accent);
}

/* ─── TABLE ─── */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

thead {
  background: var(--ink);
  color: white;
}

th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--cream);
}

tbody tr:hover {
  background: rgba(196,75,43,0.03);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ─── CODE BLOCKS ─── */
.code-block {
  background: var(--ink);
  color: #e0e0e0;
  border-radius: var(--radius);
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  overflow-x: auto;
  margin: 1rem 0;
}

.code-block .comment { color: #6a6a8a; }
.code-block .keyword { color: var(--accent-light); }
.code-block .string { color: var(--teal-light); }
.code-block .number { color: var(--gold); }

/* ═══ FOOTER ═══ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 4rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: white;
}

.footer-text {
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    gap: 1rem;
    box-shadow: var(--shadow-md);
  }

  .hero-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .challenges-grid {
    grid-template-columns: 1fr;
  }

  .competences-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .challenge-number-big {
    font-size: 4rem;
  }

  .challenge-meta-row {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .competences-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn { width: 100%; justify-content: center; }
}

/* ═══ ANIMATIONS ON SCROLL ═══ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
