@charset "utf-8";

:root {
  --rose: #f979b0;
  --blanc: #fff;
  --vert: #06864f;
  --bleu: #5271D1;
  --noir: #000;
  --infos-max-width: 42rem;
}

@font-face {
  font-family: "FluxischElse";
  font-weight: light;
  font-style: normal;
  src: url("../fonts/FluxischElse-Light.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "FluxischElse";
  font-weight: 400;
  font-style: normal;
  src: url("../fonts/FluxischElse-Regular.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "FluxischElse";
  font-weight: bold;
  font-style: normal;
  src: url("../fonts/FluxischElse-Bold.woff") format("woff");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html, body {
  padding: 0;
  margin: 0;
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  font-size: 100%;
  overflow: hidden;
}
body {
  background: var(--background, var(--bleu));
  color: var(--noir);
  font-family: "FluxischElse", system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
main {
  overflow: hidden;
  display: flex;
}
h1, h2, h3 {
  font-weight: normal;
  margin: 0;
}
h1, #toggle {
  font-size: 1rem;
  font-weight: 500;
  padding-bottom: 1.333rem;
}
h2 {
  display: inline-block;
  font-size: 1.5rem;
  line-height: 1.125;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 1em;
  max-width: calc(100% - 144px);
}
a {
  color: currentColor;
  text-decoration: none;
}
ul {
  padding: 0;
}
li {
  list-style: none;
}
sup {
  line-height: 0;
  position: relative;
  top: 0.1em;
}
figure {
  margin: 0;
  padding: 0;
}
::selection {
  background: var(--noir);
  color: var(--blanc);
}


/* Utilities */

.nnbsp {
  display: inline-block;
  width: 0.25ch;
  white-space: nowrap;
}
[hidden], .hidden {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.mt-3 {
  margin-top: 3rem;
}
[aria-hidden] {
  user-select: none;
}


/* Buttons */

button {
  padding: .2em .333em;
  text-align: center;
  border: 1.5px solid var(--noir);
  background: white;
  color: var(--noir);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  border-radius: 1.5px;
  user-select: none;
  cursor: pointer;
}
#toggle {
  position: fixed;
  top: 2rem;
  left: 2rem;
  padding: 0.25rem 0.5rem 0.35rem;
  cursor: help;
  z-index: 10;
}
#toggle[aria-expanded="true"] {
  cursor: pointer;
}
#toggle[aria-expanded="false"] + main #infos,
#toggle[aria-expanded="true"] + main #slides .carte-de-visite {
  display: none;
}
#close {
  position: fixed;
  top: 1.5rem;
  left: calc(min(100vw, var(--infos-max-width)) - 5vw - 1.5rem);
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  display: grid;
  place-items: center;
  z-index: 12;
}


/* Carte de visite */

.carte-de-visite {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.6666rem;
  position: absolute;
  aspect-ratio: 88/55;
  width: clamp(20rem, 50vw, 22.5rem);
  height: auto;
  background-color: var(--rose);
  line-height: 1.333;
  cursor: grab;
}
.carte-de-visite:active {
  cursor: grabbing;
}
.carte-de-visite p,
.carte-de-visite .name {
  font-size: 1.25rem;
  margin: 0;
  font-size: 1.25rem;
}
#verso {
  top: 15%;
  left: calc(25% - 1.5cm);
  padding: 1rem;
  transform: rotate(-7.5deg);
  z-index: 3;
}
#recto {
  top: 50%;
  left: 10%;
  transform: rotate(15deg);
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}
[data-page="prendresoin"] #recto {
  top: 15%;
  left: -1rem;
  display: none;
}
[data-page="prendresoin"] #verso {
  top: calc(50% - 10rem);
  left: calc(50% - 7rem);
}
#m {
  width: 160px;
  height: 160px;
  background-color: var(--rose);
  background-image: url("../media/logo_margotcannizzolazaro_transp.gif");
  background-repeat: no-repeat;
  background-size: cover;
  mix-blend-mode: darken;
  cursor: help;
}

/* Portfolio */

#portfolio {
  position: fixed;
  top: 20%;
  right: calc(15% - 20rem);
  min-width: 10.5cm;
  width: 70vw;
  max-width: 21cm;
  min-height: 7.425cm;
  height: 49.5vw;
  max-height: 14.85cm;
  background: var(--blanc);
  font-size: 1.5rem;
  line-height: 1.333;
  transform-origin: center;
  will-change: transform;
  animation: shake 4s cubic-bezier(.36,.07,.19,.97) 2s infinite both;
  cursor: pointer;
  z-index: 1;
}
#portfolio:hover {
  animation: shakeHover 1s cubic-bezier(.36,.07,.19,.97) 0s 1;
}
#portfolio figure {
  width: 100%;
  margin: 0;
}
#portfolio figure img {
  width: 100%;
  height: 70.72691552%;
  object-fit: contain;
}
@media (max-width: 47.9375rem) {
  #portfolio {
    display: none
  }
}


/* Pochette */

#pochette {
  display: block;
  position: fixed;
  top: 28vw;
  left: calc(45vw + 3.5cm);
  transform: rotate(-15deg);
  min-width: 29.7cm;
  width: 100vw;
  max-width: 42cm;
  min-height: var(--infos-max-width);
  height: 70vw;
  max-height: 29.7cm;
  background-color: var(--vert);
  background-image: url("../media/annonay.jpg");
  background-image: url("../media/annonay.svg");
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 5;
  border-bottom: 70px solid black;
}
#pochette:before,
#pochette:after {
  content: " ";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  position: absolute;
  top: 0;
  z-index: 6;
}
#pochette:before {
  border-width: 3cm 3cm 0 0;
  border-color: black transparent transparent transparent;
  left: 0;
}
#pochette:after {
  border-width: 0 3cm 3cm 0;
  border-color: transparent black transparent transparent;
  right: 0;
}


/* Infos */

#infos {
  position: relative;
  z-index: 11;
  margin: 0;
  padding: 0 5vw 2rem;
  width: 100%;
  max-width: var(--infos-max-width);
  height: 100vh;
  height: 100dvh;
  max-height: unset;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--blanc);
  color: var(--noir);
  font-size: 0.875rem;
  line-height: 1.5;
  outline: none;
  border: none;
  scrollbar-color: rgba(0, 0, 0, 1) transparent;
  scroll-padding-top: 2rem;
}
#infos hgroup {
  display: flex;
  flex-direction: column;
  font-size: 2.25rem;
  line-height: 1.125;
  padding-top: 1.5rem;
}
#infos hgroup a {
  text-decoration: none;
}
#infos h1 {
  font-size: inherit;
  font-weight: bold;
  padding-bottom: 0;
}
#infos hgroup > p {
  margin: 0;
  letter-spacing: -.02em;
}
#infos nav {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--blanc);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em .75em;
  padding-top: 1.25rem;
  padding-right: 2rem;
  margin-bottom: 6rem;
}
#infos p,
#infos ul {
  margin: 0;
  max-width: 36rem;
}
#infos .intro {
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1.25;
  margin-top: 0;
}
#infos h2,
#infos h3 {
  font-size: inherit;
  font-weight: bold;
  margin-bottom: 0;
}
#infos h2 {
  font-size: 1.5rem;
  padding-top: 2.5em;
}
#infos h3 {
  margin-top: 1lh;
}
#infos h3 + p {
  margin-top: 0;
}
#infos ul {
  margin-bottom: 1.5em;
  position: relative;
}
#infos ul > li {
  padding-left: 1.5em;
}
#infos ul > li:before {
  content: "";
  color: transparent;
  position: absolute;
  left: 0;
  margin-top: 0.3em;
  width: 1em;
  height: 1em;
  background-image: url("data:image/svg+xml,%3Csvg width='100%' height='100%' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath d='M15.0378 6.34317L13.6269 7.76069L16.8972 11.0157L3.29211 11.0293L3.29413 13.0293L16.8619 13.0157L13.6467 16.2459L15.0643 17.6568L20.7079 11.9868L15.0378 6.34317Z' fill='currentColor' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
}
#infos p {
  font-size: inherit;
  margin-top: 1.25em;
}
#infos p:first-child {
  margin-top: 0;
}
#infos > *:last-child {
  margin-bottom: 3rem;
}
#infos img {
  max-width: 100%;
  height: auto;
  margin-block: .5em;
}
#infos address {
  margin-bottom: 3rem;
}
#infos a {
  text-decoration-thickness: 1.5px;
  text-decoration: underline;
  text-underline-offset: .375em;
}
.link-external::after,
#infos a[href*="//"]:not([href*="margotcannizzolazaro.fr"]):after {
  content: "" / "Lien externe";
  display: inline-block;
  width: 1em;
  height: 1em;
  background-image: url("data:image/svg+xml,%3Csvg width='100%' height='100%' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath d='M10.5253 5.49475L10.5206 7.49475L15.0782 7.50541L5.47473 17.0896L6.88752 18.5052L16.5173 8.89479L16.5065 13.5088L18.5065 13.5134L18.5253 5.51345L10.5253 5.49475Z' fill='currentColor' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  position: relative;
  top: .25em;
}

details {
  margin-bottom: 1em;
  font-weight: light;
  font-size: smaller;
}
summary {
  cursor: pointer;
  font-weight: normal;
  user-select: none;
}
summary + p {
  margin-top: .25em !important;
}

small {
  display: inline-block;
  line-height: 1.5;
}

table {
  margin-block: 2lh;
  border-collapse: collapse;
  font-size: smaller;
  width: 100%;
  max-width: 36rem;
}
col.tarifs {
  min-width: min(15vw, 8.25rem);
}
tr > *:nth-child(3) {
  padding-right: 0;
}
thead tr > * {
  border-top: 1px solid;
}
tbody th {
  font-weight: 400;
}
tr > * {
  vertical-align: top;
  text-align: left;
  padding: .25em 1em .25em 0;
  border-bottom: 1px solid;
}

span[title] {
  cursor: help;
  border-bottom: 1px dotted;
}


address {
  margin: 1rem 0 0;
  font-size: smaller;
  font-style: normal;
}

.icon {
  display: inline-block;
  width: 2rem;
}


/* Slides */
#slides {
  --swiper-theme-color: white;
  --swiper-pagination-bottom: 1rem;
  --caption-padding: 1rem;
  --caption-font-size: .875rem;
  --caption-line-height: 1.25;
  container: swiper / inline-size;
  position: relative;
  flex: 1;
  overflow: hidden;
  width: 100%;
  height: 100%;
}
.swiper-slide {
  width: 100% !important;
  height: 100vh;
  height: 100dvh;
  background: var(--slide-color, var(--bleu));
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.swiper-slide:not(.swiper-slide-visible) {
  visibility: hidden;
}
.swiper-slide figure {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  background: var(--noir);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.swiper-slide img {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  max-height: max(100cqw, 50vh);
  object-fit: cover;
  object-position: var(--object-position, center);
}
.swiper-slide figcaption {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  z-index: 10;
  flex: 1;
  height: fit-content;
  font-size: var(--caption-font-size);
  line-height: var(--caption-line-height);
  text-align: right;
  background: var(--slide-color, var(--bleu));
  padding: var(--caption-padding);
  padding-left: 6rem;
  text-wrap: balance;
}
.swiper-slide figcaption a {
  text-decoration-thickness: 1.5px;
  text-decoration: underline;
  text-underline-offset: .375em;
}
.swiper-slide.bleu {
  --slide-color: var(--bleu);
}
.swiper-slide.rose {
  --slide-color: var(--rose);
}
.swiper-slide.vert {
  --slide-color: var(--vert);
}
.swiper-pagination-fraction {
  width: 5rem;
  padding-left: var(--caption-padding);
  text-align: left;
  font-size: var(--caption-font-size);
  line-height: var(--caption-line-height);
}


/* Image comparison */
.image-comparison {
  --slider-line-color: var(--blanc, #fff);
  --slider-thumb-color: var(--blanc, #fff); /* White color for slider thumb */
  --slider-thumb-border-color: var(--blanc, #fff); /* Light gray border color for slider thumb */
  --slider-thumb-hover-color: var(--slide-color, var(--bleu)); /* Highlight color for slider hover and drag state */
  --slider-shadow-color: rgba(0, 0, 0, 0); /* Shadow color for slider thumb */
  --slider-line-shadow-color: rgba(0, 0, 0, 0); /* Shadow color for slider line */
  position: relative;
  margin: 0 auto;
  overflow: hidden;
}
.image-container {
  position: relative;
}
.image-container img {
  width: 100%;
  height: 100%;
  max-height: max(min(100cqw, 100vh - 4.5rem), 50vh);
  object-fit: cover;
  display: block;
}
img.before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom:0;
  clip-path: inset(0 50% 0 0);
  z-index: 1;
}
img.after {
  position: relative;
  z-index: 0;
}
.slider-line {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 2px;
  background-color: var(--slider-line-color);
  z-index: 2;
  transform: translateX(-1px);
  box-shadow: 0 0 10px var(--slider-line-shadow-color);
}
.slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--slider-thumb-color);
  border: 3px solid var(--slider-thumb-border-color);
  box-shadow: 0 0 10px var(--slider-shadow-color);
  transition: background-color 0.3s ease;
}
.slider::-webkit-slider-thumb:active,
.slider::-webkit-slider-thumb:hover {
  background-color: var(--slider-thumb-hover-color);
}
.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--slider-thumb-color);
  border: 3px solid var(--slider-thumb-border-color);
  box-shadow: 0 0 10px var(--slider-shadow-color);
  transition: background-color 0.3s ease;
}
.slider::-moz-range-thumb:active,
.slider::-moz-range-thumb:hover {
  background-color: var(--slider-thumb-hover-color);
}
.slider {
  position: absolute;
  left: -12px;
  right: -12px;
  top: 50%;
  margin-top: -10px; /* Half the height of the slider thumb */
  appearance: none;
  background: transparent;
  cursor: ew-resize;
  z-index: 11; /* Ensure the slider thumb is on top */
}


/* Hover */

@media (hover: hover) {
  button:hover {
    background: var(--noir);
    color: white;
  }
  #infos a:hover {
    text-decoration-color: transparent;
  }
}


/* Media queries */

@media (min-width: 20rem) { /* >= 320px */
  #toggle {
    font-size: 5.4vw;
  }
  #verso {
    font-size: 3.6vw;
    padding: 5.4vw;
  }
  #infos {
    font-size: 4.428vw;
  }
}

@media (min-width: 28rem) { /* >= 448px */
  #toggle {
    font-size: 1.5rem;
  }
  #verso {
    font-size: 1rem;
    padding: 1.5rem;
  }
  #infos {
    font-size: 1.125rem;
    padding: 0 2rem 1.75rem;
  }
  #infos .intro {
    font-size: 1.5rem;
  }
  #close {
    left: calc(min(100vw, var(--infos-max-width)) - 2rem - 1.5rem);
  }
}

@media (min-width: 80rem) { /* >= 1280px */
  #pochette:before {
    border-width: 10vw 10vw 0 0;
  }
  #pochette:after {
    border-width: 0 10vw 10vw 0;
  }
  [data-page="prendresoin"] #recto {
    display: flex;
  }
  [data-page="prendresoin"] #verso {
    top: 50%;
    left: 33%;
  }
}

@media (min-width: 100rem) { /* >= 1600px */
  #pochette:before {
    border-width: 4.25cm 4.25cm 0 0;
  }
  #pochette:after {
    border-width: 0 4.25cm 4.25cm 0;
  }
}


/* Animation */

@keyframes shake {
  4%, 8%, 12%, 16%, 20% {
    transform: rotate(-0.5deg);
  }
  6%, 10%, 14%, 18% {
    transform: rotate(-1.5deg);
  }
  0%, 22% {
    transform: rotate(0deg);
  }
}
@keyframes shakeHover {
  16%, 32%, 48%, 64%, 80% {
    transform: rotate(-0.5deg);
  }
  24%, 40%, 56%, 72% {
    transform: rotate(-1.5deg);
  }
  0%, 88% {
    transform: rotate(0deg);
  }
}

