/* Couleurs */
:root {
  --color-blue-darker: #104168;
  --color-blue: #1665a5;
  --color-blue-lighter: #6d9ec6;
  --color-blue-very-light: #a9cbe7;
  --color-blue-logo: #2431c9;

  --body-bgd: #e1dede;
  --body-font-color: #333;
}

/* CSS reset */
*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

li {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%; /* CSS reset */
}

body {
  min-height: 100vh;
  background-color: white;
  font-family: "Cantarell", sans-serif;
  color: var(--body-font-color);
  position: relative;
  padding-top: 60px;
  line-height: 1.5; /* CSS reset */
  -webkit-font-smoothing: antialiased; /* CSS reset */
}

h1 {
  font-size: clamp(1.4rem, 0.8rem + 2.4vw, 2rem);
  font-size: clamp(1.4rem, 0.95rem + 1.8vw, 1.85rem);
  font-size: clamp(1.2rem, 0.55rem + 2.6vw, 1.85rem); /* 400 -> 800 */
  text-transform: uppercase;
  font-weight: 400;
  text-align: center;
  margin: 0;
  line-height: 3.7rem;
}
h2 {
  font-size: 1.6rem;
  text-transform: uppercase;
  font-weight: 400;
  text-align: center;

  padding: 1rem;
  width: fit-content;
  margin-inline: auto;
  display: block;
  position: relative;
}
h2 a {
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0.5rem;
  transition: border 0.2s ease-in-out;
  border: solid 1px transparent;
}
h2 a:hover {
  border: solid 1px #666;
}
/* h2::before,
h2::after {
  content: "";
  height: 1px;
  background-color: var(--body-font-color);
  width: 50%;
  position: absolute;
  top: 50%;
}
h2::before {
  left: 0;
  translate: -140%;
}
h2::after {
  right: 0;
  translate: 140%;
} */
h3 {
  font-size: 1.8rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 2rem;
}
a {
  color: inherit;
}
header h1 {
  z-index: 10;
  position: relative;
  color: #aaa;
}
header h2 {
  margin-top: 2rem;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  padding-block: 1rem;
  z-index: 10;
  background-color: white;
  width: 100%;
  transition: transform 0.3s ease;
}
header h1 a {
  text-decoration: none;
  transition: color 0.2s ease;
}
header h1 a:hover {
  color: #666;
}
header.hidden {
  transform: translateY(-100%);
}
header + h2 {
  margin-top: 1.5rem;
}
.center {
  text-align: center;
}
/***************/
/*** ACCUEIL ***/
/***************/

#page-home h1 {
  color: #333;
}
.accueil-image {
  position: relative;
  top: 0;
  padding-bottom: 2.5rem;
  width: 100%;
  height: 100vh; /* fallback */
  /*height: 100dvh;  si dispo */
  min-height: 600px;

  margin-inline: auto;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: block;
  overflow: hidden;
}
@media screen and (max-width: 550px) {
  .accueil-image {
    height: 100vh;
  }
}
.accueil-image figure {
  position: relative;
  display: flex; /* flexbox pour centrer */
  align-items: center; /* centre verticalement */
  justify-content: center; /* centre horizontalement */
  flex-direction: column;
  width: 100%; /* s’adapte à la largeur */
  height: 100%;
  padding-inline: 1rem;
  overflow: visible;
}
.accueil-image figure img {
  display: block;
  width: 100%; /* s’adapte à la largeur */
  height: 100%; /* garde les proportions */
  filter: blur(10px);
  transition: filter 0.5s ease-in;
  object-fit: cover;
}
.accueil-image img.loaded {
  filter: blur(0);
}
figure figcaption {
  position: absolute;
  bottom: -0.5rem;
  text-align: center;
  font-size: 0.85rem;
  padding-block: 0.65rem;
}

.accueil-categories h3 {
  padding-block: 0 0.8rem;
}
.accueil-categories > div {
  width: 340px;
  position: relative;
  overflow: hidden;
}
.button-categorie {
  border: solid 1px rgba(255, 255, 255, 1);
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  color: white;
  padding: 1rem 1.5rem;
  font-size: 1.5rem;
  transition: 0.3s ease-in-out;
  width: 180px;
}
.button-categorie:hover {
  background: rgba(0, 0, 0, 0.7);
}
.accueil-categories {
  max-width: none;
  margin: 3rem auto;
  position: relative;

  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  gap: 4rem;

  position: relative;
}

.accueil-categories a img {
  transition: 0.3s ease-in-out;
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
  width: 340px;
  aspect-ratio: 4 / 3;
}

.accueil-categories a:hover img {
  filter: brightness(0.7);
  transform: scale(1);
}

.accueil-categories button {
  /* position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;

  width: fit-content;

  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  color: white;
  padding-block: 1rem 2rem;
  font-size: 1.5rem;
  border: solid 2px transparent;
  transition: 0.2s ease-in-out;
  cursor: pointer; */
}
.accueil-categories button {
  position: absolute;
  bottom: 0;
  right: 0;

  width: fit-content;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem;
  font-size: 0.95rem;

  transition: 0.3s ease-in-out;
  cursor: pointer;
}
.accueil-categories a:hover button {
  font-size: 1rem;
}
.accueil-categories button {
  /* width: 100%;
  text-align: right;
  padding-right: 0.5rem;
  font-size: 0.95rem;
  background: none;
  border: solid 2px transparent;
  transition: 0.3s ease-in-out;
  cursor: pointer; */
}
/* .accueil-categories a:hover button {
  translate: 0 0.4rem;
} */
/* .accueil-categorie-rubriques figure figcaption {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;

  width: fit-content;
  height: fit-content;
  padding-inline: 2rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  color: white;

  font-size: 1.5rem;
  transition: 0.2s ease-in-out;
  cursor: pointer;
}
.accueil-categorie-rubriques figure figcaption {
  border: solid 2px transparent;
}

.accueil-categorie-rubriques a:hover figure figcaption {
  background: rgba(0, 0, 0, 0.3);
  border: solid 2px rgba(255, 255, 255, 0.3);
}
.a .accueil-categorie-rubriques a:hover figure figcaption,
.accueil-categorie a:hover button {
  background: rgba(64, 64, 64, 0);
}

.accueil-categorie-rubriques a:hover figure figcaption {
  border: solid 2px rgba(64, 64, 64, 0);
} */

/*****************************************************/
/*** PAGE RUBRIQUE Paintings, Sculptures, Drawings***/
/*****************************************************/
.categories {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  max-width: 1100px;
  margin-inline: auto;
  margin-block: 2rem;
}
.categories > div {
  position: relative;
  padding-bottom: 2rem;
}
.categories figure {
  width: 340px;
  aspect-ratio: 4 / 3;
  overflow: visible;
  position: relative;
}

.categories a img {
  transition: 0.3s ease-in-out;
  opacity: 1;
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.categories a:hover img {
  opacity: 1;
  filter: brightness(0.7);
}
.categories figure figcaption {
  position: absolute;
  bottom: -2.4rem;
  left: 50%;
  translate: -50%;
  margin: 0;

  width: 50%;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 1.2rem;
  color: #333;
  transition: 0.2s ease-in-out;
  cursor: pointer;
}

/*** PAGE EXHIBITIONS ***/

#exhibitions-list ul {
  padding-left: 2rem;
  width: fit-content;
  margin-inline: auto;
}
#exhibitions-list li {
  list-style-type: none;
  margin-block: 0.4rem;
  padding-left: 30px; /* marge à gauche pour tout le paragraphe */
  text-indent: -50px; /* décale la première ligne vers la gauche */
  margin-left: 50px;
  font-size: clamp(1rem, 0.8rem + 0.8vw, 1.2rem);
}
@media screen and (max-width: 600px) {
  #exhibitions-list li {
    text-indent: -42px;
  }
}
#exhibitions-list ul span {
  display: inline-block;
  margin-right: 2rem;
}

/*****************************************************/
/*** PAGE RUBRIQUE Paintings, Sculptures, Drawings***/
/*****************************************************/

body.page-categorie header + h2 {
  margin-top: 2.5rem;
}

/***************/
/*** GALERIE ***/
/***************/
.galerie {
  /* display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  margin: auto;
  max-width: min(98%, 1900px);
  gap: 5rem; */

  display: grid;
  grid-template-columns: 50% 50%;
  width: 100%; /* occupe toute la largeur */
}

.galerie > div {
  /* display: block;
  width: 45%;
  height: 100%;
  border: solid 0px red; */
  min-height: 85vh;
  padding: clamp(1rem, -0.8462rem + 4.9231vw, 5rem);
  border: solid 0px rgb(237, 228, 228);

  display: flex; /* on active flex dans chaque case */
  justify-content: center;
  align-items: center;
}

@media (max-width: 800px) {
  .galerie {
    grid-template-columns: 1fr; /* 1 colonne */
    gap: 1rem; /* optionnel : réduire l’espace entre les images */
  }
  .galerie > div {
    min-height: auto;
  }
}

.galerie-intro {
  margin: 1rem auto;
  padding-inline: 1rem;
  max-width: max(70%, 800px);
}
.galerie-intro p {
  text-indent: 1.5em;
  line-height: 1.5;
}
.galerie > div a {
  text-align: center;
  text-decoration: none;
  transition: text-decoration 0.2s ease-in-out;
  max-width: 500px;
}

.galerie img {
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;

  box-sizing: border-box;
  border: solid 0px transparent;
  display: block;
  transition: filter 0.2s ease-in-out;

  box-shadow: 0.4rem 0.4rem 0.6rem rgba(0, 0, 0, 0.75);
}
.galerie a:hover img {
  filter: brightness(0.75);
  border: solid 1px rgba(0, 0, 0, 0.25);
}
.galerie figcaption {
  padding: 0.6rem 0.5rem;
  position: relative;
  width: 100%;
  margin-inline: auto;
  overflow: hidden;
  color: #333;
}
.galerie figcaption strong {
  font-weight: 600;
}
.galerie figcaption:before {
  /* content: "";
  height: 1px;
  width: 0;
  position: absolute;
  bottom: 4px;
  left: 50%;
  translate: -50%;
  background-color: #bbb;
  transition: width 0.2s ease-in-out; */
}

/**************/
/*** FOOTER ***/
/**************/
footer {
  padding-block: 4rem 1rem;
  width: 95%;
  margin-inline: auto;
  font-size: clamp(0.85rem, 0.25rem + 2.4vw, 1rem);

  display: flex;
  justify-content: center;
  align-items: center;
}
@media screen and (max-width: 600px) {
  footer {
    padding-bottom: 4rem;
  }
}
footer > div {
  letter-spacing: -0.1ch;
  word-spacing: 0.1ch;
}
.VF {
  border: 1px solid #666;
  border-radius: 50%;
  vertical-align: middle;
  padding: 0px 1px 0px 4px;
  margin-bottom: 2px;
  width: 26px;
  height: 25px;
  text-decoration: none;
  display: inline-block;
  font-size: 0.85rem;
  transition: 0.2s ease-in-out;
}
.VF:hover {
  background-color: #666;
  color: white;
}

/*** FORMULAIRE ***/
.contact-form {
  margin-top: 2rem;
}
.contact-form .form-group {
  position: relative;
  margin-bottom: 0.5rem;
  margin-inline: auto;
  width: fit-content;
}
.contact-form .form-group label {
  position: absolute;
  top: 6px;
  left: 8px;
  color: #999;
  font-size: 0.95rem;
  font-family: "Work Sans", sans-serif;
  pointer-events: none;
  transition: all 0.2s ease-in-out;
}
.contact-form .form-group label span {
  font-size: 0.8rem;
}
/* Flottement du label si focus ou si valeur présente */
.contact-form .form-group input:focus + label,
.contact-form .form-group input:not(:placeholder-shown) + label,
.contact-form .form-group textarea:focus + label,
.contact-form .form-group textarea:not(:placeholder-shown) + label {
  top: 2px;
  left: 5px;
  font-size: 0.75rem;
  color: #777;
}
.contact-form p {
  text-align: center;
  line-height: 1.6;
}
.contact-form fieldset {
  border: none;
  max-width: 350px;
  margin: 0 auto;
  padding: 0;
  position: relative;
}

/* champ antispam */
input#remarque {
  margin: 0;
  padding: 0;
  z-index: -1;
  position: absolute;
  top: 0;
  height: 0;
  border: 0;
}
input#remarque {
  display: none;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="url"],
.contact-form input[type="number"],
.contact-form input[type="date"],
.contact-form select,
.contact-form textarea {
  width: 330px;
  border: 1px solid #bbb;
  background: #fff;
  margin: 0 0 8px;
  padding: 18px 10px 4px;
  border-radius: 3px;
  font-size: 1rem;
}

.contact-form label.date-input span {
  transform: translate(15px, 5px);
}
.contact-form label.date-input.active span {
  transform: translate(15px, 10px);
}

.contact-form textarea {
  min-height: 200px;
  resize: none;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 0;
  border: 2px solid dodgerblue;
}
.contact-form input::placeholder,
select {
  color: #555;
}
.contact-form input:focus::placeholder,
.contact-form textarea:focus::placeholder {
  color: #aaa;
}

.contact-form option {
  padding: 12px 0;
}
.contact-form select:invalid,
.contact-form select option[value=""],
.contact-form select:disabled,
.contact-form select:hidden {
  color: #aaa;
}
/*Added for browser compatibility*/
[hidden] {
  display: none;
}

.contact-form .form-group label.active span {
  top: -0.5rem;
  font-size: 0.7rem;
  color: #666;
  opacity: 1;
}

.contact-form select option:first-child {
  color: #aaa;
}

.contact-form input[type="submit"] {
  cursor: pointer;
  width: 330px;
  border: none;
  outline: 2px solid #bbb;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  margin-top: 0.5rem;
  padding: 0.75rem;
  font-size: 1.4rem;
  border-radius: 3px;
}
.contact-form input[type="submit"]:hover {
  outline: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.35);
  -webkit-transition: background 0.3s ease-in-out;
  -moz-transition: background 0.3s ease-in-out;
  transition: background-color 0.3s ease-in-out;
}
.contact-form input[type="submit"]:active {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.contact-form .check-studio {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  max-width: 160px;
}
.contact-form .check-studio span {
  position: relative;
  padding: 5px 10px;
}

.contact-form .g-recaptcha {
  margin: 10px auto;
  margin: left;
}
