/*
Theme Name:  Noix Boutique
Theme URI:   https://noixboutique.com
Author:      Noix Boutique
Description: Page d'attente codée d'après la maquette Noix Boutique.
Version:     1.1.0
License:     Proprietary
Text Domain: noix-boutique
*/

:root {
  --noix-brown: #613a19;
  --noix-brown-dark: #4e2b12;
  --noix-cream: #f9f5f2;
  --noix-line: #d7cbc5;
  --noix-copy: #4a2d19;
  --noix-white: #ffffff;
  --noix-font-serif: "Cormorant Garamond", Georgia, serif;
  --noix-font-sans: "Jost", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--noix-white);
  color: var(--noix-copy);
  font-family: var(--noix-font-sans);
  line-height: 1.4;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
}

img,
svg {
  display: block;
}

img {
  image-orientation: from-image;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.noix-page {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--noix-white);
}

.hero-replica {
  position: relative;
  height: 1904px;
  overflow: hidden;
  background: #f6f8f7;
}

.hero-replica::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  height: 390px;
  background: linear-gradient(180deg, #f6f8f7 0%, #f6f8f7 68%, rgba(246, 248, 247, 0) 100%);
  content: "";
  pointer-events: none;
}

.hero-replica__photo {
  position: absolute;
  top: 285px;
  left: 0;
  z-index: 0;
  width: auto;
  max-width: none;
  height: 96.2%;
  transform: translateX(-9.4%);
}

.hero-replica__photo--mobile {
  display: none;
}

.hero-replica__logo {
  position: absolute;
  top: 29px;
  left: 404px;
  z-index: 2;
  width: 638px;
  height: auto;
}

.hero-copy {
  position: absolute;
  top: 383px;
  left: 90px;
  z-index: 2;
  width: 650px;
  color: var(--noix-brown);
}

.hero-title {
  margin: 0;
  color: var(--noix-brown);
  font-family: var(--noix-font-serif);
  font-size: 97px;
  font-weight: 400;
  line-height: 0.99;
}

.hero-title span,
.hero-title em {
  display: block;
}

.hero-title em {
  font-style: italic;
}

.hero-subcopy {
  width: 620px;
  margin: 36px 0 0;
  color: var(--noix-copy);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.35;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 410px;
  height: 66px;
  margin-top: 43px;
  border: 0;
  border-radius: 0;
  background: var(--noix-brown);
  color: var(--noix-white);
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-button:hover,
.primary-button:focus-visible,
.newsletter-form button:hover,
.newsletter-form button:focus-visible {
  background: var(--noix-brown-dark);
}

.value-props {
  height: 361px;
  background: var(--noix-white);
}

.value-props__grid {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.value-item {
  display: flex;
  align-items: center;
  flex-direction: column;
  min-width: 0;
  padding-top: 58px;
  text-align: center;
}

.value-item + .value-item {
  border-left: 1px solid var(--noix-line);
}

.value-icon {
  width: 82px;
  height: 82px;
  margin-bottom: 24px;
  color: var(--noix-brown);
  stroke-width: 1.6;
}

.value-item h2 {
  margin: 0 0 20px;
  color: var(--noix-brown);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: break-word;
  text-transform: uppercase;
}

.value-item p {
  margin: 0;
  color: var(--noix-copy);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.33;
  overflow-wrap: break-word;
}

.signup {
  height: 721px;
  padding-top: 73px;
  background: var(--noix-cream);
  text-align: center;
}

.section-eyebrow {
  margin: 0;
  color: var(--noix-brown);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.signup-title {
  margin: 29px 0 0;
  color: var(--noix-brown);
  font-family: var(--noix-font-serif);
  font-size: 96px;
  font-weight: 400;
  line-height: 1.05;
}

.signup-copy {
  margin: 25px auto 0;
  max-width: 610px;
  color: var(--noix-copy);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.35;
}

.newsletter-alert {
  width: 580px;
  margin: 20px auto 0;
  padding: 13px 18px;
  border: 1px solid currentColor;
  background: #fff;
  font-size: 18px;
  font-weight: 500;
}

.newsletter-alert--success {
  color: #3a6e3a;
}

.newsletter-alert--error {
  color: #8b3a3a;
}

.newsletter-form {
  display: flex;
  width: 580px;
  height: 68px;
  margin: 38px auto 0;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 68px;
  padding: 0 28px;
  border: 1px solid var(--noix-line);
  border-right: 0;
  border-radius: 0;
  background: var(--noix-white);
  color: var(--noix-copy);
  font-size: 23px;
  outline: 0;
}

.newsletter-form input[type="email"]::placeholder {
  color: #b9ada7;
  opacity: 1;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--noix-brown);
}

.newsletter-form button {
  width: 172px;
  height: 68px;
  border: 0;
  border-radius: 0;
  background: var(--noix-brown);
  color: var(--noix-white);
  cursor: pointer;
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.privacy-note {
  margin: 27px 0 0;
  color: var(--noix-copy);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.34;
}

.taste {
  height: 440px;
  padding-top: 52px;
  background: var(--noix-white);
  text-align: center;
}

.taste .section-eyebrow {
  font-size: 25px;
}

.taste__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  width: calc(100% - 76px);
  height: 259px;
  margin: 48px auto 0;
}

.taste__item {
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.taste__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(var(--taste-x, 0), var(--taste-y, 0)) scale(var(--taste-zoom, 1));
}

.taste__box-clear {
  --taste-zoom: 2.45;
  object-position: 52% 30%;
}

.taste__butter {
  --taste-zoom: 1.50;
  object-position: 50% 30%;
}

.taste__gold {
  --taste-zoom: 1.45;
  --taste-x: -14%;
  object-position: 52% 36%;
}

.taste__scoop {
  --taste-zoom: 1.60;
  --taste-x: 9%;
  --taste-y: -8%;
  object-position: 52% 80%;
}

.taste__chocolate {
  --taste-zoom: 1.80;
  object-position: 50% -33%;
}

.taste__gift {
  --taste-zoom: 2.20;
  --taste-x: 10%;
  --taste-y: -9%;
  object-position: 50% 30%;
}

.site-footer {
  height: 374px;
  background: var(--noix-cream);
}

.site-footer__grid {
  display: grid;
  height: 100%;
  grid-template-columns: 476px 514px 450px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-top: 10px;
  text-align: center;
}

.footer-brand__logo {
  width: 411px;
  height: auto;
  margin-bottom: 11px;
}

.footer-brand address {
  margin: 0;
  color: var(--noix-copy);
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.33;
}

.footer-hours {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
  border-right: 1px solid var(--noix-line);
  border-left: 1px solid var(--noix-line);
}

.footer-hours table {
  width: min(336px, 100%);
  border-collapse: collapse;
  color: var(--noix-copy);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.28;
}

.footer-hours td {
  padding: 0;
}

.footer-hours td:last-child {
  text-align: right;
}

.footer-contact {
  display: flex;
  align-items: center;
  flex-direction: column;
  color: var(--noix-copy);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.32;
  text-align: center;
}

.footer-contact h2 {
  margin: 0 0 4px;
  color: var(--noix-brown);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.footer-contact a {
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 18px;
  margin: 19px 0 27px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 49px;
  height: 49px;
  border-radius: 50%;
  background: var(--noix-brown);
  color: var(--noix-cream);
}

.social-links svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.copyright {
  margin: 0;
  font-size: 23px;
  line-height: 1.34;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1439px) {
  .noix-page {
    max-width: none;
  }
}

@media (max-width: 980px) {
  .hero-replica {
    display: flex;
    align-items: center;
    flex-direction: column;
    height: auto;
    min-height: 0;
    padding: 36px 28px 0;
  }

  .hero-replica::before {
    height: 260px;
  }

  .hero-replica__photo {
    position: relative;
    top: auto;
    bottom: 0;
    left: auto;
    order: 3;
    align-self: stretch;
    width: auto;
    max-width: none;
    height: 560px;
    margin: 48px 0 0;
    object-fit: cover;
    object-position: 53% 60%;
    transform: none;
  }

  .hero-replica__photo--desktop {
    display: none;
  }

  .hero-replica__photo--mobile {
    display: block;
    align-self: center;
    width: calc(100% + 56px);
    max-width: none;
    height: auto;
    margin-right: -28px;
    margin-left: -28px;
    object-fit: contain;
    object-position: 50% 50%;
  }

  .hero-replica__logo {
    position: relative;
    top: auto;
    left: auto;
    order: 1;
    width: 360px;
    max-width: 70%;
    margin: 0 auto 54px;
    transform: none;
  }

  .hero-copy {
    order: 2;
    position: relative;
    top: auto;
    left: auto;
    width: min(650px, 100%);
    min-width: 0;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 66px;
  }

  .hero-subcopy {
    width: 100%;
    font-size: 19px;
    overflow-wrap: break-word;
  }

  .primary-button {
    width: min(410px, 100%);
    max-width: 100%;
    white-space: normal;
  }

  .value-props {
    height: auto;
  }

  .value-props__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value-item {
    min-height: 300px;
    border-top: 1px solid var(--noix-line);
  }

  .value-item + .value-item {
    border-left: 0;
  }

  .value-item:nth-child(2n) {
    border-left: 1px solid var(--noix-line);
  }

  .signup {
    height: auto;
    padding: 68px 24px 80px;
  }

  .signup-title {
    font-size: 66px;
  }

  .signup-copy {
    font-size: 20px;
  }

  .newsletter-form,
  .newsletter-alert {
    width: min(580px, 100%);
  }

  .taste {
    height: auto;
    padding: 52px 20px 62px;
  }

  .taste__grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    width: 100%;
    height: auto;
  }

  .taste__item {
    aspect-ratio: 216 / 259;
  }

  .site-footer {
    height: auto;
    padding: 46px 24px 54px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
    height: auto;
  }

  .footer-hours {
    height: auto;
    padding: 34px 0;
    border-top: 1px solid var(--noix-line);
    border-right: 0;
    border-bottom: 1px solid var(--noix-line);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .hero-replica {
    min-height: 0;
    padding-top: 28px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero-replica::before {
    height: 190px;
  }

  .hero-replica__logo {
    width: 220px;
    max-width: 68%;
    margin-bottom: 34px;
  }

  .hero-replica__photo {
    width: auto;
    height: 430px;
    margin: 36px 0 0;
    object-position: 53% 62%;
  }

  .hero-replica__photo--mobile {
    width: calc(100% + 40px);
    height: auto;
    margin-right: -20px;
    margin-left: -20px;
  }

  .hero-copy {
    align-self: stretch;
    width: auto;
    margin: 0;
  }

  .hero-title {
    font-size: 50px;
    line-height: 0.98;
  }

  .hero-subcopy {
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.42;
  }

  .hero-subcopy br {
    display: none;
  }

  .primary-button {
    width: 100%;
    height: 60px;
    margin-top: 28px;
    padding: 0 16px;
    font-size: 15px;
  }

  .value-props__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .taste__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .value-item:nth-child(2n) {
    border-left: 1px solid var(--noix-line);
  }

  .value-item {
    min-height: 224px;
    padding: 40px 14px 28px;
  }

  .value-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
  }

  .value-item h2 {
    margin-bottom: 12px;
    font-size: 14px;
  }

  .value-item p {
    font-size: 15px;
    line-height: 1.35;
  }

  .section-eyebrow,
  .taste .section-eyebrow {
    font-size: 20px;
  }

  .signup-title {
    font-size: 48px;
  }

  .signup-copy {
    font-size: 17px;
  }

  .signup-copy br {
    display: none;
  }

  .newsletter-alert {
    font-size: 16px;
  }

  .newsletter-form {
    height: auto;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .newsletter-form input[type="email"] {
    height: 64px;
    padding: 0 18px;
    border-right: 1px solid var(--noix-line);
    font-size: 17px;
    text-align: center;
  }

  .newsletter-form button {
    width: 100%;
    height: 58px;
    font-size: 16px;
  }

  .footer-brand__logo {
    width: min(411px, 96vw);
  }

  .footer-hours table,
  .footer-contact {
    font-size: 18px;
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 44px;
  }

  .value-props__grid {
    grid-template-columns: 1fr;
  }

  .value-item:nth-child(2n) {
    border-left: 0;
  }

  .footer-hours table,
  .footer-contact {
    font-size: 16px;
  }
}
