/* =========================================================
   Portfolio Yann Chabeaudy — thème sombre, simple
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,800&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #121215;
  --card: #1b1c21;
  --text: #f1ede6;
  --muted: #9a9ca9;
  --line: #2a2b32;
  --accent: #ff6b3d;   /* vermillon */
  --blue: #7b93ff;     /* cobalt */
  --display: 'Bricolage Grotesque', 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; }

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

/* ---------- En-tête ---------- */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(18, 18, 21, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { font-family: var(--display); font-weight: 600; text-decoration: none; color: var(--muted); }
.brand span { color: var(--text); }
nav { display: flex; gap: 24px; }
nav a { text-decoration: none; font-size: .92em; color: var(--muted); transition: color .2s; }
nav a:hover { color: var(--accent); }

.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 40px; height: 40px; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--text); margin: 4px 0; }

/* ---------- Sections ---------- */
main { padding-bottom: 40px; }
section { padding: 56px 0; border-bottom: 1px solid var(--line); }
section:last-child { border-bottom: none; }
section h2 { font-size: 1.9em; margin-bottom: 16px; }
section h2::before { content: '/ '; color: var(--accent); }
.lead { color: var(--muted); font-size: 1.05em; margin-bottom: 24px; }
.text p { color: var(--muted); margin-bottom: 12px; max-width: 720px; }

.hero { padding: 96px 0 72px; }
.hero h1 { font-size: clamp(2.4em, 7vw, 4em); font-weight: 800; letter-spacing: -1.5px; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--accent); }

.btn {
  display: inline-block; margin-top: 12px;
  padding: 12px 22px; border-radius: 10px;
  background: var(--accent); color: #111114; font-weight: 600; text-decoration: none;
  transition: transform .2s ease;
}
.btn:hover { transform: translateY(-2px); }

/* ---------- Cartes ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
a.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card h3 { font-size: 1.15em; }
.card p { color: var(--muted); font-size: .95em; }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: .9em; color: var(--accent); }
.card.soon { border-style: dashed; color: var(--muted); }
.card.soon h3 { color: var(--muted); }

/* ---------- Contact ---------- */
.contact { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 720px; }
.contact a {
  display: block; padding: 16px 18px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line);
  text-decoration: none; font-weight: 500; overflow-wrap: anywhere;
  transition: border-color .2s;
}
.contact a:hover { border-color: var(--blue); }
.contact span { display: block; font-size: .78em; color: var(--muted); font-weight: 400; }

/* ---------- Pages de détail ---------- */
.detail { padding: 64px 0 24px; max-width: 760px; }
.detail .kicker { font-size: .85em; color: var(--accent); margin-bottom: 10px; }
.detail h1 { font-size: clamp(1.9em, 5vw, 2.8em); letter-spacing: -1px; margin-bottom: 20px; }
.detail h2 { font-size: 1.4em; margin: 40px 0 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.detail h3 { font-size: 1em; color: var(--blue); margin: 16px 0 6px; }
.detail p { color: var(--muted); margin-bottom: 14px; }
.detail ul { padding-left: 20px; color: var(--muted); }
.detail li { margin-bottom: 4px; }
.detail li::marker { color: var(--accent); }
.tools, .two { display: grid; gap: 16px 32px; }
.tools { grid-template-columns: repeat(3, 1fr); }
.two { grid-template-columns: 1fr 1fr; }
.source a { color: var(--blue); }
.back { display: inline-block; margin-top: 24px; color: var(--accent); text-decoration: none; font-weight: 600; }
.back:hover { text-decoration: underline; }

/* ---------- Recherche de stage ---------- */
.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 36px; padding: 28px 32px; border-radius: 16px;
  background: var(--accent); color: #111114;
  box-shadow: 0 12px 40px rgba(255, 107, 61, .25);
}
.banner-text { flex: 1; min-width: 260px; }
.banner-title {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--display); font-weight: 800; font-size: 1.6em; line-height: 1.2;
  margin-bottom: 14px;
}
.banner-info { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 14px; }
.banner-info li {
  font-size: 1.1em; font-weight: 600;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(17, 17, 20, .12);
}
.pulse { position: relative; width: 12px; height: 12px; border-radius: 50%; background: #111114; flex-shrink: 0; }
.pulse::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: #111114;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { to { transform: scale(2.6); opacity: 0; } }
.banner-btn {
  display: inline-block; padding: 14px 24px; border-radius: 12px;
  background: #111114; color: #fff; font-weight: 700; font-size: 1.05em; text-decoration: none;
  transition: transform .2s ease;
}
.banner-btn:hover { transform: translateY(-2px); }
sup { line-height: 0; font-size: .7em; }

.card.highlight { border-color: var(--accent); }
.badge {
  align-self: flex-start; font-size: .75em; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  background: var(--accent); color: #111114;
}
.facts { list-style: none; display: grid; gap: 6px; }
.facts li, .company li { font-size: .95em; }
.facts span, .company span { display: block; font-size: .78em; color: var(--muted); }
.card .more { text-decoration: none; }

/* Fiche entreprise (page stage) */
.detail .company {
  list-style: none; padding: 0; margin: 16px 0 8px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.detail .company li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--text); }
.detail .company li::marker { content: ''; }
.detail .company a { color: var(--blue); }
.detail strong { color: var(--text); }

/* ---------- Pied de page ---------- */
footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .88em; text-align: center; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .burger { display: block; }
  nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 24px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  nav.open { display: flex; }
  nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hero { padding: 64px 0 48px; }
  .tools, .two, .contact { grid-template-columns: 1fr; }
  .banner { padding: 22px 20px; }
  .banner-title { font-size: 1.3em; }
  .banner-btn { width: 100%; text-align: center; }
  .banner-info li { border-radius: 12px; font-size: 1em; }
  .detail .company { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) { .pulse::after { animation: none; } }
