/* @override 
	https://susinikirby/assets/css/default.css */

* {
  margin: 0;
  padding: 0;
}

:root {
  --gut: 50px;
  --noir: #231A1B;
  --contraste: #E9440D;
  --blanc: #F9F3F1;
  --font80: 0.8rem;
  --font100: 1.2rem;
  --font110: 1.4rem;
  --font200: 2.5rem;
  --font300: 3rem;
}
@media print, screen and (max-width: 1500px) {
	:root {
	  --gut: 30px;
	  --font100: 1.0rem;
	  --font110: 1.25rem;
	  --font200: 2.2rem;
	  --font300: 2.7rem;
	}
}
@media print, screen and (max-width: 1024px) {
	:root {
	  --gut: 20px;
	  --font100: 1rem;
	  --font110: 1rem;
	  --font200: 1.8rem;
	  --font300: 2.2rem;
	}
}

html {
  font-family: Playfair Display, sans-serif;
  color: var(--noir);
  background: var(--blanc);
}
img {
  width: 100%;
}
body {
  padding: 0;
  margin: 0;
  font-size: var(--font100);
  line-height: 1.5;
}
ul, 
ul li {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: currentcolor;
  text-decoration: none;
  display: block;
}
p a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-decoration-style: solid;
	text-underline-offset: 5px;
}
p:not(:last-child) {
	margin-bottom: 15px;
}
:focus {
	outline: none;
}
:focus-visible {
	outline: 1px solid var(--noir);
}
* {
	-webkit-tap-highlight-color: transparent;
}
header a.logo {
	color: var(--contraste);
	font-weight: bold;
	font-size: var(--font110);
	line-height: 1.2;
}
header {
	position: sticky;
	top: 0;
	background-color: #FFF;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--gut);
	padding: calc(var(--gut)*.5) var(--gut);
}

header nav {
	flex: 1;
	display: flex;
	justify-content: flex-end;
}
header nav ul {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	line-height: 1.2;
	gap: var(--gut);
}
header nav ul li:hover a,
header a.logo:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-decoration-style: solid;
	text-underline-offset: 5px;
}
header nav ul li a {
	text-align: center;
	line-height: 1.4;
}
header nav ul li.active a {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-decoration-style: solid;
	text-underline-offset: 5px;
}
#menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: none; /* important: keep this.  It's shown in the media query */
  position: relative; /* Important for positioning the bars */
  width: 30px; /* Add width to contain the icon bars */
  height: 24px; /* Add height to contain the icon bars */
}

.icon-bar {
  left: 0;
  right: 0;
  height: 2px; /* Slightly thicker bars */
  background-color: var(--noir);
  position: absolute; /* Needed for precise positioning */
  top: 50%; /* Center vertically */
  left: 0;
}

.icon-bar:nth-child(2) { /* Top bar */
  top: 0%; /* Position the top bar */
}

.icon-bar:nth-child(4) { /* Bottom bar */
  top: 100%; /* Position the bottom bar */
}

#menu-toggle.is-active .icon-bar:nth-child(2) {
  transform: rotate(45deg); /* Rotate top bar */
  top: 50%; /* Move to center for the X */
}

#menu-toggle.is-active .icon-bar:nth-child(3) {
  opacity: 0; /* Hide the middle bar */
}

#menu-toggle.is-active .icon-bar:nth-child(4) {
  transform: rotate(-45deg); /* Rotate bottom bar */
  top: 50%; /* Move to center for the X */
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
@media (max-width: 1500px) {
  header {
  	padding: calc(var(--gut)*.75) var(--gut);
  }
}
@media (max-width: 1024px) {
  header {
  	padding: calc(var(--gut)*1) var(--gut);
  }
  #menu ul {
    display: none;
    flex-direction: column;
    position: absolute;
	z-index: 1;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--noir);
	color: var(--blanc);
    padding: var(--gut);
    gap: 0;
	align-items: inherit;
  }
  #menu ul li a {
	text-align: left;
    padding: calc(var(--gut)*.5) 0;
  }
  #menu ul li:first-child a {
  	padding-top: 0;
  }
  #menu ul li:last-child a {
  	padding-bottom: 0;
  }
  #menu-toggle {
    display: block;
  }

  #menu-toggle[aria-expanded="true"] + ul {
    display: flex;
  }
}
.content {
	padding: var(--gut);
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--gut);
}
.content.texte {
	max-width: 1200px;
	gap: calc(var(--gut)*.5);
}
.content.page,
.content.home {
	max-width: 1600px;
	grid-template-columns: 1fr 3fr 1fr;
}
.citation p {
	font-size: var(--font200);
	line-height: 1.1;
	color: var(--contraste);
	font-style: italic;
	text-wrap: balance;
}
@media print, screen and (max-width: 1024px) {
    .content {
		grid-template-columns: 1fr !important;
	}
	.content.page .droite {
		order: 2;
	}
	.content.page .centre {
		order: 3;
	}
}
h1 {
	font-size: var(--font300);
	line-height: 1;
	margin-bottom: var(--gut);
}
.home h1 {
	display: none;
}
figure {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
figure:not(:last-child) {
	margin-bottom: calc(var(--gut)*.5);
}
figcaption {
	font-size: var(--font80);
	line-height: 1.2;
}
.block.image-text {
	display: grid;
	grid-template-columns: 1fr 4fr;
	gap: var(--gut);
}
@media print, screen and (max-width: 1024px) {
    .block.image-text {
		grid-template-columns: 1fr;
		gap: 0;
		margin-bottom: var(--gut);
	}
}

@media (prefers-color-scheme: dark) {
	:root {
		--noir: #F9F3F1;
		--blanc: #000;
	}
	header {
		background-color: #342E2E;
	}
}