/* 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;
}

@import url("https://fonts.googleapis.com/css2?family=Exo:ital,wght@0,100..900;1,100..900&family=Kosugi+Maru&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Oswald:wght@200..700&display=swap");

/* CSS reset */
*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
}

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--body-bgd);
  font-family: "Exo", sans-serif;
  color: #333;
  position: relative;
}
h1 {
  color: var(--color-blue);

  font-size: 2.5rem;
  text-transform: uppercase;
  font-style: italic;
  font-weight: 600;
  text-align: center;
}
h2 {
  color: var(--color-blue);
  font-size: clamp(1.8rem, 1.2rem + 2.6667vw, 2.2rem);
  text-align: center;
  font-weight: 200;
  padding-block: 2rem;
  margin-inline: 1rem;
}
h3 {
  color: rgb(159, 106, 27);
  font-size: 1.8rem;
  text-align: center;
  font-weight: 500;
  margin-block: 2rem 1rem;
}
header {
  position: relative;
  padding-bottom: 2rem;
  min-height: 370px;
}
.center {
  text-align: center;
}

.blurred-bg {
  background-image: url(photos/note-bleue-01.1200.webp);
  background-size: cover;
  background-position: center;

  width: 100%;
  height: 100%;
  position: absolute;
  margin: 0;
  padding: 0;
  animation: opacifier 2s 1s ease-in-out forwards;
}

header div.titre {
  /* margin-inline: auto; */
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 40%;
  left: 50%;
  translate: -50% -50%;
}
#body-home div.titre {
  top: 0;
  left: 0;
  translate: 0;
}
.lanotebleue {
  text-transform: uppercase;
  font-style: italic;
  font-family: "Exo", sans-serif;
  position: relative;
  width: fit-content;
}
h1.lanotebleue {
  margin-top: 3rem;
}
#body-home .lanotebleue {
  margin-top: 0.5rem;
  margin-left: 0.5rem;
}

.lanotebleue img {
  width: min(220px, 35vw);
  height: min(220px, 35vw);
  opacity: 0;
  filter: brightness(0) invert(1) drop-shadow(1px 1px rgba(0, 0, 0, 0.5));
  animation: blanchir 3s 1s ease-in-out forwards,
    appear 3s 1s ease-in-out forwards;
}
#body-home .lanotebleue img {
  animation: appear 3s 1s ease-in-out forwards;
}
h1.lanotebleue::before {
  content: "";
  background-image: url(images/deco-note-bleue.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: min(220px, 35vw);
  height: min(220px, 35vw);
  position: absolute;
  top: 0rem;
  left: 0rem;
  filter: brightness(0) invert(1) drop-shadow(1px 1px rgba(0, 0, 0, 0.5));
  transform: rotate(-180deg);
  opacity: 0;
  transition: 2s ease-in-out;
  animation: rotate 3s 1s ease-in-out forwards,
    blanchir 3s 1s ease-in-out forwards, appear 3s 1s ease-in-out forwards;
}
#body-home .lanotebleue::before {
  animation: rotate 3s 1s ease-in-out forwards,
    appear 3s 1s ease-in-out forwards;
  transform: rotate(-180deg);
}
@keyframes opacifier {
  from {
    filter: blur(0) brightness(1);
  }
  to {
    filter: blur(1px) brightness(0.5);
  }
}
@keyframes blanchir {
  from {
    filter: brightness(1) invert(0);
  }
  to {
    filter: brightness(0) invert(1);
  }
}

@keyframes rotate {
  from {
    transform: rotate(-180deg);
  }
  to {
    transform: rotate(0);
  }
}
@keyframes rotate-home {
  from {
    transform: rotate(-180deg) scale(150%);
  }
  to {
    transform: rotate(0) scale(150%);
  }
}
@keyframes translate {
  from {
    transform: translate(30%);
  }
  to {
    transform: translate(0);
  }
}
@keyframes appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* @keyframes dans-le-coin {
  from {
    top: 50%;
    left: 50%;
    translate: -50% -50%;
  }
  to {
    top: 0;
    left: 0;
    translate: 0;
  }
}
@keyframes plus-petit {
  from {
    transform: scale(150%);
  }
  to {
    transform: scale(100%);
  }
} */

header h2 {
  color: white;
  z-index: 10;
  position: relative;
  padding-block: 1rem 0;
  opacity: 0;
  animation: appear 3s 1s ease-in-out forwards;
  padding-top: 350px;
}

.dark-mode {
  background-color: var(--color-blue-darker);
  padding-block: 1rem;
}
.dark-mode h2 {
  color: var(--color-blue-very-light);
}
.dark-mode p {
  color: white;
}
/*** *** ***/
/*** MAIN ***/
/*** *** ***/
main {
  padding-block: 2rem 0;
}
.reservation {
  background-color: #6a6a6a;
  position: relative;
  text-align: center;
  width: fit-content;
  position: absolute;
  top: 15vh;
  right: 0;
  z-index: 1000;

  display: none;
}

/*** *** *** *** *** ***/
/*** PAGE D'ACCUEIL ***/
/*** *** *** *** *** ***/
#body-home .blurred-bg {
  display: none;
}
#body-home header {
  height: 100vh;
}
#body-home header div.titre {
  margin-top: 0rem;
  width: fit-content;
}
@media screen and (max-width: 450px) {
  #body-home header div.titre {
    top: 3rem;
  }
}

#body-home .lanotebleue {
  margin-top: 0rem;
}

.accueil-diapo {
  position: absolute;
  width: 100%;
  height: 100vh;
}
.accueil-diapo img {
  width: 100%;
  height: 100%;
  max-height: 100vh;
  object-fit: cover;
}
.accueil-diapo2 {
  position: relative;
  width: 100%;
  height: 75vh;
  margin-top: 4rem;
}
.accueil-diapo2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.texte {
  font-size: clamp(1.2rem, 0.9rem + 1.3333vw, 1.4rem);
  max-width: min(800px, 94%);
  text-align: justify;
  text-align-last: center;
  margin: 30px auto;
  background-color: rgba(116, 107, 36, 0.1);
  padding: 2rem 4rem;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
}
.texte ul {
  padding-left: 2rem;
  margin-block: 1rem;
  list-style-type: initial;
  list-style-position: outside;
}
.texte li {
  text-align: left;
  text-align-last: left;
  font-size: clamp(1rem, 0.6rem + 1.6vw, 1.2rem);
  margin-bottom: 0.35rem;
}
@media screen and (max-width: 500px) {
  .texte {
    text-align: left;
    text-align-last: left;
    padding: 1.5rem 1rem;
  }
}
.texte p:not(:first-of-type) {
  margin-top: 1rem;
}
.panneau-photos {
  position: relative;
  max-width: 98%;
  margin: 4rem auto 2rem;

  box-sizing: border-box;
  text-align: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.panneau-photos div {
  position: relative;
}
.panneau-photos > div {
  display: inline-block;
  max-width: calc(33.3% - 1rem);
  position: relative;
  height: 100%;
  overflow: hidden;
  vertical-align: middle;
  box-sizing: border-box;
  text-align: center;
  transition: all 0.4s;
  padding: 6px;
}
@media screen and (max-width: 1050px) {
  .panneau-photos {
    flex-direction: column;
    align-items: center;
  }
  .panneau-photos > div {
    max-width: 500px;
  }
}
.panneau-photos div img {
  width: 100%;
  height: auto;
  position: relative;
  display: block;
  max-height: 400px;
  margin: auto;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.35);
  transition: filter 0.3s ease-in-out;
}
.panneau-photos div:hover img {
  filter: brightness(0.6);
  cursor: pointer;
}
.panneau-photos > div h4 {
  position: relative;
  bottom: 0px;
  width: 96%;
  padding-block: 3%;
  z-index: 20;
  font-size: clamp(1rem, 0.7333rem + 1.0667vw, 1.4rem);
  margin: 0 auto;
  transition: all 0.6s;
  z-index: 0;
  font-weight: 400;
  color: var(--color-blue-darker);
  text-wrap: balance;
}
.panneau-photos > div h4 a {
  text-decoration: none;
  color: inherit;
}
.panneau-photos > div:hover h4 {
  transform: translate(0, -150%);
  color: white !important;
}
.panneau-photos > div button {
  color: white;
  border: 1px solid white;
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 0.5rem;
  padding: 1rem;
  font-size: 1.25rem;
  font-weight: 300;

  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;

  transition: opacity 0.3s ease-in-out;
  cursor: pointer;
}
.panneau-photos > div:hover button {
  opacity: 0;
}
@media screen and (max-width: 950px) {
  .panneau-photos > div {
    width: auto;
  }
}

/*** MAISON ***/

#body-maison main {
  padding-bottom: 2rem;
}

/*** Description détaillée ***/
/*** MAISON ***/
details,
summary {
  width: fit-content;
  margin-inline: auto;
  color: white;
  background-color: var(--color-blue);
  border-radius: 0.5rem;
}
details {
  cursor: pointer;
  transition: transform 0.4s ease-out;
  width: min(800px, 94%);
}
summary {
  padding: 0.8rem 1.4rem;
  font-size: clamp(1.1rem, 2.7979rem + -5.4333vw, 0.08125rem);
  line-height: 1.8;
  text-align: center;
  list-style: none;
  width: 100%;
}
summary:hover {
  background-color: var(--color-blue-darker);
}
details p {
  cursor: auto;
  font-size: clamp(1.2rem, 0.9rem + 1.3333vw, 1.4rem);
  text-align: center;
  line-height: 1.5;
  padding-inline: 1rem;
}
details ul {
  cursor: auto;
  font-size: 1.2rem;
  color: white;
  padding-inline: 3rem 2rem;
  margin-block: 1rem;
  list-style-position: outside;
}

details li {
  text-align: left;
  text-align-last: left;
  font-size: clamp(1rem, 0.6rem + 1.6vw, 1.2rem);
  margin-bottom: 0.35rem;
}
details li::marker {
  color: white;
}
/* Animer et styliser le twist */

details summary::before {
  content: "🏠";
  display: inline-block;
  margin-right: 0.8rem;
  border-radius: 6px;
  transition: transform 0.4s ease-out;
  font-size: 1.6rem;
}
details summary:hover:before {
  transform: scale(1.5) rotate(0);
}

details[open] summary::before {
  transform: rotate(360deg) scale(1.4);
  margin-right: 0.8rem;
}
details[open] {
  max-height: 2000px;
  margin-bottom: 10px;

  padding-bottom: 1.5rem;
}

details[open] summary {
  width: 100%;
}

/** GALERIE **/
.galerie {
  display: flex;
  justify-content: center;
  margin: auto;
  flex-wrap: wrap;
  max-width: 96%;
  gap: 0.5rem;
}
.galerie div {
  max-width: 450px;
  width: 100%;
  text-align: center;
}

.galerie div img {
  aspect-ratio: 3 / 2;
  max-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  height: auto;
  transition: filter 0.3s, border 0.3s;
  box-sizing: border-box;
  border: solid 0px transparent;
  display: block;
  border-radius: 6px;
  transition: filter 0.2s ease-in-out;
}
.galerie div a:hover img {
  filter: brightness(0.8);
  border: solid 1px rgba(0, 0, 0, 0.25);
}

/*** TARIFS ***/

.tableau-tarifs {
  margin: 0 auto 30px;
  width: auto !important;
  border-collapse: separate;
  border-color: var(--color-blue-darker);
  border-spacing: 1px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 5px 5px 15px 0 rgba(0, 0, 0, 0.4);

  border-collapse: separate;
  border-spacing: 1px;
}
.tableau-tarifs tr:nth-child(2n + 1) {
  background-color: var(--jaune-tres-clair);
  background-color: #fffeed;
}
.tableau-tarifs tr:nth-child(2n) {
  background-color: white;
  background-color: #fffeed;
}
.tableau-tarifs th {
  padding: 1rem;
  text-align: center;
  width: auto !important;
  height: auto !important;
  text-align: center !important;
  background-color: var(--color-blue-darker);
  color: white;
  border-color: var(--color-blue-darker);
}
.tableau-tarifs th p {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
  margin: 0 !important;
  text-align: center !important;
}
.tableau-tarifs th span {
  font-size: 1rem;
  font-weight: 400;
}
.tableau-tarifs td {
  padding-block: 2rem;
  font-size: 1.1rem;
  text-align: center !important;
  border-color: var(--color-blue-darker);
  color: #555;
  padding: 1rem;
}

/*** CONDITIONS ***/
.conditions {
  font-size: 1.1rem;
  max-width: min(650px, 90%);
  margin-inline: auto;
  padding-block: 1rem 2rem;
}
.conditions li {
  margin-block: 0.5rem;
  list-style: disc;
}
li::marker {
  color: var(--color-blue-darker);
}

/*** DECOUVRIR ***/
.activites {
  font-size: 1.1rem;
  max-width: min(650px, 96%);
  margin-inline: auto;
  padding-bottom: 2rem;
}
.activites li {
  margin-block: 0.5rem;
  list-style: disc;
}
.activites li::marker {
  color: var(--color-blue-darker);
}

/*** *** *** *** ***/
/*** FORMULAIRE ***/
/*** *** *** *** ***/
#body-tarifs form {
  width: auto;
  max-width: 800px;
  margin: 10px auto 50px;
  padding: 0;
  position: relative;
}
#reservation p {
  text-align: center;
  line-height: 1.6;
}
#body-tarifs form fieldset {
  border: none;
  max-width: 350px;
  margin: 0 auto;
  padding: 0;
  position: relative;
}
#body-tarifs form label {
  position: relative;
  transition: 0.2s ease-in-out;
  display: block;
}
#body-tarifs form label span {
  position: absolute;
  top: 0;
  display: block;
  font-size: 1rem;
  line-height: 1rem;
  transform: translate(12px, 10px);
  transition: 0.2s ease-in-out;
  opacity: 0.75;
}

/* champ antispam */
input#remarque {
  margin: 0;
  padding: 0;
  z-index: -1;
  position: absolute;
  top: 0;
  height: 0;
  border: 0;
}
input#remarque {
  display: none;
}

#body-tarifs form input[type="text"],
#body-tarifs form input[type="email"],
#body-tarifs form input[type="tel"],
#body-tarifs form input[type="url"],
#body-tarifs form input[type="number"],
#body-tarifs form input[type="date"],
#body-tarifs form select,
#body-tarifs form textarea {
  width: 330px;
  border: 1px solid #444;
  background: #fff;
  margin: 0 0 8px;
  padding: 18px 10px 4px;
  border-radius: 6px;
  font-size: 1rem;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

#body-tarifs form label.date-input span {
  transform: translate(15px, 5px);
}
#body-tarifs form label.date-input.active span {
  transform: translate(15px, 10px);
}

#body-tarifs form textarea {
  min-height: 200px;
  resize: none;
  font-family: inherit;
}

#body-tarifs form input:focus,
#body-tarifs form textarea:focus {
  outline: 0;
  border: 1px solid dodgerblue;
}
#body-tarifs form input::placeholder,
select {
  color: #555;
}
#body-tarifs form input:focus::placeholder,
#body-tarifs form textarea:focus::placeholder {
  color: #aaa;
}

#body-tarifs form option {
  padding: 12px 0;
}
#body-tarifs form select:invalid,
#body-tarifs form select option[value=""],
#body-tarifs form select:disabled,
#body-tarifs form select:hidden {
  color: #aaa;
}
/*Added for browser compatibility*/
[hidden] {
  display: none;
}

#body-tarifsn form label.active {
}

#body-tarifs form label.active span {
  top: -0.5rem;
  font-size: 0.8rem;
  color: #666;
  opacity: 1;
}

#body-tarifs form select option:first-child {
  color: #aaa;
}

#body-tarifs form input[type="submit"] {
  cursor: pointer;
  width: 330px;
  border: none;
  background: var(--color-blue-lighter);
  color: #fff;
  padding: 10px;
  font-size: 1.4rem;
  border-radius: 6px;
}
#body-tarifs form input[type="submit"]:hover {
  background: var(--color-blue);
  -webkit-transition: background 0.3s ease-in-out;
  -moz-transition: background 0.3s ease-in-out;
  transition: background-color 0.3s ease-in-out;
}
#body-tarifs form input[type="submit"]:active {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

#body-tarifs form .check-studio {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  max-width: 160px;
}
#body-tarifs form .check-studio span {
  position: relative;
  padding: 5px 10px;
}

#body-tarifs form .g-recaptcha {
  margin: 10px auto;
  margin: left;
}

/**** FOOTER ***/
footer {
  width: 100%;
  background-color: var(--color-blue-darker);
  color: #fff;
  margin: 0 auto;
  position: relative;
  padding-top: 2rem;
}
footer > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 1200px;
  width: 90%;
  margin: auto;
  gap: 1.5rem;
}
footer > div > div {
  min-width: 310px;
  max-width: 350px;
}
@media screen and (max-width: 950px) {
  footer > div {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
}
footer h4 {
  font-size: 1.6rem;
  font-weight: 300;
  text-transform: none;
  position: relative;
}

footer h4.lanotebleue::before {
  content: "";
  background-image: url(images/deco-note-bleue.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 80px;
  height: 80px;
  position: absolute;
  top: -20px;
  left: -35px;
  filter: brightness(0) invert(1) opacity(1);
}
h4.lanotebleue + p {
  /* styles ici */
  padding-left: 3rem;
  margin-top: 0.5rem;
}
footer p {
  margin-block: 0.5rem;
  font-size: 1rem;
  padding-left: 0rem;
}
footer a {
  display: block;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  color: inherit;
  font-size: clamp(1.1rem, 0.7rem + 1.6vw, 1.3rem);
  text-underline-offset: 4px;
}
footer a.lang {
  display: inline-block;
}
footer a.lang img {
  width: 21px;
  height: auto;
  vertical-align: middle;
}
footer .contact a {
  text-decoration: none;
}
footer .contact a:hover {
  text-decoration: underline;
}

.basdepage {
  padding-block: 2rem 1rem;
  font-size: 1rem;
  text-align: center;
}
.VF {
  border: 1px solid #f1f1f1;
  border-radius: 50%;
  vertical-align: middle;
  padding: 8px 10px 8px 7px;
  width: 34px;
  height: 34px;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
}
.VF:hover {
  background: rgba(0, 0, 0, 0.1);
}

/*** ***** ***/
/*** MODIF ***/
/*** ***** ***/

body.modif main {
}
body.modif header {
  min-height: auto;
  padding-top: 2rem;
}
body.modif form {
  margin-inline: auto;
  max-width: 1000px;
}

body.modif input[type="submit"] {
  padding: 4px 8px;
  font-size: 1.3rem;
  margin: 6px auto;
}
body.modif form > p {
  margin: 30px 0;
}
.modif-menu {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
}
.modif-menu a {
  color: salmon;
}
.form-group {
  margin-bottom: 3rem;
  position: relative;
}
.form-group > div {
  margin-top: 5px;
}
.lang-en {
  display: none;
}
.language-switch-fr {
  position: absolute;
  top: -26px;
  right: 32px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 24px;
}
.language-switch-en {
  position: absolute;
  top: -26px;
  right: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 24px;
  filter: grayscale(100%);
}
