/**** Tag selectors and root ****/
:root {
  --cannelle: #c85a1b;
  --clementine: #f6e3ce;
  --lin: #eae9ea;
  --verre-eau: #d8e2de;

  --accent: var(--cannelle);

  --text: var(--cannelle);
  --background: var(--lin);

  --font-size-xxl: clamp(28px, 12vW, 100px);
  --font-size-xl: clamp(24px, 7vw, 78px);
  --font-size-l: clamp(20px, 5vh, 62px);
  --font-size-m: clamp(16px, 3vh, 54px);
  --font-size-s: clamp(16px, 2vh, 48px);

  font-display: swap;
  font-family: "Raleway", Arial, Helvetica, sans-serif;
  font-size: 16px;
  background-color: var(--background);
  color: var(--text);
}

body {
  margin: 0px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-display: swap;
  font-family: "Ubuntu", Arial, Helvetica, sans-serif;
}

h1 {
  font-size: var(--font-size-xl);
  font-weight: 900;
}

h2 {
  font-size: var(--font-size-l);
  font-weight: 900;
  text-align: start;
}

h3 {
  font-size: var(--font-size-m);
  font-weight: 900;
  text-align: start;
}

a {
  color: var(--accent);
  font-weight: bold;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

i {
  font-style: normal;
}

blockquote {
  font-size: var(--font-size-s);
  font-weight: 500;
  justify-content: center;
  text-align: center;
  padding: 0 14vw;
}

blockquote::before {
  content: '«';
}

blockquote::after {
  content: '»';
  align-self: end;
}

@media (max-width:768px) {
  blockquote {
    padding: 0;
  }
}

time {
  font-weight: bold;
}

cite {
  text-align: center;
  font-style: normal;
}

/**** Header and footer layout ****/

header {
  display: flex;
  margin: auto;
  justify-content: center;
  align-items: center;
  padding: 0 24px;
  height: 128px;
  flex-wrap: wrap;
}

header>div>p {
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

header>div:first-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  flex-grow: 0;
}

header nav>ul {
  flex-wrap: wrap;
  display: flex;
  gap: 8px;
  list-style-type: none;
  text-wrap: nowrap;
}

header>nav>ul>li:nth-child(n + 2):before {
  font-family: "Font Awesome 5 Free";
  font-weight: 600;
  content: '\f22d';
  margin-right: 8px;
}

/* Hamburger menu styles */
#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--cannelle);
}

.menu-icon::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: '\f0c9';
}

@media (max-width:1366px) {
  header {
    margin: 0;
    position: relative;
    flex-direction: row;
    height: auto;
    padding: 12px 24px;
    justify-content: space-between;
    align-self: stretch;
  }

  header>div>p {
    display: none;
  }

  .menu-icon {
    display: block;
  }

  header nav {
    z-index: 100;
    padding: 12px;
    background: var(--lin);
    position: absolute;
    top: 64px;
    right: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  #menu-toggle:checked~nav {
    max-height: 500px;
  }

  header nav>ul {
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 12px 0;
  }

  header nav>ul>li {
    width: 100%;
    padding: 8px 0;
  }

  header>nav>ul>li:nth-child(n + 2):before {
    content: none;
  }
}

footer {
  width: 100vw;
  height: 128px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-wrap: nowrap;
}

footer>* {
  display: block;
}


/**** Utility styles ****/

*:has(>.pvk-figure) {
  display: flex;
  align-items: center;
  justify-content: stretch;
}

.pvk-figure {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.pvk-figure>.text {
  font-weight: bold;
  padding: 12px;
  text-align: center;
}

.pvk-figure>:not(.text) {
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pvk-figure>:not(.text)::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 50px;
}

.pvk-figure>div:nth-child(1) {
  grid-row: 1;
  grid-column: 3 / span 2;
  border-bottom: 1px solid var(--cannelle);
}


.pvk-figure>div:nth-child(1)::before {
  content: "Pitta";
}

.pvk-figure>div:nth-child(2)::before {
  content: "\f5d2";
}

.pvk-figure>div:nth-child(3)::before {
  content: "\f72e";
}

.pvk-figure>div:nth-child(4)::before {
  content: "\f06d";
}

.pvk-figure>div:nth-child(5)::before {
  content: "\f773";
}

.pvk-figure>div:nth-child(6)::before {
  content: "\f06c";
}

.pvk-figure>div:nth-child(7) {
  grid-row: 3;
  grid-column: 1 / span 2;
  border-top: 1px solid var(--cannelle);
}

.pvk-figure>div:nth-child(7)::before {
  content: "Vatta";
}

.pvk-figure>div:nth-child(8) {
  grid-row: 3;
  grid-column: 4 / span 2;
  border-top: 1px solid var(--cannelle);
}

.pvk-figure>div:nth-child(8)::before {
  content: "Kapha";
}



.verre-eau {
  color: var(--cannelle);
  background-color: var(--verre-eau);
}

.clementine {
  color: var(--cannelle);
  background-color: var(--clementine);
}

.cannelle {
  color: var(--lin);
  background-color: var(--cannelle);
}

.icn::before,
.icn-circle::before {
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 900;
}

.icn.facebook::before {
  content: '\f082';
  font-family: "Font Awesome 5 Brands";
}

.icn.instagram::before {
  content: '\f16d';
  font-family: "Font Awesome 5 Brands";
}

.icn.linkedin::before {
  content: '\f08c';
  font-family: "Font Awesome 5 Brands";
}

.icn.child::before {
  content: '\f1ae'
}

.icn.spa::before {
  content: '\f5bb'
}

.icn.home::before {
  content: '\f015'
}

.icn.hands-helping::before {
  content: '\f4c4'
}

.icn-circle.category::before {
  content: '\f292';
}

.icn-circle.ayurveda::before {
  content: '\f4d8';
}

.icn-circle.jyotish::before {
  content: '\f223';
}

.icn-circle.yoga::before {
  content: '\f679';
}

.icn-circle.meditation::before {
  content: '\f5dc';
}

.category {
  text-transform: uppercase;
}

.cta-list {
  display: flex;
  list-style-type: none;
  flex-direction: column;
  margin: 24px 0;
  padding: 0;
}

.cta {
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  display: inline-block;
  width: fit-content;
  margin: 12px 0;
}

.cta::before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease-in-out;
}

.cta::after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: ' \f061';
}

.cta:hover {
  text-decoration: none;
}

.cta:hover::before {
  width: 100%;
}

a.icn-circle {
  text-decoration: none;
}

a.icn-circle:hover::before {
  background-color: var(--cannelle);
  color: var(--clementine);
}

a.icn-circle::before {
  transition: all 0.5s;
}

.icn-circle::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  border: 1px solid var(--cannelle);
  padding: 0.5em;
  box-sizing: content-box;
}

h1.icn-circle,
h2.icn-circle {
  display: flex;
  flex-direction: column;
  gap: 2vw;
}

.parallax-img {
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

@media(max-width: 1024px) {
  .parallax-img {
    display: none;
  }
}

/**** General purpose layouts ****/



#hero {
  min-height: calc(100vh - 128px);
  display: flex;
  flex-direction: column;
  padding-left: 30%;
  padding-right: 12vw;
  padding-bottom: 4vw;
  justify-content: center;
  gap: 12px;
}

#hero>* {
  max-width: 1024px;
}

@media (max-width : 768px) {
  #hero {
    padding: 4vw 8vw;
  }
}

*:not(#home)>#hero>h1,
#about>#profile h1,
.border-bottom {
  width: 100%;
  padding: 0.5em 0;
  border-bottom: 1px solid var(--cannelle);
}

.fullscreen {
  width: 100vw;
  height: 100vh;
}

.central {
  padding: 4vw 8vw;
  text-align: center;
}

.central h2 {
  text-align: center;
}

.cgv {
  justify-self: start;
  text-align: left;
  padding: 4vw 12vw;
}


@media (max-width:768px) {
  .cgv {
    padding: 4vw 8vw;
  }
}


.fifty-fifty {
  display: flex;
}

.fifty-fifty.rev {
  flex-direction: row-reverse;
}

.fifty-fifty>div {
  width: 50%;
  padding: 4vw 8vw;
}

.fifty-fifty .parallax-img {
  background-size: 66.6666%;
  background-position-x: left;
}

.fifty-fifty.rev .parallax-img {
  background-position-x: right;
}

.fifty-fifty>div:first-child:has(.parallax-img) {
  flex-shrink: 0;
}

.fifty-fifty>div:first-child>.parallax-img {
  height: 100%;
  width: 100%;
}

.fifty-fifty>div:first-child:has(.parallax-img) {
  padding: 3vw 0;
}

.fifty-fifty.first>div:first-child:has(.parallax-img) {
  padding-top: 0;
}

.fifty-fifty.last>div:first-child:has(.parallax-img) {
  padding-bottom: 0;
}

.fifty-fifty.full>div:first-child:has(.parallax-img) {
  padding: 0;
}

.fifty-fifty.rev>div:first-child.spaced>.parallax-img {
  margin: 0;
  margin-left: 8vw;
  width: calc(100% - 8vw);
}

.fifty-fifty>div:first-child.spaced>.parallax-img {
  margin: 0;
  margin-right: 8vw;
  width: calc(100% - 8vw);
}


@media (max-width:820px) {
  .fifty-fifty div:last-child {
    padding: 4vw;
    width: 70%;
  }

  .fifty-fifty div:first-child {
    width: 30%;
    padding: 0;
  }

}

@media (max-width:768px) {
  .fifty-fifty div:first-child {
    display: none;
    padding: 0;
  }

  .fifty-fifty div:last-child {
    padding: 4vw 8vw;
  }

  .fifty-fifty div:last-child {
    width: 100%;
  }
}

.eighty-twenty {
  display: flex
}

.eighty-twenty>div:first-child {
  width: 80%;
  padding: 4vw 8vw;
}

.eighty-twenty>div:last-child {
  width: 20%;
  padding: 4vw 8vw;
}

@media (max-width:768px) {

  .eighty-twenty {
    display: flex;
    flex-wrap: wrap;
  }

  .eighty-twenty>div:first-child {
    width: 100%;
    padding: 4vw 8vw;
  }

  .eighty-twenty>div:last-child {
    width: 100%;
    padding: 4vw 8vw;
  }

  .calendly-inline-widget {
    padding: 0;
  }

}

.flex-list {
  padding: 4vw 0;
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 4vw;
}

.flex-list>li a,
.flex-list>li:not(:has(*)) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4vw;
}

/**** Specific styles *****/

#home>#hero h1 {
  font-size: var(--font-size-xxl);
}

#home>#hero {
  background-image: url("./assets/Ayurveda-homepage-VDEF.webp");
  background-size: cover;
  background-position-y: center;
  background-position-x: center;
  background-repeat: no-repeat;
  min-height: calc(100vh - 128px);
  display: flex;
  flex-direction: column;
  padding-left: 30%;
  padding-right: 30%;
  padding-bottom: 4vw;
  justify-content: center;
  align-content: center;
  text-align: center;
  gap: 4px;
}

#home>#hero>* {
  max-width: 1024px;
}

@media (max-width:820px) {
  #home>#hero {
    padding: 4vw 8vw;
    background-image: none;
  }
}

#home>#prestation a {
  transition: font-size 0.5s;
}

#home>#prestation a:hover {
  font-size: 1.12vw;
}

#home>#prestation a::before {
  font-size: 6vw;
}

#home>#angle li::before {
  font-size: 6vw;
}

#about>#profile {
  display: flex;
  padding: 4vw 8vw;
  gap: 8vw;
  flex-wrap: wrap;
}


#about>#profile>div:first-child {
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

#about>#profile>div:first-child>img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 100%;
}

#about>#profile>div:last-child {
  flex-shrink: 0;
  flex-basis: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
}

@media(max-width: 768px) {
  #about>#profile {
    flex-direction: column;
  }

  #about>#profile>div:first-child {
    width: 100%;
  }
}

#yoga>#infos>:last-child {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xxl);
  color: var(--lin);
}

#yoga>#infos>:last-child::before {
  border-color: var(--lin);
}

#blog>#category a {
  display: flex;
  align-items: center;
  gap: 12px;
}

#blog>#category a>i {
  height: auto;
  flex-grow: 1;
  font-size: 24px;
}

#blog>#category>div {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2vw;
  width: 100%;
}

#blog>#articles {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  width: 100%;
}

#blog article {
  flex-shrink: 0;
  width: 33.3333333333%;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 128px);
}

@media(max-width: 1366px) {
  #blog article {
    width: 100%;
  }
}

#blog article:nth-child(3n + 1) {
  flex-direction: column-reverse;
  color: var(--cannelle);
  background-color: var(--verre-eau);
}

#blog article:nth-child(3n + 2) {
  flex-direction: column;
}

#blog article:nth-child(3n + 3) {
  flex-direction: column-reverse;
  color: var(--cannelle);
  background-color: var(--clementine);
}

#blog article>section:first-child {
  height: 30%;
}

#blog article>section:first-child>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#blog article>section:last-child {
  height: 70%;
  padding: 4vw 8vw;
  display: flex;
  flex-direction: column;
}

#blog article>section:last-child>p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

#post {
  --h-padding: 240px;
}

#post>h1 {
  padding: 0 var(--h-padding);
  text-align: start;
}

#post>p {
  padding: 12px var(--h-padding);
  display: flex;
  align-items: center;
  gap: 80px;
  justify-content: start;
  border-top: 1px solid var(--cannelle);
  flex-wrap: wrap;
}

#post>section {
  padding: 4vw var(--h-padding);
  column-count: 2;
  column-gap: 80px;
}

#post>section h2 {
  margin-top: 0;
}

#post>img {
  padding: 0 var(--h-padding);
  width: calc(100vw - 2 * var(--h-padding));
  height: 70vh;
  object-fit: cover;
}

@media(max-width: 1024px) {
  #post>p {
    gap: 12px;
  }

  #post>section {
    column-count: 1;
  }

  #post {
    --h-padding: 4vw;
  }
}

#admin {
  padding: 4vw;
}

#admin table {
  margin: 16px 0;
  width: 100%;
  border-collapse: collapse;
}

#admin thead {
  text-align: left;
}

#admin td {
  padding: 8px 0;
}

#admin tr {
  border-bottom: 1px solid var(--cannelle);
}

#admin h1 {
  font-size: 3vh;
}

#admin dl {
  display: grid;
  grid-template-columns: auto auto;
}

#admin dd {
  font-weight: bold;
}

#admin .action {
  display: flex;
  gap: 16px;
}

#admin .add::after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: '\f0fe';
  width: 39px;
}

#admin .view::after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: '\f06e';
  width: 39px;
}

#admin .edit::after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: '\f044';
  width: 39px;
}

#admin .delete::after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: '\f2ed';
  width: 39px;
}

#admin:has(form) {
  margin: auto;
  max-width: 96rem;
}

#admin form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#admin form>div:has(label) {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
}

#admin button,
#admin input[type="file"]::file-selector-button {
  background-color: transparent;
  outline: 1px solid var(--cannelle);
  border-radius: 8px;
  color: var(--cannelle);
  padding: 8px;
  width: fit-content;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  border: none;
}

#admin input,
#admin select {
  padding: 8px;
  outline: 1px solid var(--cannelle);
  border-radius: 8px;
  color: var(--cannelle);
  background-color: transparent;
  font-size: 1em;
  border: none;
}

#admin input[type="file"] {
  cursor: pointer;
}

#admin input:hover,
#admin input:focus,
#admin button:hover,
#admin button:focus {
  background-color: var(--clementine);
}

#admin input:focus,
#admin button:focus {
  border: 2px solid var(--cannelle);
}

#admin #editor:hover {
  background-color: var(--clementine);
}

#admin select {
  display: flex;
}

#admin option {
  font-family: "Raleway";
  border-radius: 8px;
  padding: 8px;
  margin: 8px 0;
  width: fit-content;
}

#admin option:focus,
#admin option:active {
  font-weight: bold;
  background-color: var(--verre-eau);
}

#admin option:checked {
  color: var(--lin);
  font-weight: bold;
  background-color: var(--cannelle);
}

#admin option:hover:not(:checked) {
  background-color: var(--clementine);
}

.ql-toolbar {
  font-family: "Raleway" !important;
  border: 1px solid var(--cannelle) !important;
  border-radius: 8px;
  padding: 8px;
}

.ql-toolbar button {
  outline: none !important;
}

.ql-toolbar button:hover {
  color: red !important;
}

.ql-toolbar .ql-formats * {
  color: var(--cannelle) !important;
}

.ql-container {
  border: 1px solid var(--cannelle) !important;
  border-radius: 8px;
  font-size: 1em !important;
}
