/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --rose: #c0395a;
  --rose-bg: #f9e8ec;
  --olive: #5a6e2a;
  --olive-bg: #f3f6e8;
  --cream: #fdf5ed;
  --dark-footer: #8b1a3a;
  --text-dark: #2c2c2c;
  --text-mid: #555;
  --font-main: "Nunito", sans-serif;
  --font-script: "Dancing Script", cursive;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--cream);
}

img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  width: fit-content;
  align-self: flex-start;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition:
    opacity 0.2s,
    transform 0.15s;
  cursor: pointer;
}
.btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--rose);
  color: #fff;
}
.btn--dark {
  background: var(--rose);
  color: #fff;
}
.btn--dark-olive {
  background: var(--olive);
  color: #fff;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 60px;
  background: transparent;
  box-shadow: none;
  transition:
    background 0.3s,
    box-shadow 0.3s;
}

.navbar--scrolled {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.navbar__logo-img {
  height: 70px;
  width: auto;
  display: block;
}

.navbar__links {
  display: flex;
  gap: 32px;
}

.navbar__links a {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 4px;
}

.navbar__links a.active,
.navbar__links a:hover {
  color: var(--rose);
}

.navbar__links a.active::after,
.navbar__links a:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--rose);
  border-radius: 2px;
}

/* =============================================
   HERO — pleine largeur, image fond, texte par-dessus
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Image en fond, couvre tout */
.hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Dégradé gauche pour lisibilité du texte */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, rgba(253, 245, 237, 0.92) 0%, rgba(253, 245, 237, 0.75) 40%, rgba(253, 245, 237, 0) 70%);
}

/* Contenu texte au-dessus */
.hero__content {
  position: relative;
  z-index: 2;
  padding: 80px 60px;
  max-width: 520px;
}

.hero__title {
  font-family: "Playfair Display", serif;
  font-size: 3.8rem;
  font-weight: 700;
  color: var(--rose);
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero__subtitle {
  font-family: var(--font-script);
  font-size: 1.9rem;
  color: var(--rose);
  margin-bottom: 22px;
}

.hero__desc {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.65;
  margin-bottom: 30px;
  max-width: 360px;
}

/* =============================================
   PRODUCTS
   ============================================= */
.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  scroll-margin-top: 90px;
}

/* Carte = fond image plein format */
.product {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

/* Image couvre toute la carte */
.product__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.product__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Voile semi-transparent sur la gauche pour lisibilité du texte */
.product--rose::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(249, 232, 236, 0.97) 0%,
    rgba(249, 232, 236, 0.93) 38%,
    rgba(249, 232, 236, 0.55) 60%,
    rgba(249, 232, 236, 0) 78%
  );
}

.product--sangria::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(243, 246, 232, 0.97) 0%,
    rgba(243, 246, 232, 0.93) 38%,
    rgba(243, 246, 232, 0.55) 60%,
    rgba(243, 246, 232, 0) 78%
  );
}

/* Texte au-dessus du voile */
.product__content {
  position: relative;
  z-index: 2;
  padding: 50px 30px 50px 50px;
  max-width: 52%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product__title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-align: center;
  white-space: nowrap;
}
.product--rose .product__title {
  color: var(--rose);
}
.product--sangria .product__title {
  color: var(--olive);
}

.product__title-sep {
  display: block;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  margin: 8px auto 16px;
}
.product--rose .product__title-sep {
  background: var(--rose);
}
.product--sangria .product__title-sep {
  background: var(--olive);
}

.product__tagline {
  font-family: var(--font-script);
  font-size: 1.45rem;
  line-height: 1.35;
  margin-bottom: 28px;
  text-align: center;
}
.product--rose .product__tagline {
  color: var(--rose);
}
.product--sangria .product__tagline {
  color: var(--olive);
}

.product__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.product__features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
}

/* Icône dans un cercle */
.product__features .icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.product--rose .product__features .icon {
  color: var(--rose);
}
.product--sangria .product__features .icon {
  color: var(--olive);
}

.product__features strong {
  display: inline;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

/* =============================================
   VALUES
   ============================================= */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  padding: 50px 60px;
  border-top: 1px solid #f0e6e9;
  border-bottom: 1px solid #f0e6e9;
}

.value {
  text-align: center;
  padding: 20px 24px;
  border-right: 1px solid #f0e6e9;
}
.value:last-child {
  border-right: none;
}
.value__icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.value h3 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.value p {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* =============================================
   ABOUT
   ============================================= */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 50px;
  padding: 70px 60px;
  background: var(--cream);
  scroll-margin-top: 90px;
}

.about__image img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

.about__title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--rose);
  margin-bottom: 6px;
}

.about__tagline {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--rose);
  margin-bottom: 14px;
}

.about__separator {
  width: 50px;
  height: 3px;
  background: var(--rose);
  border-radius: 2px;
  margin-bottom: 18px;
}

.about__text {
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 440px;
}

.stamp {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 3px solid var(--rose);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  gap: 4px;
}

.stamp span {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--rose);
  text-transform: uppercase;
}

.stamp strong {
  font-family: var(--font-script);
  font-size: 1.1rem;
  color: var(--rose);
  line-height: 1.1;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--dark-footer);
  color: #fff;
  padding: 24px 60px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer__social {
  display: flex;
  gap: 20px;
}
.footer__social a {
  color: #fff;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.footer__social a:hover {
  opacity: 1;
}

.footer__info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.92rem;
  font-weight: 600;
}

.footer__sep {
  opacity: 0.5;
}

.footer__legal {
  font-size: 0.68rem;
  opacity: 0.6;
  letter-spacing: 0.04em;
  text-align: center;
}

.footer__legal-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer__legal-link:hover {
  opacity: 1;
}

/* =============================================
   ANIMATIONS
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* ── Tablette (≤ 1024px) ── */
@media (max-width: 1024px) {
  .navbar {
    padding: 10px 30px;
  }
  .hero {
    min-height: 70vh;
  }
  .hero__content {
    padding: 60px 40px;
  }
  .products {
    grid-template-columns: 1fr;
  }
  .product {
    min-height: 480px;
  }
  .values {
    grid-template-columns: repeat(2, 1fr);
    padding: 40px 30px;
  }
  .value {
    border-right: none;
    border-bottom: 1px solid #f0e6e9;
  }
  .value:last-child {
    border-bottom: none;
  }
  .about {
    grid-template-columns: 1fr 1fr;
    padding: 50px 30px;
  }
  .about__stamp {
    display: none;
  }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
  /* ── Navbar mobile sans burger ── */
  .navbar {
    padding: 10px 16px;
    gap: 14px;
    justify-content: flex-start;
  }
  .navbar__logo {
    padding: 0;
    flex-shrink: 0;
  }
  .navbar__logo-img {
    height: 44px;
  }
  .navbar .btn {
    display: none;
  }
  .navbar__links {
    display: none;
  }
  .navbar__links a {
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    padding: 4px 0;
  }

  /* ── Hero : image plein écran, texte en bas ── */
  .hero {
    min-height: 82vh;
    align-items: flex-end;
  }
  .hero::after {
    background: linear-gradient(
      to top,
      rgba(253, 245, 237, 0.98) 0%,
      rgba(253, 245, 237, 0.92) 35%,
      rgba(253, 245, 237, 0.45) 65%,
      rgba(253, 245, 237, 0) 100%
    );
  }
  .hero__content {
    padding: 0 28px 52px;
    max-width: 100%;
  }
  .hero__title {
    font-size: 2.6rem;
  }
  .hero__subtitle {
    font-size: 1.6rem;
  }
  .hero__desc {
    font-size: 0.92rem;
    max-width: 100%;
  }

  /* ── Products ── */
  .product {
    min-height: 360px;
  }
  .product__content {
    max-width: 85%;
    padding: 36px 20px 36px 24px;
  }
  .product--rose::before {
    background: linear-gradient(
      to right,
      rgba(249, 232, 236, 0.98) 0%,
      rgba(249, 232, 236, 0.96) 60%,
      rgba(249, 232, 236, 0.35) 85%,
      rgba(249, 232, 236, 0) 100%
    );
  }
  .product--sangria::before {
    background: linear-gradient(
      to right,
      rgba(243, 246, 232, 0.98) 0%,
      rgba(243, 246, 232, 0.96) 60%,
      rgba(243, 246, 232, 0.35) 85%,
      rgba(243, 246, 232, 0) 100%
    );
  }
  .product__title {
    font-size: 1rem;
  }
  .product__tagline {
    font-size: 1.2rem;
    margin-bottom: 18px;
  }
  .product__features {
    gap: 10px;
    margin-bottom: 22px;
  }
  .product__features .icon {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  /* ── Values : grille 2×2 ── */
  .values {
    grid-template-columns: repeat(2, 1fr);
    padding: 28px 16px;
  }
  .value {
    border-right: none;
    border-bottom: 1px solid #f0e6e9;
  }
  .value:nth-child(odd) {
    border-right: 1px solid #f0e6e9;
  }
  .value:nth-child(3),
  .value:nth-child(4) {
    border-bottom: none;
  }

  /* ── About ── */
  .about {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px 24px;
    gap: 28px;
  }
  .about__separator {
    margin: 0 auto 18px;
  }
  .about__stamp {
    display: none;
  }

  /* ── Footer ── */
  .footer {
    padding: 24px 20px 16px;
  }
  .footer__info {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
  .footer__sep {
    display: none;
  }
}

/* ── Petit mobile (≤ 480px) ── */
@media (max-width: 480px) {
  .hero {
    min-height: 88vh;
  }
  .hero__title {
    font-size: 2.1rem;
  }
  .hero__subtitle {
    font-size: 1.4rem;
  }
  .hero__desc {
    font-size: 0.88rem;
  }
  .hero__content {
    padding: 0 20px 44px;
  }
  .product {
    min-height: 300px;
  }
  .product__content {
    max-width: 90%;
    padding: 28px 16px 28px 18px;
  }
  .product__title {
    font-size: 0.9rem;
  }
  .product__tagline {
    font-size: 1.1rem;
  }
  .about__title {
    font-size: 1.3rem;
  }
  .about__tagline {
    font-size: 1.5rem;
  }
}
