/* ============================================================
   ZEN LITERIE — Feuille de styles principale
   ============================================================ */

/* ── Imports Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@300;400;600;700&display=swap');

/* ── Variables ── */
:root {
  --navy:        #012579;
  --navy-dark:   #0f1e38;
  --gold:        #c9a96e;
  --white:       #ffffff;
  --off-white:   #f7f6f2;
  --light-grey:  #f3f3f3;
  --text:        #2c2c2c;
  --text-light:  #666666;
  --font-display: 'Libre Caslon Text', Georgia, serif;
  --font-body:    'Montserrat', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--font-body); color: var(--text); background: var(--white); }
img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; }


/* ============================================================
   NAV
   ============================================================ */
nav {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 120px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo img {
  height: 90px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-social { display: flex; gap: 12px; }
.nav-social a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.nav-social a:hover { color: var(--gold); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: calc(100% - 70px);
  height: 700px;
  overflow: hidden;
  border-radius: 20px;
  margin: 35px;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
}
.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}
.hero-text h1 {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: lighter;
  /* font-style: italic; */
  letter-spacing: 1px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-text p {
  margin-top: 10px;
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 300;
  opacity: 0.9;
}


/* ============================================================
   ABOUT
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0;
  max-width: 1400px;
  margin: 70px auto;
  padding: 0 40px;
  align-items: center;
}
.about-image-wrap { position: relative; }
.about-image-wrap img {
  border-radius: 6px;
  width: 90%;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
}
.about-badge {
  position: absolute;
  top: 50%;
  right: -30px;
  transform: translateY(-50%);
  background: var(--white);
  padding: 30px 50px;
  text-align: left;
  /* box-shadow: 0 8px 40px rgba(0,0,0,0.12); */
  border-radius: 20px;
  min-width: 180px;
}
.about-badge p    { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-light); }
.about-badge h3   { font-family: var(--font-display); font-size: 3rem; font-weight: lighter; line-height: 4rem; margin: 4px 0; }
.about-badge span { font-size: 0.75rem; color: var(--text-light); letter-spacing: 1px; }
.about-text { padding-left: 120px; }
.about-text p { font-size: 0.88rem; line-height: 1.8; color: var(--text-light); margin-bottom: 16px; }


/* ============================================================
   PRODUCTS
   ============================================================ */
.products {
  background: var(--light-grey);
  padding: 70px 40px;
}
.products-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.products-text{
  background: #fff;
  padding: 50px;
  border-radius: 20px;
}
.products-text h2 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: lighter;
  line-height: 1.15;
  margin-bottom: 24px;
}
.products-text p { font-size: 0.87rem; line-height: 1.85; color: var(--text-light); margin-bottom: 14px; }

    /* ── Carte générique ── */
.card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  /* cursor: pointer; */
}
.card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.75) sepia(0.25) hue-rotate(185deg) saturate(1.6);
  transition: transform 0.45s ease, filter 0.45s ease;
}
.card:hover img {
  transform: scale(1.05);
  filter: brightness(0.55) sepia(0.35) hue-rotate(185deg) saturate(2);
}
.card-label {
  position: absolute;
  bottom: 20px; left: 22px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  pointer-events: none;
}

/* ══════════════════════════════════════════
   GRILLE UNIFIÉE — 4 colonnes, 5 lignes
   Lignes 1+2 = 248px chacune  (= rangée haute)
   Lignes 3+4 = 114px chacune  (= moitié de 248 - gap/2)
   Ligne  5   = 200px          (= rangée basse)
══════════════════════════════════════════ */
.products-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 248px 114px 114px 200px;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

/* Matelas — col 1-2, lignes 1-3 (248+12+114+12+114 = 500 ≈ hauteur visuelle) */
.card-matelas   { grid-column: 1 / 3; grid-row: 1 / 4; }

/* Sommiers — col 3-4, ligne 1 */
.card-sommiers  { grid-column: 3 / 5; grid-row: 1 / 2; }

/* Têtes de lit — col 3, lignes 2-3 */
.card-tetes     { grid-column: 3 / 4; grid-row: 2 / 4; }

/* Oreillers — col 4, ligne 2 */
.card-oreillers { grid-column: 4 / 5; grid-row: 2 / 3; }

/* Linge de lit — col 4, ligne 3 */
.card-linge     { grid-column: 4 / 5; grid-row: 3 / 4; }

/* Rangée du bas */
.card-bas-1     { grid-column: 1 / 2; grid-row: 4 / 5; }
.card-bas-2     { grid-column: 2 / 3; grid-row: 4 / 5; }
.card-bas-grand { grid-column: 3 / 5; grid-row: 4 / 5; }

/* ============================================================
   BRANDS
   ============================================================ */
.brands {
  background: var(--navy);
  padding: 50px 30px;
  border-radius: 12px;
  max-width: 1400px;
  margin: 70px auto;
}
.brands-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.brands-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.brand-tile {
  background: rgba(255,255,255,0.12);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 10px;
  min-height: 72px;
}
.brand-tile svg    { opacity: 0.85; flex-shrink: 0; }
.brand-tile span {
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
}
.brand-tile.highlight { background: rgba(255,255,255,0.22); }
.brands-text {
  /* background: var(--white); */
  border-radius: 10px;
  padding: 30px 0px;
}
.brands-text h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: lighter;
  color: #fff;
  margin-bottom: 16px;
}
.brands-text p { font-size: 0.86rem; line-height: 1.8; color: #fff; }

.conteneur-demandedevis{
  margin: 0;
  margin-top: 30px;
}

.btn-demandedevis {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: 16px;
  padding-left: 20px;
  padding-right: 20px;
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 6px;
}
.btn-demandedevis:hover { background: var(--navy-dark); }



/* ============================================================
   CONTACT
   ============================================================ */
   
.contact {
  background: var(--light-grey);
  padding: 70px 40px;
}
.contact-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-left{
  background: url("../images/fond-contact-gauche.webp") top center;
  background-size: cover;
  padding: 50px;
  border-radius: 20px;
}
.contact-left h2 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: lighter;
  margin-bottom: 16px;
  color: #fff;
}
.contact-left p { font-size: 0.87rem; line-height: 1.8; color: #fff; margin-bottom: 30px; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-info-item { display: flex; flex-direction: column; gap: 2px; }
.contact-info-item .ci-label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
}
.contact-info-item .ci-value { font-size: 0.87rem; color: #fff; }
.contact-info-item .ci-value a { color: #fff; }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input,
.contact-form textarea {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
  background: var(--off-white);
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--navy); background: var(--white); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.btn-send {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: 16px;
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 6px;
}
.btn-send:hover { background: var(--navy-dark); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  max-width: 1100px;
  margin: 70px auto;
  padding: 0 40px;
}
.gallery h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: lighter;
  margin-bottom: 8px;
  text-align: center;
}
.gallery-subtitle {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 36px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 220px 220px;
  gap: 10px;
}
.gallery-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
  filter: brightness(0.75) sepia(0.25) hue-rotate(185deg) saturate(1.6);
}
.gallery-item:hover img {
  transform: scale(1.07);
  filter: brightness(0.55) sepia(0.35) hue-rotate(185deg) saturate(2);
}
.gallery-item .gal-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery-item:hover .gal-overlay { opacity: 1; }
.gallery-item .gal-overlay span {
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
}
.gallery-item.large-v { grid-row: span 2; }
.gallery-item.large-h { grid-column: span 2; }


/* ============================================================
   MAP
   ============================================================ */
.map-section {
  height: 280px;
  overflow: hidden;
}
.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: saturate(0.8);
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 54px 60px 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
  font-style: italic;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--gold); }
.footer-col address { font-style: normal; }
.footer-col address p  { font-size: 0.82rem; margin-bottom: 6px; line-height: 1.6; }
.footer-col address strong { color: var(--white); font-size: 0.85rem; display: block; margin-bottom: 6px; }
.footer-col address a  { color: rgba(255,255,255,0.6); font-size: 0.82rem; }
.footer-bottom {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 20px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   BURGER — bouton & menu mobile
   ============================================================ */

/* Bouton burger — caché sur desktop */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.25s ease, width 0.3s ease;
  transform-origin: center;
}

/* Croix quand ouvert */
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; width: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer mobile */
.nav-drawer {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--navy-dark);
  z-index: 99;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
  visibility: hidden;
}
.nav-drawer.open {
  max-height: 400px;
  visibility: visible;
}
.nav-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.nav-drawer ul li a {
  display: block;
  padding: 16px 32px;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s, color 0.2s;
}
.nav-drawer ul li a:hover,
.nav-drawer ul li a.active { color: var(--gold); background: rgba(255,255,255,0.04); }
.nav-drawer-social {
  display: flex;
  gap: 20px;
  padding: 20px 32px 28px;
}
.nav-drawer-social a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.nav-drawer-social a:hover { color: var(--gold); }

/* Overlay sombre derrière le drawer */
.nav-overlay {
  position: fixed;
  inset: 0;
  top: 70px;
  background: rgba(0,0,0,0.4);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
 FORMULAIRE DE DEVIS
 ============================================================ */

.zl-wrap {
  max-width: 900px;
  margin: 0 auto;
  margin-bottom: 50px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(27,45,91,0.08);
}

/* ── Hero ── */
.zl-hero {
  background: var(--navy);
  padding: 2rem 2.5rem 1.75rem;
  color: #fff;
}
.zl-hero h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 0.4rem;
  letter-spacing: 0.01em;
}
.zl-hero p {
  font-size: 13px;
  opacity: 0.7;
  margin: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Corps du formulaire ── */
.zl-body { padding: 2rem 2.5rem 2.5rem; }

/* ── Sections ── */
.zl-section { margin-bottom: 1.75rem; }
.zl-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #1B2D5B;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.zl-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}

/* ── Grille champs texte ── */
.zl-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zl-field.full { grid-column: 1 / -1; }

.zl-input {
  background: #fff;
  border: 1.5px solid #D1D9E8;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: 'Raleway', sans-serif;
  color: #1B2D5B;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}
.zl-input::placeholder { color: #9AAABF; }
.zl-input:focus { border-color: #1B2D5B; }
.zl-input.err { border-color: #C0392B; }

textarea.zl-input { resize: vertical; min-height: 90px; }

/* ── Cases à cocher / radio ── */
.zl-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zl-radios  { display: flex; gap: 8px; flex-wrap: wrap; }

.zl-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #F5F7FA;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 13px;
  cursor: pointer;
  font-size: 13px;
  color: #1B2D5B;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.zl-opt:hover { border-color: #1B2D5B; background: #EBF0FA; }
.zl-opt input { accent-color: #1B2D5B; width: 15px; height: 15px; margin: 0; flex-shrink: 0; }
.zl-opt.wide { grid-column: 1 / -1; }

.zl-dims { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }

#autre_dim_wrap { margin-top: 8px; display: none; }

/* ── Bouton ── */
.zl-btn {
  width: 100%;
  background: #1B2D5B;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 0.5rem;
}
.zl-btn:hover:not(:disabled) { background: #253F7A; }
.zl-btn:disabled { opacity: 0.5; cursor: default; }

/* ── Messages ── */
.zl-alert {
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 14px;
  font-weight: 500;
  margin-top: 1rem;
}
.zl-alert.success { display: flex; align-items: flex-start; gap: 10px; background: #EDF4EF; color: #1B6035; }
.zl-alert.error   { display: block; background: #FDEDEC; color: #8B1A1A; }
.zl-alert:not(.success):not(.error) { display: none; }


/* ============================================================
   RESPONSIVE — max 900px
   ============================================================ */
@media (max-width: 900px) {
  .hero {height: 400px; }
  .about,
  .products-inner,
  .brands-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-badge          { right: 10px; top: auto; bottom: 10px; transform: none; }
  .about-text           { padding-left: 0; }
  .hero-text h1         { font-size: 2.4rem; }
  .products-grid        { grid-template-rows: auto; }
  .product-card.matelas { grid-row: span 1; height: 220px; }
  .footer-top           { grid-template-columns: 1fr 1fr; }
  .gallery-grid         { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .gallery-item.large-v,
  .gallery-item.large-h { grid-row: span 1; grid-column: span 1; height: 180px; }
  .brands               { margin: 40px 20px; }
  nav                   { height: 70px; padding: 0 20px; }
  .nav-logo img         { height: 50px; }


  /* Cacher le menu desktop, montrer le burger */
  .nav-right  { display: none; }
  .burger     { display: flex; }
}
/* ============================================================
 RESPONSIVE — max 600px
 ============================================================ */

    @media (max-width: 600px) {
  .about-badge   { right: 10px; top: auto; bottom: 10px; transform: none; padding: 30px 40px;}
  .about-badge h3{ font-size: 2rem; font-weight: lighter; line-height: 2.6rem; margin: 4px 0; }
  .products-text{
    background: #fff;
    padding: 50px 30px;
    border-radius: 20px;
  }
  .products-wrapper {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 180px 120px 120px 140px 140px;
  }
  .card-matelas   { grid-column: 1 / 3; grid-row: 1 / 2; }
  .card-sommiers  { grid-column: 1 / 3; grid-row: 2 / 3; }
  .card-tetes     { grid-column: 1 / 2; grid-row: 3 / 5; }
  .card-oreillers { grid-column: 2 / 3; grid-row: 3 / 4; }
  .card-linge     { grid-column: 2 / 3; grid-row: 4 / 5; }
  .card-bas-1     { grid-column: 1 / 2; grid-row: 5 / 6; }
  .card-bas-2     { grid-column: 2 / 3; grid-row: 5 / 6; }
  .card-bas-grand { grid-column: 1 / 3; grid-row: 6 / 7; }
}

/* ============================================================
 RESPONSIVE FORMULAIRE DEVIS — max 560px
 ============================================================ */

    @media (max-width: 560px) {
  .zl-hero, .zl-body { padding: 1.5rem; }
  .zl-grid2 { grid-template-columns: 1fr; }
  .zl-checks { grid-template-columns: 1fr; }
  .zl-opt.wide { grid-column: 1; }
}
