/* ============================
   FONTS
   ============================ */
@font-face {
  font-family: 'General Sans';
  src: url('https://cdn.breizhzion.com/fonts/general-sans/GeneralSans-Variable.woff2') format('woff2');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('https://cdn.breizhzion.com/fonts/general-sans/GeneralSans-VariableItalic.woff2') format('woff2');
  font-weight: 200 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Fragment Mono';
  src: url('https://cdn.breizhzion.com/fonts/fragment-mono/FragmentMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fragment Mono';
  src: url('https://cdn.breizhzion.com/fonts/fragment-mono/FragmentMono-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ============================
   DESIGN SYSTEM
   ============================ */
:root {
  --bg:         #0c0b0b;
  --bg-2:       #141313;
  --bg-3:       #1e1c1c;
  --red:        #a00000;
  --red-glow:   rgba(160, 0, 0, 0.35);
  --text:       #f0ede8;
  --text-muted: #857f7b; /* lightest: 4.8:1 on --bg-2, WCAG AA */
  --text-dim:   #3e3b38;
  --border:     rgba(240, 237, 232, 0.08);
  --border-red: rgba(200, 0, 26, 0.3);

  --ff-display: 'General Sans', sans-serif;
  --ff-body:    'General Sans', sans-serif;
  --ff-mono:    'Fragment Mono', monospace;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Layout tokens — une seule valeur à changer pour tout aligner */
  --content-max:  1200px;
  --section-pad:  3rem;
}

/* ============================
   RESET
   ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
img   { max-width: 100%; display: block; }
a     { color: inherit; text-decoration: none; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Grain overlay */
body::after {
  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)'/%3E%3C/svg%3E");
  opacity: 0.038;
  pointer-events: none;
  z-index: 9999;
}

/* ============================
   ACCESSIBILITÉ — MOUVEMENT
   ============================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================
   ACCESSIBILITÉ — FOCUS CLAVIER
   ============================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================
   SCROLL REVEAL
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.visible   { opacity: 1; transform: translateY(0); }
.reveal-d1        { transition-delay: 0.1s; }
.reveal-d2        { transition-delay: 0.2s; }
.reveal-d3        { transition-delay: 0.3s; }
.reveal-d4        { transition-delay: 0.4s; }

/* ============================
   LAYOUT — conteneur universel
   ============================ */
section {
  padding: 7rem var(--section-pad);
}

/* .wrap = conteneur centré à largeur fixe, utilisé dans toutes les sections */
.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}

/* Labels / titres / desc communs */
.s-label {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.9rem;
}
.s-label::before { content: '// '; opacity: 0.6; }

.s-title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.s-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 4rem;
  line-height: 1.75;
}

/* ============================
   HEADER
   ============================ */
#header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 1.5rem var(--section-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
#header.scrolled {
  background: rgba(12, 11, 11, 0.97);
  padding: 1rem var(--section-pad);
  border-bottom-color: var(--border);
}

.logo {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  flex-shrink: 0;
}

nav#navbar {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
nav#navbar a {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  transition: color 0.3s ease;
}
nav#navbar a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.3s ease;
}
nav#navbar a:hover,
nav#navbar a.active          { color: var(--text); }
nav#navbar a:hover::after,
nav#navbar a.active::after   { width: 100%; }

.nav-cta {
  border: 1px solid var(--red) !important;
  padding: 0.45rem 1.2rem;
  color: var(--text) !important;
  transition: background 0.3s ease, transform 0.15s ease !important;
}
.nav-cta::after      { display: none !important; }
.nav-cta:hover       { background: var(--red) !important; }
.nav-cta:active      { transform: scale(0.96); }

.nav-donate {
  border: 1px solid #e6a817 !important;
  padding: 0.45rem 1.2rem;
  color: #e6a817 !important;
  transition: background 0.3s ease, color 0.3s ease, transform 0.15s ease !important;
}
.nav-donate::after  { display: none !important; }
.nav-donate:hover   { background: #e6a817 !important; color: #111 !important; }
.nav-donate:active  { transform: scale(0.96); }

.nav-admin {
  border: 1px solid rgba(255,255,255,0.25) !important;
  padding: 0.45rem 1rem;
  color: rgba(255,255,255,0.6) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.08em !important;
  transition: border-color 0.3s, color 0.3s !important;
}
.nav-admin::after  { display: none !important; }
.nav-admin:hover   { border-color: rgba(255,255,255,0.6) !important; color: #fff !important; }

nav#navbar .nav-account,
nav#navbar .nav-account:hover,
nav#navbar .nav-account.active {
  background: var(--red) !important;
  color: #fff !important;
  padding: 0.45rem 1.2rem;
  border-radius: 4px;
  transition: opacity 0.3s ease !important;
  opacity: 1;
}
nav#navbar .nav-account::after { display: none !important; }
nav#navbar .nav-account:hover  { opacity: 0.85 !important; }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: none;
  cursor: pointer;
  font-family: var(--ff-mono);
}
.nav-dropdown-caret {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.25s ease;
}
.nav-dropdown.open .nav-dropdown-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  min-width: 240px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  padding: 0.4rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 20;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.7rem 1.1rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  white-space: nowrap;
  background: none !important;
  border-radius: 0 !important;
}
.nav-dropdown-menu a:hover { color: var(--text) !important; background: var(--bg-3) !important; }
.nav-dropdown-menu a::after { display: none !important; }
.nav-dropdown-menu a.nav-dropdown-admin { color: rgba(255,255,255,0.6) !important; border-top: 1px solid var(--border); }
.nav-dropdown-menu a.nav-dropdown-admin:hover { color: #fff !important; }

/* Mobile burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  z-index: 1001;
}
.burger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ============================
   HERO
   ============================ */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--section-pad);
  position: relative;
  overflow: hidden;
}

/* Même centrage que .wrap — aligne le contenu avec toutes les sections */
.hero-inner {
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content { max-width: 860px; }

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/header-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    var(--bg) 0%, transparent 25%, transparent 75%, var(--bg) 100%);
}

.hero-ghost {
  position: absolute;
  top: 50%; right: -3rem;
  transform: translateY(-50%);
  font-family: var(--ff-display);
  font-size: clamp(5rem, 17vw, 20rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 237, 232, 0.035);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
  user-select: none;
}

.hero-tag {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.3s forwards;
}
.hero-tag::before { content: '// '; opacity: 0.6; }

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
}
.hero-title .line  { display: block; overflow: hidden; }
.hero-title .inner {
  display: block;
  opacity: 0;
  transform: translateY(105%);
  animation: slideUp 0.85s var(--ease) forwards;
}
.hero-title .line:nth-child(1) .inner { animation-delay: 0.5s; }
.hero-title .line:nth-child(2) .inner { animation-delay: 0.65s; color: var(--red); }
.hero-title .line:nth-child(3) .inner { animation-delay: 0.8s; }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 1.05s forwards;
}
.hero-actions {
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 1.25s forwards;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--text);
  padding: 0.95rem 1.9rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--red-glow);
}
.btn-hero:active { transform: translateY(-2px) scale(0.97); }

.btn-arrow {
  position: relative;
  width: 20px; height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}
.btn-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 6px; height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn-hero:hover .btn-arrow { width: 30px; }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: var(--section-pad);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  animation: fadeUp 0.7s ease 1.5s forwards;
}
.scroll-track {
  width: 36px; height: 1px;
  background: var(--text-dim);
  overflow: hidden;
  position: relative;
}
.scroll-track::after {
  content: '';
  position: absolute;
  left: -100%; top: 0;
  width: 100%; height: 100%;
  background: var(--red);
  animation: trackAnim 2s ease 2s infinite;
}

/* ============================
   SERVICES
   ============================ */
#services {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}
.svc-card {
  padding: 2.75rem 2.25rem;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
}
.svc-card:last-child { border-right: none; }
.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.svc-card:hover            { background: var(--bg-3); }
.svc-card:hover::before    { transform: scaleX(1); }

.svc-num {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--red);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}
.svc-icon {
  width: 44px; height: 44px;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}
.svc-icon svg {
  width: 100%; height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svc-title {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
  line-height: 1.3;
}
.svc-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============================
   PORTFOLIO
   ============================ */
#portfolio { background: var(--bg); }

.port-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: transparent;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.port-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 4/3;
}
.port-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.5s ease;
  filter: grayscale(30%) brightness(0.82);
}
.port-item:hover img {
  transform: scale(1.07);
  filter: grayscale(0%) brightness(1);
}
.port-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(to top, rgba(12,11,11,0.96) 0%, transparent 100%);
  transform: translateY(100%);
  transition: transform 0.38s var(--ease);
}
.port-item:hover .port-info { transform: translateY(0); }
.port-info h3 {
  font-family: var(--ff-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.port-info p {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  color: #e05555;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================
   ABOUT / TIMELINE
   ============================ */
#about {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.about-intro {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 5rem;
}

.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 140px;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}
.tl-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  position: relative;
}
.tl-item:last-child { margin-bottom: 0; }

.tl-side {
  text-align: right;
  padding-right: 2.5rem;
  position: relative;
}
.tl-side::after {
  content: '';
  position: absolute;
  right: -5px; top: 28px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--bg-2);
}
.tl-period {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  color: var(--red);
  letter-spacing: 0.1em;
  display: block;
  margin-top: 0.5rem;
}
.tl-img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: auto;
  filter: grayscale(50%);
  border: 2px solid var(--border);
}
.tl-body { padding-left: 0.5rem; }
.tl-heading {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}
.tl-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 600px;
}

/* ============================
   TEAM
   ============================ */
#team {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

/* Grille pleine largeur = même emprise que tous les autres blocs */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--bg-3);
}
.team-card {
  background: var(--bg-2);
  overflow: hidden;
}
.team-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.team-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s ease, transform 0.5s ease;
}
.team-card:hover .team-card-img img {
  filter: grayscale(0%);
  transform: scale(1.04);
}
.team-card-info {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
}
.member-name {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
}
.member-role {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* ============================
   FOOTER
   ============================ */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 4rem var(--section-pad) 2.5rem;
}
.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand-name {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}
.footer-brand p   { font-size: 0.88rem; color: var(--text-muted); }
.footer-brand a   { color: var(--text-muted); transition: color 0.3s; }
.footer-brand a:hover { color: var(--red); }

.footer-nav-title {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-links a { font-size: 0.9rem; color: var(--text-muted); transition: color 0.3s ease; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy,
.footer-assoc {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ============================
   BACK TO TOP
   ============================ */
.btt {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 42px; height: 42px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
}
.btt.visible        { opacity: 1; pointer-events: all; }
.btt:hover          { transform: translateY(-3px); }
.btt svg {
  width: 14px; height: 14px;
  stroke: white; fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================
   KEYFRAMES
   ============================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(105%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes trackAnim {
  0%   { left: -100%; }
  50%  { left: 0%; }
  100% { left: 100%; }
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .port-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-pad: 1.5rem; }

  #header.scrolled { padding: 0.9rem var(--section-pad); }

  nav#navbar {
    position: fixed;
    inset: 0;
    background: #0c0b0b;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 1001;
  }
  nav#navbar.open              { transform: translateX(0); }
  nav#navbar a                 { font-size: 1.3rem; letter-spacing: 0.05em; }
  nav#navbar .nav-cta          { padding: 0.6rem 1.5rem !important; }
  nav#navbar .nav-donate       { padding: 0.6rem 1.5rem !important; }
  nav#navbar .nav-account      { padding: 0.6rem 1.5rem !important; }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    background: transparent;
    border: none;
    text-align: center;
    margin-top: 1rem;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { font-size: 0.95rem; padding: 0.5rem 1rem; }
  .nav-dropdown-menu a.nav-dropdown-admin { border-top: none; }

  .burger { display: flex; }

  .hero-ghost  { display: none; }

  section { padding: 5rem var(--section-pad); }

  .svc-grid   { grid-template-columns: 1fr; }
  .svc-card   { border-right: none; border-bottom: 1px solid var(--border); }

  .port-grid  { grid-template-columns: repeat(2, 1fr); }

  .timeline::before { left: 70px; }
  .tl-item    { grid-template-columns: 70px 1fr; gap: 1.5rem; }
  .tl-side    { padding-right: 1.5rem; }
  .tl-img     { width: 44px; height: 44px; }
  .tl-text    { max-width: 100%; }

  .team-grid  { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  footer      { padding: 3rem var(--section-pad) 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.4rem; text-align: center; }
}

@media (max-width: 480px) {
  .port-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================
   ATELIERS
   ============================ */

.workshops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.workshop-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.workshop-card:hover { border-color: var(--red); transform: translateY(-2px); }
.workshop-card--past { opacity: 0.65; }
.workshop-card--past:hover { border-color: var(--border); }
.workshop-card--past .wk-title { text-decoration: line-through; }

.wk-card-poster { overflow: hidden; border-radius: 10px 10px 0 0; }
.wk-card-poster img { width: 100%; height: auto; display: block; }

.wk-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.wk-card-body .wk-badges { order: 0; }
.wk-card-body .wk-title { order: 1; }
.wk-card-body .wk-desc { order: 2; }
.wk-card-body .wk-meta { order: 3; }

.wk-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.wk-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wk-badge--members    { background: #2a1a3e; color: #c084fc; border: 1px solid #7c3aed44; }
.wk-badge--open      { background: #0e1e2a; color: #67e8f9; border: 1px solid #0891b244; }
.wk-badge--free      { background: #0e2a1a; color: #4ade80; border: 1px solid #16a34a44; }
.wk-badge--paid      { background: #2a1600; color: #fbbf24; border: 1px solid #d9770644; }
.wk-badge--warning   { background: #2a1800; color: #fb923c; border: 1px solid #ea580c44; }
.wk-badge--full      { background: #1a0a0a; color: #f87171; border: 1px solid #dc262644; }
.wk-badge--success   { background: #0e2a1a; color: #4ade80; border: 1px solid #16a34a44; }
.wk-badge--cancelled { background: #1a1a1a; color: #6b7280; border: 1px solid #37415144; }
.wk-badge--registered{ background: #2a1f00; color: #e6a817; border: 1px solid #e6a81744; }
.wk-badge--support   { background: #2a1200; color: #f59e0b; border: 1px solid #f59e0b44; }
.wk-badge--past      { background: #1a1a1a; color: #9ca3af; border: 1px solid #37415144; }

.wk-title { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.5rem; }
.wk-desc  { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 1rem; line-height: 1.5; }

.wk-meta { display: flex; flex-direction: column; gap: 0.3rem; margin-top: auto; }
.wk-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.wk-meta-item svg { flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wk-card-link {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  transition: background 0.2s;
}
.wk-card-link:hover { background: var(--bg-3); }

.wk-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 2rem;
}
.wk-detail-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.wk-detail-meta-item svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.wk-description { color: var(--text); }

/* ── Homepage atelier preview ── */
.atelier-preview-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 2.5rem 0 2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.atelier-preview-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 1.5rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.atelier-preview-item:last-child { border-bottom: none; }
.atelier-preview-item:hover { background: var(--bg-3); }
.atelier-preview-badges { display: flex; gap: 0.4rem; flex-shrink: 0; }
.atelier-preview-title {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.atelier-preview-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.atelier-preview-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.atelier-preview-meta svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.atelier-preview-cta { text-align: center; margin-top: 1.5rem; }
@media (max-width: 640px) {
  .atelier-preview-item { flex-wrap: wrap; gap: 0.6rem; }
  .atelier-preview-meta { flex-direction: column; gap: 0.3rem; }
}

.wk-action-box {
  padding: 2rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 2.5rem;
}

.wk-alert {
  padding: 0.9rem 1.2rem;
  border-radius: 5px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border-left: 3px solid;
}
.wk-alert--success { background: #0e2a1a; color: #4ade80; border-color: #16a34a; }
.wk-alert--error   { background: #2a0e0e; color: #f87171; border-color: #dc2626; }
.wk-alert--warning { background: #2a1800; color: #fbbf24; border-color: #d97706; }

.btn-outline-danger {
  background: transparent;
  border: 1px solid #dc2626;
  color: #f87171;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s ease;
}
.btn-outline-danger:hover { background: #2a0e0e; }
.btn-outline-danger:active { transform: scale(0.97); }

.wk-reg-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* ============================
   ADMIN
   ============================ */

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.admin-stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
}
.admin-stat-num   { font-size: 2rem; font-weight: 700; color: var(--red); margin: 0; }
.admin-stat-label { font-size: 0.85rem; color: var(--text-muted); margin: 0.25rem 0 0; }

.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th, .admin-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.admin-table th { color: var(--text-muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.admin-table tr:hover td { background: var(--bg-2); }

.admin-form { display: flex; flex-direction: column; gap: 1.25rem; }
.admin-form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.admin-form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.admin-form-group small { font-size: 0.8rem; color: var(--text-muted); }
.admin-form-group input,
.admin-form-group textarea,
.admin-form-group select {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem 0.9rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.admin-form-group input:focus,
.admin-form-group textarea:focus,
.admin-form-group select:focus {
  outline: none;
  border-color: var(--red);
}
.admin-form-group input:focus-visible,
.admin-form-group textarea:focus-visible,
.admin-form-group select:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* Responsive ateliers */
@media (max-width: 1024px) {
  .workshops-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-stats    { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .workshops-grid    { grid-template-columns: 1fr; }
  .admin-stats       { grid-template-columns: repeat(2, 1fr); }
  .admin-form-row    { grid-template-columns: 1fr; }
  .wk-reg-row        { flex-direction: column; align-items: flex-start; }
}
