
:root{
  --overlay-bg: rgba(15, 15, 15, 0.10); /* ~90% transparent */
  --card-bg: rgba(20, 20, 20, 0.18);
  --text: #f6f3ee;
  --accent: #c8a96b;
  --accent-2: #e5d3a1;
  --shadow: 0 8px 30px rgba(0,0,0,.25);
  --maxw: 1100px;
  --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{box-sizing:border-box}
html, body{height:100%}
body{
  margin:0;
  font-family: var(--font-sans);
  color: var(--text);
  line-height:1.6;
  background:#000;
}

.background{
  position:fixed; inset:0;
  background: url('assets/image_fond.jpg') center/cover no-repeat;
  z-index:-2;
}
.background::after{
  content:""; position:absolute; inset:0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,.25) 100%);
}

.page{min-height:100svh; display:flex; flex-direction:column}

.top-band .logo{height: clamp(54px, 10svh, 120px); width:auto; filter: drop-shadow(0 6px 24px rgba(0,0,0,.4))}

.content-overlay{
  height:80svh;
  background: var(--overlay-bg);
  -webkit-backdrop-filter: blur(1.2px);
  backdrop-filter: blur(1.2px);
  border-top-left-radius: 18px; border-top-right-radius: 18px;
  box-shadow: var(--shadow);
  overflow:hidden; display:flex; flex-direction:column;
}

.scroll-area{overflow:auto; padding: clamp(16px, 3vw, 36px); scroll-behavior:smooth}
.scroll-area::-webkit-scrollbar{width:10px}
.scroll-area::-webkit-scrollbar-thumb{background: rgba(255,255,255,.25); border-radius:8px}

h1,h2,h3{font-family:var(--font-serif); font-weight:600; margin:0 0 .6em}
h1{font-size:clamp(28px, 4vw + 8px, 56px); letter-spacing:.5px}
h2{font-size:clamp(20px, 2.4vw + 4px, 34px); color:var(--accent)}

p{margin:.4em 0; text-wrap: pretty}
.lead{font-size:clamp(16px, 1.2vw + 4px, 20px); opacity:.95}

.cta-bar{
  display:flex; align-items:center; justify-content:center;
  gap:12px; padding: 14px clamp(14px, 3vw, 28px) 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(to top, rgba(0,0,0,.18), transparent);
}

.button{
  display:inline-flex; align-items:center; gap:10px;
  padding: 12px 22px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color:#2b2212; border-radius: 999px; text-decoration:none; font-weight:600;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
}
.button:hover{ transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0,0,0,.45)}
.button:active{ transform: translateY(0) scale(.99)}

.footer-note{text-align:center; font-size:12px; opacity:.7}

/* Page 2 */
.grid{
  width:min(92vw, var(--maxw)); margin: 0 auto;
  display:grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 2.2vw, 22px);
}
.card{
  grid-column: span 12;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px; padding: clamp(16px, 2.2vw, 24px);
  box-shadow: var(--shadow);
  display:flex; flex-direction:column; gap:8px;
}
.card h3{margin:.1em 0 .2em}
.card p{opacity:.95}
.badge{align-self:flex-start; padding:6px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.2); font-size:12px; opacity:.9}

@media (min-width:700px){ .card{grid-column: span 6;} }
@media (min-width:1024px){ .card{grid-column: span 3;} }

@media (max-width: 600px) {
  
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 540px; /* garantit une hauteur égale entre les 4 produits */
}

.product-img {
  width: 100%;
  height: 280px; /* Hauteur réduite */
  object-fit: contain; /* Affiche l’image entière sans la couper */
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.08); /* fond léger pour combler autour */
  margin-bottom: 10px;
}

@media (max-width: 600px) {
  .product-img {
    height: 200px;
  }
}

/* ====== Modal / Lightbox ====== */
.modal-backdrop{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(2px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 50;
}
.modal-backdrop[aria-hidden="false"]{ display:flex; }

.modal{
  width: min(92vw, 980px);
  max-height: 86svh;
  background: rgba(22,22,22,.92);
  border:1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  display:grid;
  grid-template-columns: 1fr;
  overflow:hidden;
}
@media (min-width: 900px){
  .modal{ grid-template-columns: 1fr 1fr; }
}

.modal-img{
  width:100%; height: 100%; max-height: 420px;
  object-fit: contain; background: rgba(255,255,255,.06);
}

.modal-content{
  padding: clamp(16px, 2.4vw, 28px);
  overflow:auto;
}
.modal h3{ margin:.2em 0 .4em; font-family: var(--font-serif) }
.modal .badge{ margin-bottom: 8px }
.modal .meta{ font-size: 14px; opacity:.85; margin-bottom: 12px }

.modal-actions{
  display:flex; gap:12px; margin-top:16px; flex-wrap:wrap;
}
.icon-btn{
  appearance:none; border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  padding: 10px 14px; color: var(--text);
  cursor:pointer;
}
.icon-btn:hover{ background: rgba(255,255,255,.1) }

.modal-close{
  position:absolute; top:14px; right:14px;
  width:40px; height:40px;
  border-radius:999px; border:1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.35);
  color:#fff; cursor:pointer;
}
.modal-close:hover{ background: rgba(0,0,0,.5) }

/* Correction d'alignement spécifique pour le produit "Sérum capillaire" */
.produit.serum-capillaire, .produit#serum-capillaire {
  margin-top: -25px;
}

.main-nav a:hover,.main-
@media (max-width:640px){}


/* Center logo at top */
.top-band { text-align: center; padding-top: 1rem; }


/* Contact card (responsive modal) */
#contact-modal{ display:none; } /* hidden by default (fallback) */
#contact-modal[aria-hidden="false"]{ display:flex; }
#contact-modal .contact-card{
  width: min(900px, 60vw);
  max-width: 95vw;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.55);
}
@media (max-width: 640px){
  #contact-modal .contact-card{ width: 100vw; max-width: 100vw; border-radius:0 }
}


/* Uniformise la hauteur et la police des boutons du bas */
.button {
  height: 52px;              /* même hauteur pour tous les boutons */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;           /* même largeur interne */
  box-sizing: border-box;
}


/* Uniformise la hauteur et la police des boutons du bas */
.button {
  height: 52px;              
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  box-sizing: border-box;
  font-size: 16px;           
  font-weight: 600;          
}


/* --- Mobile fixes: stack footer buttons and adjust spacing --- */

/* === Override mobile: boutons "Nos produits" et "Contact" côte à côte === */
@media (max-width: 640px){
  .cta-bar{
    display: flex;
    flex-wrap: nowrap;         /* empêcher le retour à la ligne */
    gap: 10px;
    padding: 12px;
  }
  .cta-bar .button{
    flex: 1 1 0;               /* deux boutons se partagent la ligne */
    max-width: 50%;            /* limite à 50% chacun */
    width: auto;               /* pas de largeur forcée à 100% */
    height: 48px;
    font-size: 0.9rem;         /* police légèrement réduite */
  }
}

/* === Language switch: "En / Fr" pill === */
.lang-switch{
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
  font-size: 12px;
  line-height: 1;
}
.lang-switch a, .lang-switch .current{
  text-decoration: none;
  color: var(--text);
  display: inline-block;
}
.lang-switch .current{
  opacity: 0.6;
  pointer-events: none;
}
.lang-switch a:hover{ filter: brightness(1.08); }
.lang-switch::before{
  content: "";
}
.lang-switch a + .current::before,
.lang-switch .current + a::before{
  content: "/";
  display: inline-block;
  opacity: 0.6;
  margin: 0 2px 0 2px;
}
@media (max-width: 640px){
  .lang-switch{ top: 8px; right: 8px; font-size: 11px; padding: 6px 9px; gap: 6px; }
}
