/* Just For Funk — mini design system
   Keeps the 2005 look (peach box on orange tiles, orange Verdana, Gravity Sucks title images)
   and makes it consistent. See tools/design/README.md and tools/design/styleguide.html. */

:root {
  /* colours — all taken from the existing site */
  --jff-text:        #DF3902;  /* text, headings, links (style.css) */
  --jff-text-hover:  #CC0000;  /* link hover (menu hover in style.css) */
  --jff-line:        #F56323;  /* borders of boxes (photos.php tables) */
  --jff-accent:      #FC8019;  /* filled callout box (home "prochain concert") */
  --jff-on-accent:   #FFFFFF;
  --jff-surface:     #FDCC99;  /* the peach content box */
  --jff-surface-2:   #FEE3C6;  /* lighter peach, inside boxes (new, derived) */

  /* type */
  --jff-font:        Verdana, Arial, Helvetica, sans-serif;
  --jff-size-small:  11px;     /* captions, dates, credits */
  --jff-size-body:   13px;     /* 12px in 2005 */
  --jff-size-h3:     13px;
  --jff-size-h2:     16px;
  --jff-leading:     1.5;

  /* spacing scale */
  --jff-s1: 4px;  --jff-s2: 8px;  --jff-s3: 12px;  --jff-s4: 16px;  --jff-s5: 24px;
  --jff-radius: 6px;
}

/* ---------- base ---------- */
/* also overrides the 2005 classes of style.css (.agenda, .presentation...) inside the content box */
.jff-content, .jff-content p, .jff-content li, .jff-content td,
.jff-content .agenda, .jff-content .agenda_name, .jff-content .presentation, .jff-content .bienvenue, .jff-content .annonce {
  font-family: var(--jff-font); font-size: var(--jff-size-body); line-height: var(--jff-leading);
  color: var(--jff-text); text-align: left;                       /* rule 1: text is left-aligned */
}
.jff-content p { margin: 0 0 var(--jff-s3); }

/* ---------- headings ---------- */
/* H1 = the page's title image (Gravity Sucks), always left, alt text = page name */
.jff-content h1 { margin: var(--jff-s1) 0 var(--jff-s4); text-align: left; line-height: 1; font-size: var(--jff-size-h2); }
/* H2 = section */
.jff-content h2 { font: bold var(--jff-size-h2)/1.3 var(--jff-font); color: var(--jff-text);
                  margin: var(--jff-s5) 0 var(--jff-s2); text-transform: none; text-align: left; }
/* H3 = sub-section */
.jff-content h3 { font: bold var(--jff-size-h3)/1.3 var(--jff-font); color: var(--jff-text);
                  margin: var(--jff-s4) 0 var(--jff-s1); text-transform: none; text-align: left; }

/* ---------- links: one style everywhere ---------- */
.jff-content a, .jff-content a:link, .jff-content a:visited { color: var(--jff-text); font-size: inherit;
  text-decoration: underline; text-underline-offset: 2px; }
.jff-content a:hover { color: var(--jff-text-hover); }

/* ---------- lists: bullets hang on the text's left edge ---------- */
.jff-content ul { margin: 0 0 var(--jff-s3); padding-left: 1.1em; }
.jff-content ul ul { margin: var(--jff-s1) 0 0; }
.jff-content li { margin: 0 0 2px; }
.jff-content li::marker { color: var(--jff-line); }

/* ---------- components ---------- */
/* Box: a group of things (album, photo gallery, press clipping, contact) */
.jff-box { border: 1px solid var(--jff-line); border-radius: var(--jff-radius); background: var(--jff-surface-2);
           padding: var(--jff-s3) var(--jff-s3) var(--jff-s2); margin: 0 0 var(--jff-s4); }
.jff-box > h3:first-child { margin-top: 0; }
/* Callout: the one highlighted message of a page (orange, white text) */
.jff-callout { background: var(--jff-accent); color: var(--jff-on-accent); border-radius: var(--jff-radius);
               padding: var(--jff-s2) var(--jff-s3); }
.jff-content .jff-callout, .jff-content .jff-callout p,
.jff-content .jff-callout a, .jff-content .jff-callout a:visited { color: var(--jff-on-accent); }
.jff-content .jff-callout p { margin: 0 0 var(--jff-s2); }
.jff-content .jff-callout p:last-child { margin-bottom: 0; }
/* Small text: dates, captions, photo credits */
.jff-content .jff-meta { font-size: var(--jff-size-small); font-weight: normal; }
/* Image + text side by side (cover, flyer) — image on the right, like the 2005 archives */
.jff-media { display: flex; gap: var(--jff-s3); align-items: flex-start; }
.jff-media > :first-child { flex: 1; min-width: 0; }
.jff-media > :first-child > :last-child { margin-bottom: 0; }
/* Galleries: thumbnails centered in their box (the only centered content) */
.jff-gallery { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--jff-s2); }
.jff-gallery img { display: block; }

/* Présentation keeps a text H1 (exception to the title-image rule) */
.jff-content h1.jff-title { font: bold 26px/1.2 var(--jff-font); color: var(--jff-text); text-transform: uppercase; margin: var(--jff-s3) 0; }

/* Title images inside H1/H2 (alt text = the page name) */
.jff-content h1.jff-imgtitle, .jff-content h2.jff-imgtitle { margin: var(--jff-s1) 0 var(--jff-s4); line-height: 0; }
.jff-content h2.jff-imgtitle { margin-top: var(--jff-s5); }

/* content starts at the top of the peach box (the old table cell centred it vertically) */
td.jff-content { vertical-align: top; }

/* Figure: a photo with a small caption underneath */
.jff-content p.jff-figure { margin: var(--jff-s3) 0 var(--jff-s4); line-height: 1.4; }
.jff-content p.jff-figure img { max-width: 100%; height: auto; margin-bottom: var(--jff-s1); }
