/* ==========================================================================
   Cuisinessens — Front office
   Base : maquette « Gamme Easytouch », étendue pour le site dynamique
   CSS3 vanilla — mobile-first, breakpoints : 768px (tablette) / 1024px (desktop)
   ========================================================================== */

:root {
  --cream: #F5EDE3;
  --cream-soft: #FAF8F2;
  --gold: #F1B831;
  --gold-deep: #EEA402;
  --dark: #24292A;
  --ink: #1E2324;
  --near-black: #2C2C2C;
  --neutral-2: #565656;
  --neutral-3: #848484;
  --green: #4C7753;
  --white: #FFFFFF;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1216px;
  --gap: 20px;
  --sage: #CDD5CB;
  --engag-debord: 0px;
  --radius: 10px;
  --radius-sm: 5px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--near-black);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
button { font: inherit; cursor: pointer; }
svg { flex-shrink: 0; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 768px) { .container { padding-inline: 32px; } }
@media (min-width: 1280px) { .container { padding-inline: 0; } }

.center { text-align: center; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}
.center .eyebrow { justify-content: center; }
.center .eyebrow::before { display: none; }

h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--dark);
}
h2 em { font-style: italic; }
@media (min-width: 768px) { h2 { font-size: 3rem; } }
@media (min-width: 1024px) { h2 { font-size: 3.75rem; line-height: 1.2; } }

.lead {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--neutral-2);
  margin-top: 20px;
}
@media (min-width: 1024px) { .lead { font-size: 1.125rem; } }

.section-intro { max-width: 760px; margin: 0 auto 48px; }
@media (min-width: 1024px) { .section-intro { margin-bottom: 72px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: opacity .2s ease, transform .2s ease;
}
.btn:hover { opacity: 0.85; }
.btn-solid { background: var(--gold); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-outline-light { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-outline-dark { background: var(--white); border: 2px solid var(--gold); color: var(--gold); }
.btn-block { width: 100%; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}
.logo { display: flex; flex-direction: column; line-height: 1; }

/* Logo fourni en fichier : il prime sur la version composée en texte. */
.logo-img { display: block; width: auto; height: 41px; }
.site-footer .logo-img { height: 56px; }
@media (max-width: 640px) { .logo-img { height: 34px; } }
.logo-word {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--near-black);
  letter-spacing: -0.5px;
}
.logo-word .accent { color: var(--gold); }
.logo-tag {
  font-size: 0.55rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

.nav-toggle {
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--near-black);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

.nav-menu {
  position: fixed;
  inset: 0 0 0 30%;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  padding: 32px;
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 99;
}
.nav-menu.is-open { transform: translateX(0); }
.nav-menu a {
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav-cta { display: none; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static;
    inset: auto;
    background: none;
    flex-direction: row;
    align-items: center;
    padding: 0;
    transform: none;
    gap: 16px;
    flex: 1;
    justify-content: center;
  }
  .nav-menu a { font-size: 0.85rem; padding-inline: 12px; }
  .nav-cta { display: inline-flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30,35,36,0.85) 0%, rgba(30,35,36,0.55) 45%, rgba(30,35,36,0.05) 100%);
}
.hero-content { position: relative; z-index: 1; padding-block: 64px; }
.hero h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 2.75rem;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--cream);
  margin-bottom: 32px;
}
.hero h1 em { font-style: italic; }
@media (min-width: 768px) { .hero { min-height: 560px; } .hero h1 { font-size: 4rem; } }
@media (min-width: 1024px) { .hero { min-height: 682px; } .hero h1 { font-size: 4.5rem; } }

/* ==========================================================================
   Details gallery (Collections 1)
   ========================================================================== */
.details { padding-block: 64px; }
.details-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.gallery-left, .gallery-right { display: flex; flex-direction: column; gap: var(--gap); }
.gallery-left-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.details-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.g-main { aspect-ratio: 790 / 660; }
.g-right-a { aspect-ratio: 406 / 472; }
.g-right-b { aspect-ratio: 406 / 588; }
.gallery-left-bottom img { aspect-ratio: 385 / 395; }

@media (min-width: 1024px) {
  /* Le rapport des colonnes vient directement de la maquette : 790 / 406.
     L'approximation « 1.9fr 1fr » elargissait la colonne de droite de 6 px,
     ce qui, repercute par les aspect-ratio, faisait depasser l'image 5
     d'une trentaine de pixels. */
  .details-gallery {
    display: grid;
    grid-template-columns: 790fr 406fr;
    align-items: start;
  }

  /* Mosaique complete : les deux colonnes s'alignent exactement.
     La colonne de droite impose sa hauteur via ses aspect-ratio ; celle de
     gauche s'y ajuste, ses deux rangees se partageant la place au prorata
     de la maquette (660 / 395). Cela absorbe les 5 px que le fichier source
     comporte lui-meme entre le bas des deux colonnes. */
  /* On etire uniquement la colonne de gauche. Passer le conteneur entier en
     `align-items: stretch` donnerait une hauteur definie a la colonne de
     droite, dont les images en `height: 100%` se retrouveraient chacune a
     la hauteur totale, puis compressees par flex-shrink. */
  .details-gallery.is-complete .gallery-left {
    align-self: stretch;
    display: grid;
    grid-template-rows: 660fr 395fr;
    gap: var(--gap);
  }
  .details-gallery.is-complete .gallery-left > img,
  .details-gallery.is-complete .gallery-left-bottom,
  .details-gallery.is-complete .gallery-left-bottom img {
    height: 100%;
    aspect-ratio: auto;
  }
}

/* ==========================================================================
   Gamme (Collections 2)
   ========================================================================== */
.gamme { padding-block: 64px; background: var(--cream-soft); }
.gamme h2 { margin-bottom: 40px; }
.gamme-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
  margin-bottom: 40px;
}
.gamme-gallery img { aspect-ratio: 392/543; object-fit: cover; border-radius: var(--radius); width: 100%; height: 100%; }

/* ==========================================================================
   Expertises
   ========================================================================== */
.expertise { padding-block: 64px; }
.expertise--countertop { background: var(--cream-soft); }
.expertise-split { display: flex; flex-direction: column; gap: 40px; }
.expertise-text { max-width: 560px; }
.expertise-media { display: flex; flex-direction: column; gap: var(--gap); }
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.expertise-media img { border-radius: var(--radius); object-fit: cover; width: 100%; }
.media-main { aspect-ratio: 558/368; }
.media-row img { aspect-ratio: 269/368; }

@media (min-width: 1024px) {
  .expertise-split { flex-direction: row; align-items: center; gap: 60px; }
  .expertise-text, .expertise-media { flex: 1; }
}

/* Facades swatches */
.swatches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.swatch img { aspect-ratio: 187/209; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 12px; }
.swatch-code { display: block; font-size: 1.1rem; font-weight: 600; color: var(--dark); }
.swatch-name { display: block; font-size: 0.8rem; color: var(--neutral-3); text-transform: uppercase; }
@media (min-width: 640px) { .swatches { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .swatches { grid-template-columns: repeat(6, 1fr); } }

/* Credence gallery */
.credence-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
  margin-top: 40px;
}
.credence-gallery img { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); width: 100%; }

.credence-swatch { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.credence-swatch img { border-radius: var(--radius-sm); width: 100%; aspect-ratio: 635/155; object-fit: cover; }
.credence-swatch p { color: var(--neutral-3); line-height: 1.8; }

.showroom-cta {
  margin-top: 40px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--dark);
}
.showroom-cta strong { color: var(--gold); font-weight: 700; }

/* ==========================================================================
   Metrics (dark band)
   ========================================================================== */
.metrics { background: var(--ink); padding-block: 48px; }

/* En boîte flexible plutôt qu'en grille : une grille laisse la dernière
   rangée calée à gauche, alors qu'ici cinq points forts doivent se lire
   trois puis deux, chaque rangée centrée sous la précédente. */
.metrics-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 32px;
  row-gap: 24px;
}
.metric {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.metric svg { width: 50px; height: 50px; color: var(--gold); }
.metric strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 2rem;
  color: var(--gold);
}
.metric span {
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--cream);
}

@media (min-width: 640px) {
  /* Deux par rangée : la moitié, gouttière déduite. */
  .metrics-grid > .metric { flex: 0 1 calc((100% - 32px) / 2); }
}
@media (min-width: 1024px) {
  .metrics { padding-block: 58px; }
  .metrics-grid { row-gap: 8px; }
  .metrics-grid > .metric { flex: 0 1 calc((100% - 64px) / 3); min-height: 100px; }
}

/* ==========================================================================
   Autres modèles / carousel
   ========================================================================== */
.autres-modeles { padding-block: 64px; background: var(--cream); position: relative; overflow: hidden; }
.autres-modeles h2 { margin-bottom: 40px; }
.carousel { position: relative; display: flex; align-items: center; gap: 12px; }
.carousel-track {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  flex: 1;
}
.carousel-track::-webkit-scrollbar { display: none; }
.product-card {
  position: relative;
  flex: 0 0 min(85%, 381px);
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
}
.product-card img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.product-card h3 {
  position: absolute;
  left: 20px;
  bottom: 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--cream);
  background: rgba(36,41,42,0.55);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
}
.carousel-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn svg { width: 20px; height: 20px; }
.link-arrow {
  display: block;
  text-align: center;
  margin-top: 32px;
  color: var(--gold);
  font-weight: 500;
  font-size: 0.9rem;
}

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  background: var(--green);
  padding-block: 48px;
  position: relative;
  overflow: hidden;
}
/* La texture vient des Parametres (--cta-fond, posee en style en ligne).
   Sans image envoyee, on retombe sur le degrade : la valeur de repli de var()
   est tout ce qui suit la premiere virgule, donc les deux couches passent. */
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--cta-fond,
                    radial-gradient(circle at 20% 20%, rgba(255,255,255,.22), transparent 55%),
                    radial-gradient(circle at 85% 75%, rgba(0,0,0,.28), transparent 60%));
  background-size: var(--cta-fond-taille, cover);
  background-position: center;
  background-repeat: var(--cta-fond-repetition, no-repeat);
  mix-blend-mode: overlay;
  opacity: 0.55;
  pointer-events: none;
}

/* Dès qu'une image est fournie, aucun mode de fusion n'est appliqué :
   une photo déjà teintée n'a pas à être retouchée. Seule l'opacité
   distingue les réglages. */
.cta-banner--net::before,
.cta-banner--voile::before { mix-blend-mode: normal; }

.cta-banner--net::before   { opacity: 1; }
.cta-banner--voile::before { opacity: 0.35; }
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner-grid {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 1100px;
}
.cta-dark {
  background: var(--dark);
  color: var(--cream);
  padding: 32px;
}
.cta-dark h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 16px;
}
.cta-dark h3 em { font-style: italic; }
/* Seul le paragraphe de description prend ce gris. Écrit « .cta-dark p »,
   il l'emportait aussi sur les arguments et le téléphone, plus spécifique
   que leurs propres classes — d'où les !important qui traînaient ici. */
.cta-dark > p:not([class]) { color: #D8D8D8; line-height: 1.7; margin-bottom: 20px; }

.cta-dark .cta-tags {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5rem;
  text-transform: uppercase;
  color: var(--gold);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-block: 22px;
  margin-bottom: 24px;
}
.cta-dark .cta-tags span { color: var(--white); margin-inline: 8px; }

.cta-dark .cta-phone {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 2rem;
  color: var(--cream);
  margin-bottom: 0;
}

.cta-image { position: relative; }
.cta-image img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }

/* Le bouton se centre sur le visuel, aux trois quarts de sa hauteur,
   comme sur la maquette — et non plus collé dans l'angle. */
.cta-image .btn {
  position: absolute;
  left: 50%;
  top: 72%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .cta-banner-grid { flex-direction: row; margin-inline: auto; }
  .cta-dark { flex: 0 0 52%; padding: 48px; }
  .cta-image { flex: 1; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--cream); }
.footer-top { padding-block: 64px; display: flex; flex-direction: column; gap: 48px; }
.footer-brand p { color: var(--neutral-2); line-height: 1.7; margin-block: 20px; max-width: 420px; }
.footer-ctas { display: flex; flex-direction: column; gap: 16px; max-width: 380px; }
.footer-contact { display: flex; flex-direction: column; gap: 32px; }
.footer-contact h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.footer-contact h4.footer-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
}
.footer-contact p { color: var(--neutral-2); line-height: 1.6; font-size: 0.9rem; }
.footer-contact .accent {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.3rem;
  margin-top: 6px;
}
.footer-contact .jarry { color: var(--gold); font-weight: 600; text-transform: uppercase; font-size: 0.85rem; }

.footer-bottom-bar {
  background: var(--ink);
  color: var(--cream-soft);
}
.footer-bottom-bar .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  padding-block: 24px;
  font-size: 0.85rem;
}
.footer-social { display: flex; align-items: center; gap: 16px; }
.footer-social span { text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1.4px; opacity: 0.7; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.footer-social svg { width: 16px; height: 16px; }

@media (min-width: 768px) {
  .footer-ctas { flex-direction: row; max-width: none; }
}
@media (min-width: 1024px) {
  .footer-top { flex-direction: row; justify-content: space-between; }
  .footer-brand { flex: 1; max-width: 500px; }
  .footer-contact { flex-direction: row; gap: 48px; flex: 1; justify-content: flex-end; }
  .footer-bottom-bar .container { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ==========================================================================
   ===  EXTENSIONS SITE DYNAMIQUE  ==========================================
   Ajouts au CSS de la maquette : accessibilite, navigation multi-pages,
   listing des cuisines, fil d'Ariane, visionneuse d'images.
   ========================================================================== */

/* ---------- Accessibilite ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Les icônes sont dimensionnées par leurs attributs width/height ou par
   les règles de composant (.metric svg, .footer-social svg, …). */
.ico { flex: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Navigation : etat actif + voile mobile ---------- */
.nav-menu a.is-active { color: var(--gold); }
.nav-menu-cta { margin-top: 16px; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 35, 36, .5);
  z-index: 98;
  opacity: 0;
  transition: opacity .3s ease;
}
.nav-backdrop.is-visible { opacity: 1; }
body.nav-open { overflow: hidden; }

@media (min-width: 1024px) {
  .nav-menu-cta { display: none; }
  .nav-backdrop { display: none !important; }
}

/* ---------- Fil d'Ariane ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: rgba(245, 237, 227, .75);
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(245, 237, 227, .75); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span[aria-current] { color: var(--gold); }
.breadcrumb--dark, .breadcrumb--dark a { color: var(--neutral-3); }
.breadcrumb--dark a:hover { color: var(--gold); }

/* ---------- En-tete de page interieure ---------- */
.page-header {
  background: var(--cream);
  padding-block: 56px 64px;
}
.page-header h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 8px;
}
.page-header h1 em { font-style: italic; }
.page-header .lead { max-width: 680px; }
@media (min-width: 768px)  { .page-header h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .page-header { padding-block: 72px 88px; } .page-header h1 { font-size: 3.75rem; } }

.page-header--404 { text-align: center; }
.page-header--404 .lead { margin-inline: auto; }
.page-header--404 .eyebrow { justify-content: center; }
.page-header--404 .eyebrow::before { display: none; }

/* ---------- Grille de cuisines ---------- */
.cuisines-listing { padding-block: 64px; }

.cuisines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}

.cuisine-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(36, 41, 42, .08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.cuisine-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(36, 41, 42, .12);
}
.cuisine-card-media { overflow: hidden; aspect-ratio: 1 / 1; background: var(--cream-soft); }
.cuisine-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.cuisine-card:hover .cuisine-card-media img { transform: scale(1.05); }

.cuisine-card-body { padding: 20px 24px 24px; }
.cuisine-card-body h2,
.cuisine-card-body h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 8px;
}
.cuisine-card-body p {
  color: var(--neutral-2);
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: 12px;
}
.cuisine-card-body .link-arrow { text-align: left; margin-top: 0; }

.empty-state {
  text-align: center;
  color: var(--neutral-3);
  padding-block: 80px;
  font-size: 1.05rem;
}

/* ---------- Galerie : images supplementaires ---------- */
/* Bloc autonome, place apres la mosaique : il ne participe plus a sa grille,
   sinon il en fausserait l'alignement. */
.gallery-extra {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--gap);
  margin-top: var(--gap);
}
.gallery-extra img { aspect-ratio: 1 / 1; border-radius: var(--radius); object-fit: cover; width: 100%; }

/* Curseur sur les images agrandissables */
.js-zoom { cursor: zoom-in; }

/* ---------- Carrousel : lien sur la carte ---------- */
.product-card a { display: block; position: relative; }
.product-card img { transition: transform .5s ease; }
.product-card:hover img { transform: scale(1.04); }

/* ---------- Liens du pied de page ---------- */
.footer-contact .accent a { color: inherit; }
.footer-contact .accent a:hover { text-decoration: underline; }
.cta-phone a { color: inherit; }

/* ---------- Visionneuse d'images ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 23, 24, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .25s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }

.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox-figure figcaption {
  text-align: center;
  color: var(--cream);
  font-size: .85rem;
  opacity: .8;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(245, 237, 227, .1);
  border: 1px solid rgba(245, 237, 227, .25);
  color: var(--cream);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(245, 237, 227, .22); }
.lightbox-close svg,
.lightbox-nav svg { width: 20px; height: 20px; }

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev  { left: 16px; }
.lightbox-next  { right: 16px; }

@media (min-width: 768px) {
  .lightbox-prev { left: 32px; }
  .lightbox-next { right: 32px; }
}

/* ---------- Header : ombre au défilement ---------- */
.site-header { transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(36, 41, 42, .10); }

/* ---------- Carrousel : boutons désactivés ---------- */
.carousel-btn[disabled] { opacity: .35; cursor: default; }
.carousel-btn[hidden]   { display: none; }

/* ==========================================================================
   ===  LISTING DES CUISINES  (/cuisines)  ==============================
   Maquette Figma « Page Gamme Cuisines », node 1:104, cadre 1440 px.
   L'en-tête, le bandeau RDV et le pied de page sont ceux du site.
   ========================================================================== */

/* ==========================================================================
   Hero sombre
   Maquette : bloc 1440 × 476, fond #24292A, texte centré.
   ========================================================================== */
.hero-dark {
  background: var(--dark);
  text-align: center;
  padding-block: 72px 88px;
}
.hero-dark h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 2.5rem;
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--cream);
  margin-inline: auto;
  max-width: 1216px;
}
.hero-dark h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero-dark .lead {
  color: #d8d8d8;
  max-width: 854px;
  margin: 28px auto 0;
}
@media (min-width: 768px)  { .hero-dark h1 { font-size: 3.5rem; } }
@media (min-width: 1024px) {
  .hero-dark { padding-block: 96px 104px; }
  .hero-dark h1 { font-size: 4.5rem; line-height: 73px; letter-spacing: -1.44px; }
  .hero-dark .lead { font-size: 1.25rem; line-height: 2rem; margin-top: 40px; }
}

/* ==========================================================================
   Grille des collections
   Maquette : 3 colonnes de 381 px, gouttière 37 px, cartes carrées.
   ========================================================================== */
.collections {
  background: var(--dark);
  padding-block: 40px 64px;
}
.collections-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px)  { .collections-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
@media (min-width: 1024px) {
  .collections { padding-block: 53px 96px; }
  .collections-grid { grid-template-columns: repeat(3, 1fr); gap: 37px; }
}

.collection-card {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1b1f20;
}
.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.collection-card:hover img,
.collection-card:focus-visible img { transform: scale(1.05); }

/* Pastille du nom, centrée en bas de la carte */
.collection-card-label {
  position: absolute;
  left: 50%;
  bottom: 3.4%;                 /* 13 px sur une carte de 381 px */
  transform: translateX(-50%);
  width: 46.7%;                 /* 178 px sur 381 px */
  min-width: 140px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(36, 41, 42, .55);
  backdrop-filter: blur(2px);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.25rem;
  transition: background .25s ease;
}
.collection-card:hover .collection-card-label { background: rgba(36, 41, 42, .75); }
@media (min-width: 1024px) { .collection-card-label { font-size: 1.5rem; } }

/* ==========================================================================
   Section « Parcourez nos collections »
   Maquette : bloc crème 1440 × 621, feuillage décoratif en haut à droite.
   ========================================================================== */
.espaces {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  padding-block: 64px 72px;
}
@media (min-width: 1024px) { .espaces { padding-block: 111px 166px; } }

.espaces-deco {
  position: absolute;
  top: -39%;
  right: -6%;
  width: 55%;
  max-width: 790px;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
/* `multiply` fond le decor dans le creme : meme une image au fond opaque
   laisse le texte lisible, au lieu de le recouvrir d'un rectangle. */
.espaces-deco img { width: 100%; height: auto; mix-blend-mode: multiply; }
@media (max-width: 767px) { .espaces-deco { display: none; } }

.espaces .container { position: relative; z-index: 1; }

.espaces h2 {
  max-width: 699px;
  margin-inline: auto;
  font-size: 1.85rem;
}
@media (min-width: 768px)  { .espaces h2 { font-size: 2.5rem; } }
@media (min-width: 1024px) { .espaces h2 { font-size: 3rem; line-height: 56px; } }

.espaces-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
}
@media (min-width: 1024px) { .espaces-grid { gap: 39px; margin-top: 72px; } }

.espace-card {
  flex: 0 1 261px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .4);
  box-shadow: 0 6px 15px rgba(0, 0, 0, .15);
  transition: background .25s ease, transform .25s ease;
}
.espace-card:hover {
  background: rgba(255, 255, 255, .72);
  transform: translateY(-3px);
}
.espace-card span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--dark);
  text-align: center;
}

/* Icônes : la boîte extérieure et le dessin gardent leurs dimensions propres */
.espace-icon { display: block; flex: none; }
.espace-icon--bain      { width: 32px; height: 43px; }
.espace-icon--buanderie { width: 43px; height: 46px; }

/* « Habitat » est un groupe de 5 tracés : on conserve leur position relative */
.espace-icon--habitat { position: relative; width: 43px; height: 54.209px; }
.espace-icon--habitat img { position: absolute; display: block; }
.espace-icon--habitat .p1 { inset: 0; width: 100%; height: 100%; }
.espace-icon--habitat .p2 { left: 52.84%; top: 18.74%; width: 8.37%; height: 23.70%; }
.espace-icon--habitat .p3 { left: 38.09%; top: 18.63%; width: 8.70%; height: 23.70%; }
.espace-icon--habitat .p4 { left: 26.05%; top: 72.13%; width: 8.37%; height:  7.56%; }
.espace-icon--habitat .p5 { left: 67.58%; top: 72.13%; width: 8.02%; height:  7.56%; }

/* Le pied de page reste le repère du site : rien ne passe par-dessus. */
.site-footer { position: relative; overflow: hidden; }
.site-footer .container { position: relative; z-index: 1; }

/* ---------- Fil d'Ariane centré, sur fond sombre ---------- */
.breadcrumb--center { justify-content: center; }

/* ---------- Carte sans visuel ---------- */
.collection-card-vide {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, #22262700 0 10px, #ffffff08 10px 20px),
    #1b1f20;
}

.collections-empty {
  text-align: center;
  color: rgba(245, 237, 227, .55);
  padding-block: 64px;
}

/* ---------- Icône de repli, tracée en SVG ---------- */
.espace-icon--svg {
  width: 40px;
  height: 46px;
  color: var(--dark);
  stroke-width: 1.6;
}

/* Une carte sans lien ne doit pas se comporter comme un lien */
div.espace-card { cursor: default; }
div.espace-card:hover { transform: none; background: rgba(255, 255, 255, .4); }

/* ==========================================================================
   ===  PAGE CUISINES  ======================================================
   Maquette Figma node 15:106. L'en-tête, le bandeau RDV, les points forts
   et le pied de page sont ceux du site : rien n'est redéfini ici.
   ========================================================================== */

/* ---------- Hero ---------- */
.pc-hero { position: relative; overflow: hidden; background: var(--ink); }
.pc-hero-media { position: absolute; inset: 0; }
.pc-hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Carrousel du hero : les visuels se superposent et se relaient en fondu.
   Sans JavaScript, seul le premier est marqué actif — la page reste juste. */
.js-hero-carousel img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.js-hero-carousel img.is-active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .js-hero-carousel img { transition: none; }
}
.pc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30,35,36,.92) 0%, rgba(30,35,36,.72) 38%, rgba(30,35,36,.10) 78%);
}
.pc-hero-content { position: relative; z-index: 1; padding-block: 72px 88px; }

.pc-hero h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 2.5rem;
  line-height: 1.06;
  letter-spacing: -1px;
  color: var(--cream);
  max-width: 640px;
}
.pc-hero h1 em { font-style: italic; }
.pc-hero .lead { color: #D8D8D8; max-width: 460px; }

.pc-hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

@media (min-width: 768px)  { .pc-hero h1 { font-size: 3.5rem; } }
@media (min-width: 1024px) {
  .pc-hero-content { padding-block: 104px 120px; }
  .pc-hero h1 { font-size: 4.25rem; }
}

/* ---------- Barre de catégories ---------- */
.pc-categories { position: relative; z-index: 1; background: var(--ink); }
.pc-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(245, 237, 227, .14);
}
@media (min-width: 768px) { .pc-categories-grid { grid-template-columns: repeat(4, 1fr); } }

.pc-categorie {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 12px;
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  transition: background .2s ease;
}
.pc-categorie:hover { background: #262b2c; }
.pc-categorie span {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pc-categorie img { height: 40px; width: auto; }
.pc-categorie-ico { width: 34px; height: 40px; color: var(--cream); stroke-width: 1.4; }
div.pc-categorie { cursor: default; }
div.pc-categorie:hover { background: var(--ink); }

/* ---------- Nos réalisations ---------- */
.pc-real { position: relative; overflow: hidden; background: var(--cream); padding-block: 64px; }
@media (min-width: 1024px) { .pc-real { padding-block: 96px 104px; } }

.pc-real .container { position: relative; z-index: 1; }

/* Deux feuillages encadrent le bloc, comme sur la maquette : la grande palme
   deborde du coin haut droit, la seconde remonte du coin bas gauche.
   `overflow: hidden` sur la section les recadre proprement. */
.pc-real-deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.pc-real-deco img { display: block; width: 100%; height: auto; }

.pc-real-deco--haut { top: -13%; right: -7%; width: 47%; max-width: 700px; }
.pc-real-deco--bas  { bottom: -11%; left: -9%; width: 38%; max-width: 560px; }

/* Quand aucun visuel dedie n'a ete envoye, la palme du haut sert aussi en
   bas : retournee, elle pointe dans l'autre sens, et attenuee elle passe
   derriere les cartes sans les concurrencer. */
.pc-real-deco--bas.is-replie img { transform: scale(-1); }
.pc-real-deco--bas.is-replie { opacity: .55; }

@media (max-width: 767px) { .pc-real-deco { display: none; } }
@media (min-width: 768px) and (max-width: 1023px) {
  .pc-real-deco--haut { width: 54%; top: -8%; }
  .pc-real-deco--bas  { width: 46%; }
}
.pc-real-intro { max-width: 560px; margin-bottom: 48px; }
.pc-real-intro h2 { font-size: 2rem; }
@media (min-width: 768px)  { .pc-real-intro h2 { font-size: 2.75rem; } }
@media (min-width: 1024px) { .pc-real-intro h2 { font-size: 3.25rem; } .pc-real-intro { margin-bottom: 64px; } }

.pc-real-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 640px)  { .pc-real-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pc-real-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.pc-real-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream-soft);
  margin-bottom: 20px;
}
.pc-real-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pc-real-card:hover .pc-real-media img { transform: scale(1.04); }

.pc-real-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 10px;
}
.pc-real-card p { color: var(--neutral-2); font-size: .9rem; line-height: 1.6; margin-bottom: 12px; }
.pc-real-card .link-arrow { text-align: left; margin-top: 0; font-size: .85rem; }

/* ---------- Née en Guadeloupe ---------- */
/* Deux gris se succèdent, comme sur la maquette : le bloc « marque » sur
   le charbon chaud de la charte, le bandeau des points forts sur le ton
   plus profond juste en dessous. La césure est voulue. */
.pc-marque { background: var(--dark); padding-block: 64px; overflow: hidden; }
@media (min-width: 1024px) { .pc-marque { padding-block: 96px; } }

.pc-marque-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .pc-marque-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

.pc-marque h2 { color: var(--cream); font-size: 2rem; }
.pc-marque h2 em { font-style: italic; }
.pc-marque .lead { color: #D8D8D8; }
@media (min-width: 768px)  { .pc-marque h2 { font-size: 2.75rem; } }
@media (min-width: 1024px) { .pc-marque h2 { font-size: 3.25rem; } }

.pc-marque-media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.pc-marque-media img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 285 / 370; }
@media (min-width: 640px) {
  .pc-marque-b { margin-top: 56px; }
}

/* La classe .metrics--centre n'a plus de règle propre : le centrage est
   devenu le comportement normal du bandeau. Elle reste acceptée dans le
   balisage pour ne rien casser ailleurs. */

/* ---------- Savoir-faire ---------- */
.pc-valeurs { background: var(--cream); padding-block: 64px; overflow: hidden; }
@media (min-width: 1024px) { .pc-valeurs { padding-block: 96px; } }

.pc-valeurs-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 1024px) { .pc-valeurs-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

.pc-valeurs h2 { font-size: 2rem; margin-bottom: 32px; }
@media (min-width: 768px)  { .pc-valeurs h2 { font-size: 2.5rem; } }
@media (min-width: 1024px) { .pc-valeurs h2 { font-size: 3rem; } }

.pc-valeurs-liste { display: flex; flex-direction: column; gap: 28px; }
.pc-valeurs-liste li { border-left: 3px solid var(--gold); padding-left: 20px; }
.pc-valeurs-liste h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 8px;
}
.pc-valeurs-liste p { color: var(--neutral-2); font-size: .9rem; line-height: 1.7; }

/* Composition reprise de la maquette, en proportions de la colonne :
     A   82,8 % de large, décalée de 17,2 % vers la droite, format 708/307
     B   64 %   de large, format 547/510
     C   32,6 % de large, format 279/605 — plus haute que B, elle descend
         donc plus bas, ce qui donne son décalage à l'ensemble.
   Les colonnes sont exprimées en fractions issues de ces mêmes cotes. */
.pc-valeurs-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}
.pc-valeurs-media img {
  width: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.pc-valeurs-a { aspect-ratio: 708 / 307; }
.pc-valeurs-b { aspect-ratio: 547 / 510; }
.pc-valeurs-c { aspect-ratio: 279 / 605; }

@media (min-width: 1024px) {
  .pc-valeurs-media {
    grid-template-columns: 547fr 279fr;
    column-gap: 20px;
    row-gap: 14px;
  }

  /* La grande image coiffe les deux colonnes, mais reste en retrait
     du bord gauche : c'est ce décalage qui casse l'alignement trop
     sage d'une grille pleine. */
  .pc-valeurs-a {
    grid-column: 1 / -1;
    margin-left: 17.2%;
  }

  /* Deux visuels seulement : le second occupe toute la largeur
     plutôt que de laisser une colonne vide. */
  .pc-valeurs-media img:nth-child(2):last-child { grid-column: 1 / -1; }
}

@media (min-width: 1024px) { :root { --engag-debord: 132px; } }

/* ---------- Des engagements concrets ---------- */
/* Le panneau enjambe la couture entre le bloc creme et le bloc sombre qui
   suit : il deborde vers le bas, et la section voisine recule d'autant.
   Les deux valeurs viennent de la meme variable pour rester d'accord. */
.pc-engagements {
  position: relative;
  z-index: 2;
  padding-bottom: 64px;
  margin-bottom: calc(var(--engag-debord) * -1);
}
/* Sur mobile le panneau ne deborde pas : il lui faut donc garder sa marge
   basse, que le debordement remplace sur grand ecran. */
@media (min-width: 1024px) { .pc-engagements { padding-bottom: 0; } }
/* Le creme s'arrete la ou commence le bloc suivant ; sous cette ligne,
   c'est le fond du voisin qui se voit, de part et d'autre du panneau. */
.pc-engagements::before {
  content: '';
  position: absolute;
  inset: 0 0 var(--engag-debord) 0;
  background: var(--cream);
}
.pc-engagements > .container { position: relative; z-index: 1; }

.pc-engagements + section,
.pc-engagements + footer { padding-top: calc(var(--engag-debord) + 64px); }
@media (min-width: 1024px) {
  .pc-engagements + section,
  .pc-engagements + footer { padding-top: calc(var(--engag-debord) + 96px); }
}

.pc-engagements-carte {
  position: relative;
  padding: 48px 28px 52px;
  border-radius: var(--radius);
  background: var(--sage);
  color: var(--dark);
  text-align: center;
  overflow: hidden;
}
@media (min-width: 768px)  { .pc-engagements-carte { padding: 64px 48px 68px; } }
@media (min-width: 1024px) { .pc-engagements-carte { padding: 86px 64px 90px; } }

/* La meme texture que le bandeau « Prendre RDV », posee en style en ligne
   depuis le partial. Elle est eclaircie et desaturee ici plutot que dans un
   logiciel : le meme fichier sert aux deux blocs, sombre la-bas, pale ici.
   L'opacite vient de l'administration (Blocs editoriaux → intensite). */
.pc-engagements-carte.a-fond::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--engag-fond);
  background-size: var(--engag-fond-taille, cover);
  background-position: center;
  background-repeat: var(--engag-fond-repetition, no-repeat);
  opacity: var(--engag-fond-alpha, .26);
  filter: grayscale(.35) brightness(1.28);
  pointer-events: none;
}
.pc-engagements-carte > h2,
.pc-engagements-carte > p,
.pc-engagements-carte > .pc-engagements-logos { position: relative; z-index: 1; }

.pc-engagements-carte h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.28;
  color: var(--dark);
  margin-bottom: 40px;
}
@media (min-width: 1024px) { .pc-engagements-carte h2 { margin-bottom: 56px; } }
.pc-engagements-carte h2 em { font-style: italic; }

.pc-engagements-carte p {
  font-size: clamp(.95rem, 1.35vw, 1.15rem);
  line-height: 2;
  color: var(--neutral-2);
  max-width: 40ch;
  margin-inline: auto;
}

.pc-engagements-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
}
@media (min-width: 1024px) { .pc-engagements-logos { gap: 72px; margin-bottom: 56px; } }
.pc-engagements-logos img { height: clamp(58px, 7.2vw, 104px); width: auto; }

/* ---------- Matériaux et finitions ---------- */
.pc-materiaux { background: var(--ink); padding-block: 64px; }
@media (min-width: 1024px) { .pc-materiaux { padding-block: 96px; } }

.pc-materiaux-haut { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .pc-materiaux-haut { grid-template-columns: 1fr 1fr; gap: 64px; } }

.pc-materiaux h2 { color: var(--cream); font-size: 2rem; }
.pc-materiaux h2 em { font-style: italic; }
.pc-materiaux .lead { color: #C9C9C9; font-size: .9rem; }
@media (min-width: 768px)  { .pc-materiaux h2 { font-size: 2.5rem; } }
@media (min-width: 1024px) { .pc-materiaux h2 { font-size: 3rem; } }

.pc-materiaux-media img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3; }

.pc-materiaux-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}
@media (min-width: 640px)  { .pc-materiaux-grid { grid-template-columns: repeat(3, 1fr); } }
.pc-materiaux-grid img { width: 100%; border-radius: var(--radius-sm); object-fit: cover; aspect-ratio: 380 / 280; }

.pc-showroom {
  max-width: 620px;
  margin: 40px auto 0;
  padding: 20px 28px;
  border-radius: var(--radius-sm);
  background: rgba(245, 237, 227, .06);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
  color: var(--cream);
}
.pc-showroom strong { color: var(--gold); }

/* ---------- Feed Instagram ---------- */
.insta { background: var(--cream); padding-block: 64px; text-align: center; }
@media (min-width: 1024px) { .insta { padding-block: 88px; } }

.insta-logo { width: 60px; height: 60px; margin: 0 auto 24px; border-radius: 50%; }
.insta-titre {
  max-width: 760px;
  margin: 0 auto 28px;
  font-size: 1.6rem;
  line-height: 1.3;
}
.insta-titre em { font-style: italic; }
@media (min-width: 768px)  { .insta-titre { font-size: 2rem; } }
@media (min-width: 1024px) { .insta-titre { font-size: 2.35rem; } }

.insta-embed { margin-top: 40px; }
.insta-embed iframe { max-width: 100%; border: 0; }

.insta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 40px;
}
@media (min-width: 640px)  { .insta-grid { grid-template-columns: repeat(4, 1fr); } }
.insta-item { margin: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; }
.insta-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.insta-item:hover img { transform: scale(1.05); }

/* ---------- Témoignages ---------- */
.temoignages { background: var(--ink); padding-block: 64px; }
@media (min-width: 1024px) { .temoignages { padding-block: 88px; } }

.temoignages-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
.temoignages h2 { color: var(--cream); font-size: 2rem; }
.temoignages h2 em { font-style: italic; }
@media (min-width: 768px)  { .temoignages h2 { font-size: 2.5rem; } }
@media (min-width: 1024px) { .temoignages h2 { font-size: 3rem; } }

.temoignages-note { display: flex; align-items: center; gap: 12px; color: var(--cream); }
.temoignages-note small { display: block; font-size: .8rem; opacity: .8; }
.temoignages-note strong { font-size: 1.4rem; font-weight: 700; margin-right: 6px; }
.temoignages-note .etoiles { color: var(--gold); letter-spacing: 1px; }

.avis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px)  { .avis-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .avis-grid { grid-template-columns: repeat(3, 1fr); } }

/* Les proportions de la maquette sont relatives à la largeur de la carte :
   photo 43 %, retrait supérieur 23 %, bande dorée 46 %. On les exprime donc
   en cqw, avec des pixels en repli pour les navigateurs sans requête de
   conteneur — la carte mesure environ 385 px dans la grille à trois colonnes. */
.avis-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  display: flex;
  flex-direction: column;
  container-type: inline-size;
}
.avis-card-haut {
  position: relative;
  background: var(--gold);
  padding: 28px 20px 0;
  height: 178px;
  text-align: center;
  border-radius: 0 0 50% 50% / 0 0 34px 34px;
}
.avis-card-haut .etoiles {
  color: var(--white);
  letter-spacing: 6px;
  font-size: 1.35rem;
  line-height: 1;
}

.avis-photo {
  position: absolute;
  left: 50%;
  top: 88px;
  transform: translateX(-50%);
  width: 165px;
  height: 165px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--white);
  background: var(--cream);
}
.avis-photo--vide {
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--gold);
}

/* Le corps commence sous la photo, qui déborde de la bande dorée. */
.avis-card-corps { padding: 84px 26px 34px; text-align: center; }
.avis-nom { font-weight: 600; font-size: 1.05rem; color: var(--dark); margin-bottom: 18px; }
.avis-card-corps blockquote {
  margin: 0;
  color: var(--neutral-2);
  font-size: .95rem;
  line-height: 1.75;
}

@container (min-width: 1px) {
  .avis-card-haut { height: 46cqw; padding-top: 7.2cqw; }
  .avis-card-haut .etoiles { font-size: 5.4cqw; letter-spacing: 1.6cqw; }
  .avis-photo { top: 23cqw; width: 43cqw; height: 43cqw; }
  /* Bas de la photo (66 cqw) moins bas de la bande (46 cqw), plus l'air
     que la maquette laisse avant le nom. */
  .avis-card-corps { padding-top: 31cqw; }
}
.avis-card-corps blockquote::before { content: '“'; }
.avis-card-corps blockquote::after  { content: '”'; }

.temoignages .link-arrow { margin-top: 40px; }

/* Colonnes de texte des sections à deux colonnes : largeur de lecture
   confortable quand la grille s'élargit au-delà du conteneur. */
.pc-marque-texte,
.pc-valeurs-texte,
.pc-materiaux-texte { max-width: 560px; }

/* Premier visuel du bloc « née en Guadeloupe » : il reste en haut,
   le second descend pour créer le décalage de la maquette. */
.pc-marque-a { align-self: start; }

/* ==========================================================================
   Page Living — salon, salle à manger, espaces de vie
   Maquette Figma 22:1218.
   La mosaïque réutilise .details-gallery des fiches produit : mêmes
   formats (790/406/385), donc mêmes règles, rien n'est redéclaré ici.
   ========================================================================== */
.living-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 420px;
  background: var(--dark);
  overflow: hidden;
}
.living-hero-media { position: absolute; inset: 0; }
.living-hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Le dégradé s'éteint à 55 % de la largeur, comme sur la maquette :
   le texte reste lisible, le sujet de droite n'est pas assombri. */
.living-hero-voile {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 35, 36, 0.8) 0%, rgba(30, 35, 36, 0) 55.288%);
}
.living-hero-contenu { position: relative; padding-block: 80px; }
.living-hero h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 2.5rem;
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--cream);
  max-width: 458px;
}
/* Contrairement au hero sombre des gammes, l'italique reste crème ici. */
.living-hero h1 em { font-style: italic; color: inherit; }
.living-hero .lead { color: #d8d8d8; max-width: 458px; }
.living-hero .btn { margin-top: 32px; }

@media (min-width: 768px) { .living-hero h1 { font-size: 3.5rem; } }
@media (min-width: 1024px) {
  .living-hero { min-height: 682px; }
  .living-hero h1 { font-size: 4.5rem; line-height: 73px; letter-spacing: -1.44px; }
}

.living-intro { background: var(--cream); padding-block: 64px; }
/* Le panoramique se colle au bas de la section, comme sur la maquette.
   Sans lui, la section retrouve sa marge basse. */
.living-intro.has-bande { padding-bottom: 0; }
@media (min-width: 1024px) {
  .living-intro { padding-block: 112px; }
  .living-intro.has-bande { padding-bottom: 0; }
}

/* Bandeau panoramique : bord à bord, il sort du conteneur. */
.living-bande { margin-top: 64px; }
.living-bande img {
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 622;
  object-fit: cover;
}
@media (min-width: 1024px) { .living-bande { margin-top: 112px; } }

.living-design {
  background: var(--cream-soft);
  padding-block: 64px;
}
@media (min-width: 1024px) { .living-design { padding-block: 112px; } }

.living-design-haut { display: grid; gap: var(--gap); }
.living-design-texte { max-width: 558px; }
.living-design-portrait,
.living-design-duo img,
.living-design-large {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.living-design-portrait { aspect-ratio: 501 / 562; }
.living-design-duo { display: grid; gap: var(--gap); margin-top: var(--gap); }
.living-design-duo img { aspect-ratio: 501 / 395; }
.living-design-large { aspect-ratio: 1216 / 395; margin-top: var(--gap); }

@media (min-width: 1024px) {
  /* Rapports repris de la maquette : colonne de texte 715, visuel 501 ;
     rangée du milieu 693 et 501. */
  .living-design-haut {
    grid-template-columns: 715fr 501fr;
    align-items: center;
  }
  .living-design-duo { grid-template-columns: 693fr 501fr; }
  .living-design-duo img:first-child { aspect-ratio: 693 / 395; }
}

/* ==========================================================================
   Page Contact — maquette Figma 68:1688
   ========================================================================== */
.contact-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 320px;
  background: var(--dark);
  overflow: hidden;
  text-align: center;
}
.contact-hero-media { position: absolute; inset: 0; }
.contact-hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* Voile plus dense en bas, comme dans la maquette : le texte y descend. */
.contact-hero-voile {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.5) 18.526%, rgba(26, 26, 26, 0.17) 100%);
}
.contact-hero-contenu { position: relative; padding-block: 72px; }
.contact-hero h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 2.5rem;
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--gold);
}
.contact-hero .lead {
  color: #d8d8d8;
  max-width: 854px;
  margin-inline: auto;
}
@media (min-width: 768px) { .contact-hero h1 { font-size: 3.5rem; } }
@media (min-width: 1024px) {
  .contact-hero { min-height: 475px; }
  .contact-hero h1 { font-size: 4.5rem; line-height: 73px; letter-spacing: -1.44px; }
  .contact-hero .lead { font-size: 1.25rem; }
}

.contact-corps {
  position: relative;
  background: var(--cream);
  padding-block: 64px;
  overflow: hidden;
}
@media (min-width: 1024px) { .contact-corps { padding-block: 112px; } }

/* La palme décorative : hors flux, jamais cliquable, absente sur mobile. */
.contact-deco { display: none; }
@media (min-width: 1024px) {
  .contact-deco {
    display: block;
    position: absolute;
    /* La palme se cale sur l'angle haut DROIT, comme sur la maquette :
       elle deborde du bord droit et du haut de la section. */
    right: -10%;
    top: -20%;
    width: 58%;
    max-width: 830px;
    pointer-events: none;
    opacity: .85;
  }
  .contact-deco img { width: 100%; height: auto; }
}

.contact-intro { position: relative; text-align: center; max-width: 742px; margin: 0 auto 40px; }
.contact-intro h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3125rem;
  line-height: 27px;
  letter-spacing: 0;
  color: var(--dark);
  margin-bottom: 16px;
}
.contact-intro p { color: var(--neutral-2); line-height: 2rem; }
@media (min-width: 1024px) { .contact-intro p { font-size: 1.125rem; } }

/* ---------- Le formulaire ---------- */
.contact-form {
  position: relative;
  width: 100%;
  max-width: 563px;
  margin: 0 auto;
  padding: 24px;
  background: var(--white);
  border: 1px solid #d9d9d9;
  border-radius: 8px;
}
@media (min-width: 640px) { .contact-form { padding: 32px; } }

.contact-form .champ { margin-bottom: 16px; }
.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-size: .875rem;
  color: var(--near-black);
}
.contact-form .requis { color: #b02a1f; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: .9375rem;
  color: var(--near-black);
  background: var(--white);
  border: 1px solid #d9d9d9;
  border-radius: 8px;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.contact-form .en-erreur { border-color: #b02a1f; }
.contact-form .champ-erreur {
  display: block;
  margin-top: 5px;
  font-size: .8125rem;
  color: #b02a1f;
}
.contact-form .btn { margin-top: 8px; }
.contact-alerte {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fceceb;
  border: 1px solid #f3d3d0;
  color: #b02a1f;
  font-size: .875rem;
}
.contact-mention {
  margin-top: 14px;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--neutral-3);
  text-align: center;
}

/* Pot de miel : retiré de l'écran sans display:none, que certains
   automates détectent, et sorti du parcours au clavier. */
.contact-piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Venez nous rencontrer ---------- */
.contact-showroom {
  position: relative;
  margin-top: 64px;
  padding: 40px 24px;
  background: var(--cream-soft);
  border-radius: 12px;
}
@media (min-width: 1024px) { .contact-showroom { margin-top: 112px; padding: 56px; } }

.contact-showroom-intro { text-align: center; max-width: 742px; margin: 0 auto 40px; }
.contact-showroom-intro h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3125rem;
  line-height: 27px;
  letter-spacing: 0;
  color: var(--dark);
  margin-bottom: 16px;
}
.contact-showroom-intro p { color: var(--neutral-2); line-height: 2rem; }
@media (min-width: 1024px) { .contact-showroom-intro p { font-size: 1.125rem; } }

.contact-showroom-grille { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) {
  /* Rapports de la maquette : photo 425, coordonnées 280, actions 319. */
  .contact-showroom-grille { grid-template-columns: 425fr 280fr 319fr; gap: 48px; }
}
.contact-showroom-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 425 / 266;
  object-fit: cover;
  border-radius: var(--radius);
}
.contact-coord-label { font-size: .875rem; color: var(--near-black); margin-bottom: 8px; }
.contact-adresse { font-size: .875rem; line-height: 21px; color: var(--neutral-2); }
.contact-adresse .ville { font-weight: 600; text-transform: uppercase; color: var(--gold); }
.contact-horaires-titre {
  margin-top: 20px;
  font-weight: 700;
  font-size: .875rem;
  color: var(--gold);
  text-transform: uppercase;
}
.contact-horaires { margin-top: 4px; font-size: .875rem; line-height: 24px; color: var(--dark); }
.contact-horaires strong { font-weight: 600; }
.contact-tel {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 32px;
  color: var(--gold);
  margin-bottom: 20px;
}
.contact-actions .btn { width: 100%; box-shadow: 0 3px 10px rgba(0, 0, 0, .15); }

.contact-logo { margin-top: 56px; text-align: center; }
.contact-logo img { display: inline-block; width: 100%; max-width: 478px; height: auto; }

/* Pied de page réduit : la page porte déjà les coordonnées. */
.site-footer--compact { padding-top: 0; }
.site-footer--compact .footer-bottom-bar { margin-top: 0; }

/* ==========================================================================
   Page de confirmation
   ========================================================================== */
.merci {
  background: var(--cream);
  padding-block: 80px;
  text-align: center;
}
@media (min-width: 1024px) { .merci { padding-block: 140px; } }
.merci-ico { width: 56px; height: 56px; color: var(--gold); margin-bottom: 24px; }
.merci h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 2.25rem;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--dark);
}
.merci h1 em { font-style: italic; color: var(--gold); }
.merci .lead { max-width: 620px; margin-inline: auto; }
.merci .btn { margin-top: 32px; }
@media (min-width: 768px) { .merci h1 { font-size: 3rem; } }

/* Aperçu d'un brouillon : visible seulement depuis l'administration. */
.bandeau-apercu {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 10px 20px;
  background: var(--gold);
  color: var(--ink);
  font-size: .875rem;
  line-height: 1.5;
  text-align: center;
}
.bandeau-apercu strong { text-transform: uppercase; letter-spacing: .06em; }

/* ==========================================================================
   Menu « Nos espaces »
   Les cinq univers tiennent sous une seule entrée : la barre reste lisible.
   ========================================================================== */
/* Le groupe est lui-même une boîte flex : en bloc, le bouton se posait sur
   une ligne de base et le jambage ajouté sous lui décalait son texte par
   rapport aux liens voisins, qui n'ont pas cette ligne. */
.nav-groupe {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-groupe-bouton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  /* Même interligne que les liens : sans cela les deux boîtes n'ont pas
     la même hauteur, et le centrage ne tombe pas au même endroit. */
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav-chevron {
  width: 14px;
  height: 14px;
  /* Retiré du calcul de hauteur de ligne : seul le texte la détermine. */
  flex: none;
  align-self: center;
  transition: transform .25s ease;
}
.nav-groupe.is-active > .nav-groupe-bouton { color: var(--gold); }

/* ---------- Mobile : le sous-menu vit dans le flux, en retrait ---------- */
.nav-sous-menu {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding-left: 16px;
  border-left: 2px solid var(--gold);
}
.nav-sous-menu a { font-size: 0.95rem; }

@media (min-width: 1024px) {
  /* ---------- Desktop : panneau flottant, même crème que la barre ------- */
  /* Liens et bouton : même police, même interligne, mêmes marges.
     C'est ce qui garantit une seule et même ligne d'assise.
     Le bouton « Prendre RDV » du menu déroulant est exclu : il est
     réservé au mobile, et ce sélecteur — plus spécifique que le sien —
     annulait le display:none qui le masque au-delà de 1024 px. */
  .nav-menu > a:not(.nav-menu-cta),
  .nav-groupe-bouton {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    line-height: 1.5;
    padding-inline: 12px;
  }
  .nav-groupe-bouton { cursor: pointer; }

  .nav-sous-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    margin: 0;
    padding: 10px;
    border-left: 0;
    min-width: 220px;
    background: var(--cream);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 32px rgba(30, 35, 36, .16);

    /* Fermé : invisible, hors du parcours au clavier, et légèrement
       remonté — c'est ce décalage qui donne l'animation. */
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }

  /* Une petite pointe vers le bouton. */
  .nav-sous-menu::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -6px;
    width: 12px;
    height: 12px;
    background: var(--cream);
    transform: translateX(-50%) rotate(45deg);
  }

  /* Pont invisible : la souris peut descendre du bouton au panneau
     sans traverser un vide qui refermerait le menu. */
  .nav-sous-menu::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
  }

  .nav-groupe:hover > .nav-sous-menu,
  .nav-groupe:focus-within > .nav-sous-menu,
  .nav-groupe.est-ouvert > .nav-sous-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }

  .nav-groupe:hover > .nav-groupe-bouton .nav-chevron,
  .nav-groupe:focus-within > .nav-groupe-bouton .nav-chevron,
  .nav-groupe.est-ouvert > .nav-groupe-bouton .nav-chevron {
    transform: rotate(180deg);
  }

  .nav-sous-menu a {
    display: block;
    padding: 9px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: background .16s ease, color .16s ease;
  }
  .nav-sous-menu a:hover,
  .nav-sous-menu a:focus-visible { background: rgba(30, 35, 36, .06); }
  .nav-sous-menu a.is-active { color: var(--gold); }
}

/* Quelqu'un qui préfère l'immobilité ne subit pas la transition. */
@media (prefers-reduced-motion: reduce) {
  .nav-sous-menu, .nav-chevron { transition: none; }
}

/* ---------- Cases à cocher du formulaire de contact ---------- */
.champ--groupe { border: 0; padding: 0; margin-bottom: 16px; }
.champ--groupe legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: .875rem;
  color: var(--near-black);
}
.champ--groupe .facultatif { color: var(--neutral-3); }

.cases { display: grid; gap: 8px; }
@media (min-width: 420px) { .cases { grid-template-columns: 1fr 1fr; } }

.case {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-size: .9rem;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.case:hover { border-color: var(--gold); }

/* La vraie case reste dans la page — c'est elle qui porte le focus
   clavier et l'état pour un lecteur d'écran. Elle est seulement
   rendue invisible, jamais retirée. */
.case input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.case-marque {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid #c9c9c9;
  border-radius: 5px;
  background: var(--white);
  transition: border-color .16s ease, background .16s ease;
}
.case-marque svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  transition: stroke-dashoffset .2s ease;
}
.case input:checked + .case-marque {
  background: var(--gold);
  border-color: var(--gold);
}
/* Le trait se dessine plutôt que d'apparaître d'un coup. */
.case input:checked + .case-marque svg { stroke-dashoffset: 0; }
.case:has(input:checked) { border-color: var(--gold); background: #fdf6e6; }
.case input:focus-visible + .case-marque {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .case, .case-marque, .case-marque svg { transition: none; }
}

/* Widget anti-robot : centré, et il garde sa place pendant le chargement
   pour que le bouton ne saute pas sous le doigt. */
.champ--turnstile {
  display: flex;
  justify-content: center;
  min-height: 65px;
  margin-bottom: 18px;
}

/* ==========================================================================
   Page Habitat — maquette Figma 39:6155
   Les cartes carrées reprennent .collection-card des listings : seules la
   largeur de la grille et sa centrage changent.
   ========================================================================== */
.habitat-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 340px;
  background: var(--neutral-3);
  overflow: hidden;
  text-align: center;
}
.habitat-hero-media { position: absolute; inset: 0; }
.habitat-hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* Voile plus dense en haut, où le titre se pose. */
.habitat-hero-voile {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(30, 30, 30, .69), rgba(36, 41, 42, .35));
}
.habitat-hero-contenu { position: relative; padding-block: 72px; }
.habitat-hero h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 2.5rem;
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--white);
}
.habitat-hero h1 em { font-style: italic; color: var(--gold); }
.habitat-hero .lead {
  color: var(--white);
  max-width: 854px;
  margin-inline: auto;
}
@media (min-width: 768px) { .habitat-hero h1 { font-size: 3.5rem; } }
@media (min-width: 1024px) {
  .habitat-hero { min-height: 476px; }
  .habitat-hero h1 { font-size: 4.5rem; line-height: 73px; letter-spacing: -1.44px; }
  .habitat-hero .lead { font-size: 1.25rem; }
}

.habitat-espaces {
  background: var(--neutral-3);
  padding-block: 48px 64px;
}
.habitat-espaces-titre {
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--white);
  text-align: center;
  font-size: 1.6rem;
}
.habitat-espaces-titre em { font-style: italic; }
@media (min-width: 1024px) {
  .habitat-espaces { padding-block: 63px 112px; }
  .habitat-espaces-titre { font-size: 2.25rem; line-height: 39px; margin-bottom: 64px; }
}

/* Deux cartes seulement : la grille se resserre et se centre, plutôt que
   de laisser une colonne vide sur trois. */
@media (min-width: 1024px) {
  .collections-grid--duo {
    grid-template-columns: repeat(2, 381px);
    justify-content: center;
    gap: 36px;
  }
}
