/* ========================================================
   Ecurie Drapeau Jaune — shared stylesheet
   Brand: red #E8112D (Pantone 185C) / yellow #FFCD00 (Pantone 116C)
   Font: Poppins
   Mobile-first
   ======================================================== */

:root {
  --red: #E8112D;
  --yellow: #FFCD00;
  --ink: #2b2b2b;
  --grey: #5c5c5c;
  --pale: #f7f7f5;
  --white: #ffffff;
  --max: 960px;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hero (replicates the credentials-deck cover) ---------- */

.hero {
  position: relative;
  color: var(--white);
}

.hero-top {
  position: relative;
  z-index: 3;
  background: var(--yellow);
  color: var(--ink);
}

.bar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

@media (min-width: 640px) { .bar-row { padding-top: 20px; padding-bottom: 20px; } }

.hero-top .bar-row { flex-wrap: nowrap; gap: 10px 12px; }

.hero-title {
  font-weight: 800;
  font-size: clamp(.95rem, 4.6vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-title {
  font-weight: 800;
  font-size: clamp(1.9rem, 8vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.hero-crest {
  font-size: clamp(.95rem, 4.6vw, 2.9rem); /* matches .hero-title so height:1em lines up, descender included */
  height: 1em;
  width: auto;
  flex: none;
  margin-left: 12px;
}

/* the video zone — fixed to the viewport width via aspect-ratio, so the
   full width is always visible on mobile (never cropped side-to-side) */
.hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.hero-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.hero-bottombar {
  background: var(--ink);
  color: var(--white);
  position: relative;
  z-index: 3;
}

.hero-bottombar .contact-list { gap: 6px 22px; }
.hero-bottombar .copyright { font-size: .78rem; color: rgba(255,255,255,.65); order: 3; width: 100%; }

@media (min-width: 640px) {
  .hero-bottombar .copyright { order: 0; width: auto; }
}

.btn-sm { padding: 9px 20px; font-size: .85rem; }

/* ---------- Sections ---------- */

section { padding: 64px 0; }

.section-alt { background: var(--pale); }

h2 {
  font-weight: 800;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  margin: 0 0 12px;
  color: var(--ink);
}

h2 .accent { color: var(--red); }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

p { color: var(--grey); margin: 0 0 16px; }

.lead { font-size: 1.15rem; color: var(--ink); }

/* ---------- Video card ---------- */

.video-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #111 center / cover no-repeat;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.video-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-btn {
  position: relative;
  z-index: 2;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: transform .15s ease;
}

.video-card:hover .play-btn { transform: scale(1.06); }

.play-btn svg { margin-left: 4px; }

.video-note {
  margin-top: 10px;
  font-size: .82rem;
  color: var(--grey);
}

/* ---------- Buttons / links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: .95rem;
  transition: background .15s ease;
}

.btn:hover { background: #c60e25; }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.btn-outline:hover { background: var(--ink); color: var(--white); }

/* ---------- Badges (specialisms) ---------- */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.badge {
  border: 1.5px solid #e2e2e0;
  background: var(--white);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Photo + text layout ---------- */

.split {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 780px) {
  .split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .split.reverse > *:first-child { order: 2; }
}

.split img {
  border-radius: 14px;
  width: 100%;
  height: auto;
}

/* ---------- Photo grid (circuits) ---------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}

@media (min-width: 640px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}

.photo-grid img {
  border-radius: 10px;
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* ---------- Tag lists (media / recognition) ---------- */

.taglist {
  margin-top: 14px;
  font-weight: 700;
  color: var(--ink);
  font-size: .95rem;
}

.taglist span { color: var(--grey); font-weight: 400; }

/* ---------- Tiered relationships list ---------- */

.tier-list { margin-top: 20px; }

.tier {
  border-top: 1px solid #e6e6e3;
  padding: 16px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

@media (min-width: 640px) {
  .tier { grid-template-columns: 180px 1fr; align-items: baseline; gap: 20px; }
}

.tier:last-child { border-bottom: 1px solid #e6e6e3; }

.tier-label {
  font-weight: 800;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--ink);
}

.tier-value { color: var(--grey); }

/* ---------- Contact ---------- */

.contact-block {
  background: var(--ink);
  color: var(--white);
  border-radius: 14px;
  padding: 16px 22px;
}

@media (min-width: 640px) { .contact-block { padding: 18px 28px; } }

.contact-block h2 { color: var(--white); }
.contact-block .eyebrow { color: var(--yellow); }

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

.contact-list a {
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.contact-list a:hover { color: var(--yellow); }

/* ---------- Footer ---------- */

footer {
  padding: 28px 0;
  text-align: center;
  font-size: .8rem;
  color: var(--grey);
}

footer a { color: var(--red); text-decoration: none; font-weight: 600; }

/* ---------- Simple page header (About / Intro pages) ---------- */

.page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

@media (min-width: 640px) { .page-top { padding: 28px 48px; } }

.page-top img { width: 40px; }

.back-link {
  text-decoration: none;
  font-weight: 600;
  font-size: .88rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back-link:hover { color: var(--red); }
