:root{
  --bg: #f7f3ef;
  --card: rgba(255,255,255,.86);
  --ink: #2b2b2b;
  --muted: #6b6b6b;
  --gold: #b79a61;
  --border: rgba(183,154,97,.45);
  --shadow: 0 14px 38px rgba(0,0,0,.10);
  --radius: 22px;

  /* Largeur FIXE des colonnes (évite les variations moches avec vw/clamp) */
  --sideW: 360px;
}

/* écrans plus petits */
@media (max-width: 1400px){ :root{ --sideW: 300px; } }
@media (max-width: 1100px){ :root{ --sideW: 240px; } }

*{box-sizing:border-box}
html,body{height:100%}
html{overflow-x:hidden; background-color: var(--bg);}

/* Fond central (propre, lisible) */
html{
  background-image:
    radial-gradient(900px 700px at 50% 10%,
      rgba(255,255,255,.90) 0%,
      rgba(247,243,239,.95) 55%,
      rgba(242,236,230,1) 100%);
  background-repeat:no-repeat;
  background-size:cover;
  background-attachment:scroll;
}

body{
  margin:0;
  min-height:100vh;
  color:var(--ink);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.5;
  overflow-x:hidden;
  background: transparent; /* IMPORTANT : le fond est géré sur html */
}

/* =========================
   COLONNES SANS “GRIS”
   -> on FADE avec un MASQUE (pas avec une couleur)
   ========================= */
html::before,
html::after{
  content:"";
  position:fixed;
  top:0;
  height:100vh;
  width: var(--sideW);
  pointer-events:none;
  z-index:0;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: .95;

  /* Le masque doit couvrir tout le bloc */
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

/* GAUCHE : image + masque qui disparaît vers la droite */
html::before{
  left:0;
  background-image: url('/assets/img/bg/side_left.png');
  background-position: left top;

  /* Noir = visible, transparent = invisible */
  -webkit-mask-image: linear-gradient(to right,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 55%,
    rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to right,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 55%,
    rgba(0,0,0,0) 100%);
}

/* DROITE : image + masque qui disparaît vers la gauche */
html::after{
  right:0;
  background-image: url('/assets/img/bg/side_right.png');
  background-position: right top;

  -webkit-mask-image: linear-gradient(to left,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 55%,
    rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to left,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 55%,
    rgba(0,0,0,0) 100%);
}

/* Mobile : on coupe les colonnes */
@media (max-width: 820px){
  html::before, html::after{ display:none; }
}

/* =========================
   CONTENU
   ========================= */
.container{
  width:min(1100px, calc(100% - 24px));
  margin:0 auto;
  padding:26px 0 56px;
  position:relative;
  z-index:2; /* AU-DESSUS des colonnes */
}

a{color:inherit}
a:hover{color:#000}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 18px;
  border:1px solid var(--border);
  border-radius:999px;
  background:rgba(255,255,255,.72);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.brand{
  display:flex; align-items:center; gap:12px; text-decoration:none;
}
.brand img{width:44px; height:44px; object-fit:contain}
.brand .title{
  font-family: "Great Vibes", cursive;
  font-size:28px;
  letter-spacing:.3px;
}
.brand .subtitle{
  font-family: "Cinzel", serif;
  font-size:12px;
  letter-spacing:.18em;
  color:var(--muted);
  margin-top:-6px;
}

nav a{
  text-decoration:none;
  font-family:"Cinzel", serif;
  letter-spacing:.08em;
  font-size:12px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid transparent;
}
nav a.active, nav a:hover{
  border-color: var(--border);
  background: rgba(183,154,97,.10);
}

.hero{
  margin-top:22px;
  padding:34px 28px;
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.hero h1{
  margin:0 0 10px 0;
  font-family:"Great Vibes", cursive;
  font-size:56px;
  font-weight:400;
}
.hero p{margin:0; color:var(--muted); max-width:70ch}

.grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
  margin-top:18px;
}
@media (max-width: 920px){
  .grid{grid-template-columns:1fr}
  .hero h1{font-size:44px}
}

.card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding:22px;
}

.card h2{
  margin:0 0 10px;
  font-family:"Cinzel", serif;
  letter-spacing:.12em;
  font-size:18px;
}
.card h3{
  margin:18px 0 10px;
  font-family:"Cinzel", serif;
  letter-spacing:.08em;
  font-size:14px;
}
.small{color:var(--muted); font-size:14px}

.prices{
  width:100%;
  border-collapse:collapse;
  margin-top:8px;
}
.prices tr{border-bottom:1px dotted rgba(0,0,0,.18)}
.prices td{
  padding:10px 4px;
  vertical-align:top;
}
.prices td:last-child{
  text-align:right;
  white-space:nowrap;
  font-weight:600;
}

.badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:10px 14px;
  border:1px solid var(--border);
  border-radius:999px;
  background: rgba(255,255,255,.70);
  font-size:13px;
  color:var(--muted);
}

.gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin-top:12px;
}
@media (max-width: 920px){
  .gallery{grid-template-columns: repeat(2, 1fr)}
}
.gallery a{
  display:block;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
}
.gallery img{
  width:100%;
  height:190px;
  object-fit:cover;
  display:block;
}

.footer{
  margin-top:18px;
  padding:18px 18px;
  border-top:1px solid rgba(183,154,97,.35);
  color:var(--muted);
  font-size:13px;
}
.footer strong{color:var(--ink)}

.notice{
  margin-top:10px;
  padding:12px 14px;
  border:1px solid rgba(183,154,97,.35);
  background: rgba(183,154,97,.08);
  border-radius:16px;
  color:#5a4a2b;
  font-size:13px;
}

/* ====== MOBILE FIX ====== */
@media (max-width: 820px){

  /* On coupe les colonnes (c’est ça qui fait “moins bien”) */
  html::before, html::after{ display:none !important; }

  /* On garde une ambiance douce, homogène */
  html{
    background-image:
      radial-gradient(700px 520px at 50% 10%,
        rgba(255,255,255,.92) 0%,
        rgba(247,243,239,.96) 55%,
        rgba(242,236,230,1) 100%),
      repeating-linear-gradient(135deg,
        rgba(183,154,97,.025) 0px,
        rgba(183,154,97,.025) 2px,
        rgba(255,255,255,0) 7px,
        rgba(255,255,255,0) 12px);
    background-size: cover, 260px 260px;
    background-repeat: no-repeat, repeat;
  }

  /* Un peu plus de marge latérale pour respirer */
  .container{ width: min(1100px, calc(100% - 18px)); }
}


@media (max-width: 820px){
  .topbar{
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 14px;
    border-radius: 22px; /* au lieu du gros pill */
  }

  nav{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  nav a{
    display:block;
    width: 100%;
    text-align:center;
    padding: 12px 14px;
    border-radius: 14px;
  }
}
@media (max-width: 820px){

  /* Double trait OR (extérieur) */
  body::before{
    content:"";
    position: fixed;
    inset: 0;
    pointer-events:none;
    z-index: 1;

    /* 2 traits à gauche + 2 traits à droite, collés au bord du viewport */
    background:
      /* GAUCHE trait 1 (or) */
      linear-gradient(to bottom, #D9B870, #B98D35, #E7CE8A)
        left 6px top / 2px 100% no-repeat,

      /* GAUCHE trait 2 (clair) */
      linear-gradient(to bottom, rgba(255,255,255,.85), rgba(255,255,255,.25))
        left 10px top / 1px 100% no-repeat,

      /* DROITE trait 1 (or) */
      linear-gradient(to bottom, #D9B870, #B98D35, #E7CE8A)
        right 6px top / 2px 100% no-repeat,

      /* DROITE trait 2 (clair) */
      linear-gradient(to bottom, rgba(255,255,255,.85), rgba(255,255,255,.25))
        right 10px top / 1px 100% no-repeat;

    /* glow discret + rendu plus "gold" */
    filter: drop-shadow(0 0 5px rgba(185,141,53,.25));
    opacity: .95;
  }

  .container{ position:relative; z-index:2; }
}
