/* =========================================================
   MIWA Festival — Feuille de style partagée
   ========================================================= */

@font-face {
  font-family: 'TT Commons';
  src: url('../fonts/TT-Commons-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tofino';
  src: url('../fonts/Tofino-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #2b00ff;
  --blue-dark: #2200cc;
  --yellow: #ffed00;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--blue);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'TT Commons', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--white);
}

a { color: inherit; }

/* ---------- Header / logo (toutes les pages secondaires) ---------- */

.site-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6vh 8vw 0;
}

.site-header img {
  width: 44px;
  height: auto;
}

.site-header .wordmark-small {
  font-family: 'Tofino', 'TT Commons', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.4px;
}

.back-link {
  margin-left: auto;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.4px;
  color: var(--yellow);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}
.back-link:hover { border-color: var(--yellow); }

/* ---------- Hero (accueil) ---------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
  padding: 8vh 8vw 0;
}

.logo-mark {
  width: clamp(70px, 8vw, 110px);
  height: auto;
  margin-bottom: 18px;
  display: block;
}

.wordmark {
  font-family: 'Tofino', 'TT Commons', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.9;
  letter-spacing: 0.5px;
  margin: 0 0 22px 0;
  color: var(--white);
}

.tagline {
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: 0.3px;
  margin: 0 0 48px 0;
  color: var(--white);
}

nav.main-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 40px;
}

nav.main-nav a,
.link-btn {
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(20px, 2.6vw, 32px);
  letter-spacing: 0.3px;
  color: var(--yellow);
  text-decoration: none;
  width: max-content;
  position: relative;
  transition: opacity 0.15s ease;
}

nav.main-nav a::after,
.link-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: var(--yellow);
  transition: width 0.2s ease;
}

nav.main-nav a:hover,
.link-btn:hover { opacity: 0.8; }

nav.main-nav a:hover::after,
.link-btn:hover::after { width: 100%; }

.socials {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 8px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--yellow);
  transition: opacity 0.15s ease;
}
.socials a:hover { opacity: 0.75; }
.socials svg { width: 100%; height: 100%; }

/* ---------- Footer (toutes les pages) ---------- */

footer.site-footer {
  padding: 5vh 8vw 5vh;
  font-size: 15px;
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-bottom: 18px;
}

.footer-links a {
  color: var(--yellow);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.3px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.footer-links a:hover { border-color: var(--yellow); }

.copyright {
  color: var(--yellow);
  opacity: 0.75;
  font-size: 14px;
}

/* ---------- Pages secondaires : contenu ---------- */

.page-content {
  flex: 1;
  padding: 4vh 8vw 6vh;
}

.page-title {
  font-family: 'Tofino', 'TT Commons', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 0.95;
  margin: 0 0 12px 0;
}

.page-intro {
  max-width: 620px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--white);
  opacity: 0.92;
  margin: 0 0 6vh 0;
}

/* ---------- Galerie Animations ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

@media (max-width: 1000px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 460px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}

.g-card {
  display: block;
  text-decoration: none;
  color: var(--white);
}

.g-card-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: var(--blue-dark);
  margin-bottom: 10px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.g-card:hover .g-card-img {
  transform: translateY(-4px);
  filter: brightness(1.08);
}

.g-card-title {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

/* ---------- Album photo ---------- */

.album-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1000px) {
  .album-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .album-grid { grid-template-columns: repeat(2, 1fr); }
}

.album-item {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: var(--blue-dark);
  cursor: zoom-in;
  border: 0;
  padding: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.album-item:hover { transform: translateY(-3px); filter: brightness(1.08); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 0, 170, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 6vh 6vw;
  z-index: 50;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 10px;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: 0;
  color: var(--yellow);
  font-size: 32px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Formulaire de contact ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

.contact-info p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.92;
}
.contact-info a {
  color: var(--yellow);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field label {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--yellow);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  padding: 8px 2px;
  outline: none;
  transition: border-color 0.15s ease;
}
.field input:focus,
.field textarea:focus { border-color: var(--yellow); }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,0.45); }

.submit-btn {
  align-self: flex-start;
  margin-top: 6px;
  background: var(--yellow);
  color: var(--blue);
  border: none;
  font-family: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.submit-btn:hover { transform: translateY(-2px); opacity: 0.92; }

.form-note {
  font-size: 13px;
  opacity: 0.7;
  margin-top: -6px;
}

.form-status {
  font-size: 14px;
  font-weight: 700;
  color: var(--yellow);
  display: none;
}
.form-status.show { display: block; }
