/* =========================================================
   BREAD FEST — feuille de style
   Palette : noir encre, jaune vif, crème, corail (Tartine et Boterham)
   ========================================================= */

:root {
  --ink: #1a1a18;
  --ink-soft: #4a4843;
  --yellow: #f5c518;
  --yellow-deep: #e0ad00;
  --cream: #f6f0e2;
  --cream-2: #efe7d4;
  --coral: #e8604c;
  --white: #ffffff;
  --line: rgba(26, 26, 24, 0.12);
  --shadow: 0 18px 40px -20px rgba(26, 26, 24, 0.35);
  --radius: 18px;
  --maxw: 1180px;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

/* ---------- Language switch helper ---------- */
[data-fr]::after { content: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  background: var(--ink);
  color: var(--white);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--yellow { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--sm { padding: 9px 18px; font-size: 0.86rem; }
.btn--coral { background: var(--coral); border-color: var(--coral); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(246, 240, 226, 0.82);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.brand span { color: var(--coral); }
.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  align-items: center;
}
.nav a {
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.social-link {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink);
  transition: color 0.2s ease, transform 0.15s ease;
}
.social-link:hover { color: var(--coral); transform: translateY(-1px); }
.social-link svg { width: 21px; height: 21px; display: block; }

.lang-switch {
  display: inline-flex;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
}
.lang-switch button,
.lang-switch a {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 6px 12px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-switch button.active,
.lang-switch a.active { background: var(--ink); color: var(--white); }

.burger {
  display: none;
  border: 2px solid var(--ink);
  background: transparent;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  background: linear-gradient(165deg, #fbf8f0 0%, var(--cream) 55%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}
.hero-copy { max-width: 640px; }
.hero-poster { justify-self: end; }
.hero-poster img {
  width: 100%;
  max-width: 430px;
  height: auto;
  border-radius: 12px;
  border: 7px solid #fff;
  box-shadow: 0 34px 60px -22px rgba(26, 26, 24, 0.55);
  transform: rotate(1.6deg);
  transition: transform 0.3s ease;
}
.hero-poster img:hover { transform: rotate(0deg) scale(1.02); }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.4rem, 13vw, 8.5rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.hero h1 .u {
  position: relative;
  display: inline-block;
}
.hero h1 .u::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.1em;
  height: 0.22em;
  background: var(--yellow);
  z-index: -1;
  transform: rotate(-1.5deg);
}
.hero-tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  margin: 18px 0 26px;
  max-width: 34ch;
}
.hero-tag b { color: var(--ink); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-bottom: 30px;
  font-weight: 600;
}
.hero-meta div { display: flex; align-items: center; gap: 9px; }
.hero-meta .ic {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  background: var(--yellow);
  border-radius: 50%;
  font-size: 1rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--coral);
  margin: 0 0 12px;
}
h2.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.lead { font-size: 1.08rem; color: var(--ink-soft); margin: 0; }

/* About */
.about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.about-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.stat-row { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  color: var(--coral);
  line-height: 1;
}
.stat span { font-size: 0.9rem; color: var(--ink-soft); }

/* Programme cards */
.programme { background: var(--cream-2); }
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
  color: inherit;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--coral);
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.card p { margin: 0; font-size: 0.93rem; color: var(--ink-soft); }
.card .go { margin-top: auto; font-weight: 700; color: var(--ink); font-size: 0.9rem; }

/* Feature block (Awards / Speed / Workshops) */
.feature { position: relative; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature--rev .feature-figure { order: -1; }
.feature-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 5 / 4;
}
.feature-figure img { width: 100%; height: 100%; object-fit: cover; }
.feature-figure--logo { background: #fff; }
.feature-figure--poster { background: #ece7dc; }
.feature-figure--logo img,
.feature-figure--poster img { object-fit: contain; padding: 8px; }
.badge-pill {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.feature h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.02;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.checklist { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  background: var(--coral); color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 800;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-label { width: 100%; font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

/* Exhibitors */
.exhibitors { background: var(--cream-2); }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.chip {
  background: var(--white);
  border: 1px solid rgba(26, 26, 24, 0.16);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
a.chip:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); transform: translateY(-2px); }

/* Practical */
.practical { background: var(--cream); }
.info-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 56px; max-width: 860px; }
.info-item { padding: 0; }
.info-item h4 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.01em; }
.info-item p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.info-item--wide { grid-column: 1 / -1; }
.access-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 56px; }
.access-list li { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.5; }
.access-list b { color: var(--ink); font-weight: 700; }
.info-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(26, 26, 24, 0.3);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.info-link:hover { color: var(--coral); text-decoration-color: var(--coral); }

/* Newsletter / CTA band */
.band {
  background: var(--yellow);
  color: var(--ink);
  text-align: center;
}
.band h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 3rem);
  text-transform: uppercase;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.band p { max-width: 54ch; margin: 0 auto 26px; font-size: 1.05rem; }
.band .hero-cta { justify-content: center; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(246,240,226,0.75);
  padding: 56px 0 30px;
}
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { color: var(--cream); font-size: 1.5rem; }
.footer-brand .brand span { color: var(--coral); }
.footer-brand p { margin: 14px 0 0; font-size: 0.92rem; }
.footer-brand p a { color: var(--cream); text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s ease; }
.footer-brand p a:hover { color: var(--coral); }
.footer-col h5 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--yellow);
  margin: 0 0 14px;
}
.footer-col a { display: block; text-decoration: none; color: rgba(246,240,226,0.75); margin-bottom: 9px; font-size: 0.92rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--cream); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-col a.footer-social-link {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 50%;
  border: 1px solid rgba(246, 240, 226, 0.28);
  color: rgba(246, 240, 226, 0.8);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.footer-col a.footer-social-link:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); transform: translateY(-2px); }
.footer-col a.footer-social-link svg { width: 20px; height: 20px; display: block; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(246,240,226,0.16);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(246,240,226,0.55);
}

/* Reveal on scroll — l'état masqué n'est appliqué que si JS a ajouté .anim-ready
   sur <html>. Sans JS (ou en cas d'erreur), le contenu reste visible par défaut. */
.anim-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.anim-ready .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .feature-grid { grid-template-columns: 1fr; gap: 34px; }
  .feature--rev .feature-figure { order: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; justify-items: center; text-align: left; }
  .hero-copy { max-width: 100%; }
  .hero-poster { justify-self: center; }
  .hero-poster img { max-width: 340px; transform: none; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 18px 20px;
    gap: 16px;
    margin: 0;
  }
  .burger { display: flex; }
  .header-actions .btn, .header-actions .social-link { display: none; }
}
@media (max-width: 560px) {
  .info-list { grid-template-columns: 1fr; gap: 22px; }
  .access-list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}

/* ---------- Accordéon « Workshops & Visits » ---------- */
.accordion { margin: 24px 0 26px; }
.acc-item { border-top: 2px solid var(--ink); }
.acc-item:last-child { border-bottom: 2px solid var(--ink); }
.acc-head { display: flex; align-items: center; gap: 12px; }
.acc-book { flex: none; white-space: nowrap; }
.acc-trigger {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 2px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--ink);
  text-align: left;
  transition: color 0.2s ease;
}
.acc-trigger:hover,
.acc-trigger[aria-expanded="true"] { color: var(--coral); }
.acc-icon { position: relative; width: 18px; height: 18px; flex: none; }
.acc-icon::before,
.acc-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: currentColor; transition: transform 0.2s ease, opacity 0.2s ease;
}
.acc-icon::before { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.acc-icon::after { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.acc-trigger[aria-expanded="true"] .acc-icon::before { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
.acc-panel { padding: 0 2px 22px; }
.acc-panel p { line-height: 1.55; margin: 0 0 10px; }
.acc-h { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; margin: 0 0 6px; }
.acc-time { font-family: var(--font-body); font-weight: 500; color: var(--ink-soft); font-size: 0.85rem; margin-left: 8px; }
.acc-meta { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 8px; }
.acc-list { margin: 6px 0 12px; padding-left: 0; list-style: none; }
.acc-list li { padding: 3px 0; }
.acc-note { font-size: 0.85rem; color: var(--ink-soft); font-style: italic; }
.acc-sub { padding: 14px 0; border-top: 1px solid var(--line); }
.acc-sub:first-of-type { border-top: 0; padding-top: 4px; }

/* Accessibilité : on coupe les animations si l'utilisateur les a désactivées */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
