/* =========================================================
   Vitrine boutique domotique
   Palette crème / bronze · Playfair Display + Inter
   ========================================================= */

:root {
  --fond: #FBF9F5;
  --fond-carte: #FFFFFF;
  --encre: #14130F;
  --gris: #6B665C;
  --sable: #DCD5C6;
  --bronze: #A9814A;
  --bronze-clair: #C6A268;
  --ligne: rgba(20, 19, 15, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--fond);
  color: var(--encre);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--bronze); color: #fff; }
a:focus-visible,
button:focus-visible { outline: 1px solid var(--bronze); outline-offset: 3px; }

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  letter-spacing: 0.005em;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gris);
}

/* ===== UTILITY BAR ===== */
.utility-bar {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 8px 0;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--gris);
  border-bottom: 1px solid var(--ligne);
  background: var(--fond);
  position: relative;
  z-index: 101;
}

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 5vw;
  background: rgba(251, 249, 245, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ligne);
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-right { justify-content: flex-end; }

.nav-left a,
.nav-right a {
  opacity: 0.75;
  transition: opacity 0.3s;
}

.nav-left a:hover,
.nav-right a:hover { opacity: 1; color: var(--bronze); }

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

/* Bouton burger (masqué sur desktop) */
.nav-toggle {
  display: none;
  position: absolute;
  left: 5vw;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--encre);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Menu plein écran (mobile) — caché par défaut (desktop) */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 105;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--fond);
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(.2, .7, .2, 1);
  visibility: hidden;
}

.mobile-menu a {
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--encre);
  padding: 14px 20px;
  opacity: 0.85;
  transition: color 0.3s, opacity 0.3s;
}

.mobile-menu a:hover { color: var(--bronze); opacity: 1; }

@media (max-width: 860px) {
  nav { position: sticky; grid-template-columns: 1fr; }
  .nav-left,
  .nav-right { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }
  .mobile-menu.open { transform: translateY(0); visibility: visible; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 92vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  /* Remplacer le dégradé par une photo :
     url('images/hero.jpg') center 30% / cover no-repeat; */
  background:
    linear-gradient(180deg, rgba(20, 19, 15, 0.15) 0%, rgba(20, 19, 15, 0.35) 55%, rgba(20, 19, 15, 0.72) 100%),
    radial-gradient(ellipse 70% 60% at 50% 35%, #4a4438, #262218 70%),
    linear-gradient(160deg, #3a352b, #1a170f);
}

.hero-halo {
  position: absolute;
  top: 24%;
  left: 50%;
  width: 46vw;
  height: 46vw;
  max-width: 560px;
  max-height: 560px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 251, 240, 0.28) 0%, rgba(198, 162, 104, 0.14) 55%, transparent 78%);
  filter: blur(2px);
  animation: halo-breathe 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes halo-breathe {
  0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.06); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-bottom: 90px;
  opacity: 0;
  animation: riseIn 1.2s ease forwards 0.3s;
}

.hero-content .eyebrow { margin-bottom: 22px; color: #E8DFC8; }

.hero-content h1 {
  font-size: clamp(34px, 5.4vw, 66px);
  line-height: 1.15;
  color: #FBF9F5;
  max-width: 820px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-content h1 em { font-style: italic; color: var(--bronze-clair); }

.hero-cta {
  display: inline-block;
  margin-top: 34px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 6px;
  color: #FBF9F5;
  border-bottom: 1px solid #FBF9F5;
  transition: border-color 0.3s, color 0.3s;
}

.hero-cta:hover { border-color: var(--bronze-clair); color: var(--bronze-clair); }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== SECTIONS ===== */
section { padding: 120px 5vw; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 70px;
}

.section-head .eyebrow { display: block; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.25; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(.2, .7, .2, 1), transform 0.9s cubic-bezier(.2, .7, .2, 1);
}

.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== CATEGORIES (grille) ===== */
.univers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 1000px) { .univers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .univers-grid { grid-template-columns: 1fr; } }

.univers-tile { position: relative; overflow: hidden; cursor: pointer; display: block; }

.tile-visual {
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
}

.tile-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Dégradé bronze par défaut ; surchargé par --tile-bg (photo) en inline */
  background: var(--tile-bg, linear-gradient(160deg, #C6A268, #8a6a3c));
  background-size: cover;
  background-position: center;
  transition: transform 0.9s cubic-bezier(.2, .8, .2, 1);
}

.univers-tile:hover .tile-visual::before { transform: scale(1.08); }

.tile-caption { padding: 22px 4px; text-align: center; }
.tile-caption h3 { font-size: 17px; font-weight: 500; margin-bottom: 6px; }
.tile-caption span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gris);
}

/* ===== AVANTAGES (bande d'arguments) ===== */
.avantages {
  background: linear-gradient(180deg, #F5F1E8, #EDE7D8);
  border-top: 1px solid var(--ligne);
  border-bottom: 1px solid var(--ligne);
}

.avantages-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) { .avantages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .avantages-grid { grid-template-columns: 1fr; } }

.avantage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 44px 26px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--ligne);
  transition: transform 0.4s cubic-bezier(.2, .7, .2, 1), box-shadow 0.4s, background 0.4s;
}

.avantage:hover {
  transform: translateY(-4px);
  background: var(--fond-carte);
  box-shadow: 0 18px 40px rgba(20, 19, 15, 0.08);
}

.avantage .num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 50%;
  border: 1px solid var(--bronze);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--bronze);
}

.avantage h3 { font-size: 18px; margin-bottom: 12px; }
.avantage p { font-size: 13.5px; line-height: 1.75; color: var(--gris); max-width: 220px; }

/* ===== PRODUITS (vitrine) ===== */
.produits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1300px;
  margin: 0 auto;
}

@media (max-width: 1000px) { .produits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .produits-grid { grid-template-columns: 1fr; } }

.produit-carte {
  background: var(--fond-carte);
  border: 1px solid var(--ligne);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(.2, .7, .2, 1), box-shadow 0.4s;
}

.produit-carte:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(20, 19, 15, 0.08);
}

.produit-visuel {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: var(--produit-bg, linear-gradient(150deg, #EDE7D8, #D8CDB2));
  background-size: cover;
  background-position: center;
}

.produit-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FBF9F5;
  background: var(--bronze);
  padding: 5px 10px;
}

.produit-infos {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
}

.produit-cat {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 8px;
}

.produit-nom { font-size: 18px; margin-bottom: 8px; }
.produit-desc { font-size: 13px; line-height: 1.7; color: var(--gris); margin-bottom: 18px; }

.produit-bas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.produit-prix { font-size: 16px; font-weight: 500; }

.produit-btn {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--encre);
  background: transparent;
  color: var(--encre);
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.produit-btn:hover { background: var(--encre); color: var(--fond); }

.produits-all { text-align: center; margin-top: 60px; }
.produits-all .hero-cta { color: var(--encre); border-bottom-color: var(--encre); }
.produits-all .hero-cta:hover { color: var(--bronze); border-bottom-color: var(--bronze); }

/* ===== NEWSLETTER ===== */
.newsletter {
  text-align: center;
  border-top: 1px solid var(--ligne);
  border-bottom: 1px solid var(--ligne);
  padding: 90px 6vw;
}

.newsletter h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 16px; }
.newsletter p { font-size: 14px; color: var(--gris); margin-bottom: 36px; }

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
  border-bottom: 1px solid var(--encre);
}

.newsletter-form input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 12px 4px;
  color: var(--encre);
  outline: none;
}

.newsletter-form input::placeholder { color: var(--gris); }

.newsletter-form button {
  border: none;
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 4px;
  cursor: pointer;
  color: var(--encre);
  transition: color 0.3s;
}

.newsletter-form button:hover { color: var(--bronze); }
.newsletter-note { margin-top: 18px; font-size: 12px; color: var(--bronze); min-height: 1em; }

/* ===== FOOTER ===== */
footer { padding: 70px 5vw 34px; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
  max-width: 1100px;
}

@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 13.5px;
  padding: 5px 0;
  color: var(--encre);
  opacity: 0.8;
  transition: opacity 0.3s, color 0.3s;
}

.footer-col a:hover { opacity: 1; color: var(--bronze); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid var(--ligne);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--gris);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: var(--gris); transition: color 0.3s; }
.footer-legal a:hover { color: var(--bronze); }

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  letter-spacing: 0.3em;
}

/* ===== AJUSTEMENTS MOBILE ===== */
@media (max-width: 760px) {
  section { padding: 80px 6vw; }
  .section-head { margin-bottom: 48px; }
  .avantages-grid,
  .produits-grid { gap: 20px; }
  .maison-text { padding: 60px 8vw; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  section { padding: 64px 6vw; }
  .hero { height: auto; min-height: 78vh; }
  .hero-content { padding-bottom: 64px; }
  .newsletter-form { flex-wrap: wrap; }
  .produit-bas { flex-direction: column; align-items: flex-start; gap: 12px; }
  .produit-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
