/* @override 
	https://jeremiedres.fr/assets/css/default.css */

* {
  margin: 0;
  padding: 0;
}

:root {
  --gut: 50px;
  --noir: #231A1B;
  --contraste: #00f;
  --blanc: #FFF;
  --border: 1px solid var(--noir);
  --font80: 0.8rem;
  --font100: 1.4rem;
  --font110: 1.6rem;
  --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: "Manrope", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  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: 200;
	font-size: var(--font200);
	line-height: 1.2;
	text-transform: uppercase;
}
header {
	position: sticky;
	top: 0;
	z-index: 2;
	background-color: var(--blanc);
	border-bottom: var(--border);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--gut);
	padding: calc(var(--gut)*.5) 0;
	margin: 0 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;
	font-weight: 200;
	font-size: var(--font200);
	text-transform: uppercase;
}
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) 0;
  }
}
@media (max-width: 1024px) {
  header {
  	padding: calc(var(--gut)*1) 0;
  }
  #menu ul {
    display: none;
    flex-direction: column;
    position: absolute;
	z-index: 1;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--contraste);
	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: calc(var(--gut)*.5) var(--gut);
	padding-bottom: 0;
}
.content.page,
.content.home {
	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;
}
h1 {
	font-size: var(--font200);
	font-weight: 200;
	text-transform: uppercase;
	line-height: 1;
	color: var(--contraste);
	margin-bottom: calc(var(--gut)*.5);
}
h2 {
	font-size: var(--font200);
	font-weight: 200;
	text-transform: uppercase;
	line-height: 1;
	margin-bottom: calc(var(--gut)*.5);
}
.accueil h1,
.categorie h1,
.dans_menu 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 {
	margin-bottom: calc(var(--gut)*.5);
}
.block.text {
	max-width: 1200px;
}
.block.image-text {
	display: grid;
	grid-template-columns: 1fr 3fr;
	gap: var(--gut);
}
@media print, screen and (max-width: 1024px) {
    .block.image-text {
		grid-template-columns: 1fr;
		gap: 0;
		margin-bottom: var(--gut);
	}
}
.teaser figure {
	margin-bottom: calc(var(--gut)*.5);
}
.teaser .titre {
	font-weight: 200;
	font-size: var(--font200);
	line-height: 1;
	text-transform: uppercase;
	transition: all .3s;
	margin-bottom: calc(var(--gut)*.25);
	text-wrap: balance;
}
.teaser .soustitre {
	line-height: 1.2;
	text-wrap: balance;
}
.teaser:hover .titre {
	color: var(--contraste);
}
.liste_projets {
	display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gut);
}
.liste_projets a img {
	transition: transform 0.3s ease;
}
.liste_projets a:hover img {
	transform: scale(1.02);
}
@media print, screen and (max-width: 1440px) {
    .liste_projets {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media print, screen and (max-width: 1024px) {
    .liste_projets {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media print, screen and (max-width: 768px) {
    .liste_projets {
		grid-template-columns: 1fr;
	}
}

/* Galerie GSAP scroll horizontal */
.gallery-block.horizontal-scroll {
  overflow: hidden;
  position: relative;
  padding: 0;
  display: flex;
  align-items: center;
}
.gallery-horizontal-track {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: calc(var(--gut) / 2);
  height: 100%;
  will-change: transform;
}
.gallery-horizontal-slide {
  flex: 0 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-horizontal-slide img {
  height: 100%;
  width: auto;
  display: flex;
}
@media (max-width: 1024px) {
  .gallery-block.horizontal-scroll {
    overflow-x: auto;
    max-width: 100vw;
    padding-bottom: 1rem;
    min-height: 0;
    height: auto;
    align-items: stretch;
  }
  .gallery-horizontal-track {
	flex-direction: column;
  }
  .gallery-horizontal-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

.gallery-fullscreen-overlay {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,1);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.gallery-fullscreen-overlay img {
  height: 97vh;
  width: auto;
}

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