/*

Kirbyxhibit
Thanks to Kirby Starterkit by Bastian Allgeier / Sascha Lack (http://getkirby.com)
A tribute to Indexhibit by Daniel Eatock and Jeffery Vaska 
Big hugs to Greg Cadars

Updated for Kirby 5
Author:  Didier Lechenne + Julien Bidoret


*/

/* ------------------------------------------------------------------------ les graisses pour les polices de caractères, en css */

/* font-weight: 100; Thin (Hairline) */
/* font-weight: 200; Extra Light (Ultra Light) */
/* font-weight: 300; Light */
/* font-weight: 400; normal */
/* font-weight: 500; Medium */
/* font-weight: 600; Semi Bold (Demi Bold) */
/* font-weight: 700; gras / bold */
/* font-weight: 800; Extra Bold (Ultra Bold) */
/* font-weight: 900; Black (Heavy) */
/* font-weight: 950; Extra Black (Ultra Black) */

@import "fonts/fonts.css";

/* ------------------------------------------------------------------------ Variables */
:root {
  --heading: "IBM Plex Sans", sans-serif;
  --labeur: "IBM Plex Sans", sans-serif;

  --text-color: rgb(0, 0, 0);
  --background-color: rgb(247, 247, 246);

  --heading-size: 28pt;
  --heading-line-height: 28pt;
  --heading-weight: normal;

  --labeur-size: 1em;
  --labeur-line-height: 1.5;
  --labeur-weight: 600;
  --labeur-bold-weight: 700;

  --caption: var(--labeur), sans-serif;
  --caption-size: 9pt;
  --caption-line-height: 12pt;
  --caption-weight: 300;
  --caption-bold-weight: normal;

  --baseline: 1ch;
  --gutter: 3mm;

  /* typographie */

  --bigsize: clamp(2.5rem, calc(1.83rem + 3.33vw), 6rem);
  --basesize: 1.15rem;
  --color: rgba(0, 0, 0, 0.85);
  /* espacements  */
  --spacer: 2rem;
  /* largeur des notes de cÃ´tÃ© */
  --sn-width: 15rem;
  /* couleur dâ€™accentuation */
  --accentcolor: black;
  /* largeur max. des textes */
  --maxwidth: 30rem;
}

/* Hard reset
-------------------------------------------------- */
*,
*:before,
*:after {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary,
img,
picture {
  display: block;
}

/* images
-------------------------------------------------- */
picture,
img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.img {
  position: relative;
  padding-bottom: calc(var(--h) / var(--w) * 100%);
  overflow: hidden;
}

.img img,
.img picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figcaption {
  font-family: var(--caption);
  font-size: var(--caption-size);
  line-height: var(--caption-line-height);
  font-weight: var(--caption-weight);
  padding-top: calc(1 * 2mm);
}

figcaption strong em,
figcaption em strong {
  font-weight: var(--caption-bold-weight);
}

/* Links
-------------------------------------------------- */
a {
  color: currentColor;
  text-decoration: underline;
  text-underline-offset: 20%;
  transition: color 0.3s, background 0.3s, border 0.3s;
}
a:hover {
  color: black;
}

/* Site
-------------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  margin: 0 auto;
  font-family: var(--labeur);
  font-size: var(--labeur-size);
  line-height: var(--labeur-line-height);
  background: var(--background-color);
  color: var(--text-color);
  overflow-x: hidden;
}

/* Page
-------------------------------------------------- */
.page {
  display: flex;
  flex-direction: column;
}

/* Header
-------------------------------------------------- */
.header {
  padding: 1.5rem;
}

.header a {
  color: #000;
}

.logo {
  font-weight: 700;
  display: block;
  margin-bottom: 1.5em;
}

/* Navigation
-------------------------------------------------- */

nav span {
  display: block;
  margin-bottom: 0.25em;
}
.submenu {
  margin-left: 0.5em;
}
nav .active:before {
  content: "→ ";
}

/* Headings
-------------------------------------------------- */
.h1 {
  font-size: 1em;
  font-weight: 700;
  margin-bottom: 1.5em;
}

.h2 {
  font-size: 1em;
  font-weight: 700;
  margin-bottom: 1.5em;
}
.h3 {
  font-size: 1em;
  font-weight: 400;
  margin-bottom: 1.5em;
}
.h4 {
  font-size: 1em;
  font-weight: 400;
  margin-bottom: 0.5em;
}
.h1 a,
.h2 a,
.h3 a,
.h4 a {
  color: inherit;
  border: 0 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* Lists
-------------------------------------------------- */

ul {
  list-style-position: inside;
}

/* Main
-------------------------------------------------- */
main {
  padding: 1rem;
  flex: 1;
  max-width: 1200px;
}

.main > :first-child {
  margin-top: 0;
}
.main hr {
  margin: 3em 0;
  height: 1px;
  width: 3em;
  background: #000;
}
.main p,
.main figure,
.main picture,
.main ul,
.main ol {
  margin-bottom: 1.5em;
}
.main a {
  color: black;
  border-bottom: 1px solid #aaa;
}
.main a:hover {
  border-color: #222;
}

@media screen and (min-width: 48.25em) {
  main {
    padding: 1.5rem; /* Augmente sur desktop */
  }
}

/* Text blocks */
.text p,
.text ul,
.text ol {
  max-width: 45em;
}

.text ul {
  list-style: none;
}
.text ul li:before {
  content: "– ";
}

.text ol {
  margin-left: 1em;
}

/* Main gallery
-------------------------------------------------- */
.project-gallery {
  max-width: 900px;
}

.project-gallery figure {
  margin: 1em 0 2em;
}

/* Projets tags
-------------------------------------------------- */
.projet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.projet-tags li {
  list-style: none;
  /* margin-right: 0.5rem; */
}

.blog-article-tags a {
  padding: 0.5rem 1rem;
  display: block;
  background: var(--color-light);
  border-radius: var(--rounded);
}

.projet-excerpt figure {
  margin-bottom: 0.5rem;
}

.projet-excerpt picture {
  margin-bottom: 0.5rem;
}

header .h1 {
  font-size: clamp(1.25rem, 4vw, 2rem); /* Responsive de 1.25rem à 2rem */
  margin-bottom: clamp(1.5rem, 5vw, 3rem); /* Margin responsive */
  line-height: 1.25em;
  font-weight: inherit;
}

header small {
  font-size: inherit;
  color: hsl(0, 0%, 60%);
}

.chapo {
  font-family: var(--labeur);
  font-size: var(--labeur-size);
  line-height: var(--labeur-line-height);
  margin-bottom: 1.5em;
  max-width: 75ch;
  font-weight: 600;
}

.grid {
  --columns: 12;
  --gutter: 1.5rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: 1fr;
}

.grid > .column {
  margin-bottom: var(--gutter);
  /* Mobile-first: pas de grid-column défini = occupe toute la largeur automatiquement */
}

.grid .block,
.grid figure {
  margin-bottom: var(--gutter);
  max-width: 900px;
}

.grid figure {
}

/* Desktop uniquement */
@media screen and (min-width: 60rem) {
  .grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .grid > .column {
    grid-column: span var(--columns) !important;
  }
}

li {
  list-style: none;
}

/* Project meta
-------------------------------------------------- */
.meta {
  margin-bottom: 1.5em;
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}
.meta li {
  /* float: left; */
  list-style: none;
  /* margin-right: 2em; */
}
.meta li b {
  font-weight: 400;
  color: #000;
  padding-right: 0.25em;
}

/* Home
-------------------------------------------------- */
.a_la_une img {
  display: block;
  margin: 1em 0 0.5em;
}

/* Next/Prev nav
-------------------------------------------------- */
.nextprev {
  padding: 1em 0;
}
.nextprev a {
  border: 0;
}
.nextprev .prev + .nextprev .next {
  margin-left: 1em;
}

/* Footer
-------------------------------------------------- */
.footer {
  padding: 1rem 1.5rem 3rem; /* Symétrique + bottom padding réduit */
  font-size: 0.75em;
}

.footer a {
  color: black;
  border-bottom: 1px solid #aaa;
}
.footer a:hover {
  border-color: #222;
}

@media screen and (min-width: 48.25em) {
  .footer {
    padding: 1rem 1.5rem 6rem 4rem; /* Asymétrique sur desktop */
  }
}

/* Media queries
-------------------------------------------------- */
@media screen and (min-width: 48.25em) {
  .page {
    flex-direction: row;
  }
  a.menu-link {
    display: none;
  }
  .header {
    width: 16rem;
    height: 100vh;
    position: sticky;
    top: 0;
  }
}

/* page a propos
-------------------------------------------------- */
.about {
  max-width: 45em;
}

.about .grid {
  grid-gap: 0;
}

.about .grid p {
  margin-bottom: 0;
}
/* margin-bottom: 1.5em; */
