@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&display=swap');

:root{
  --bg: #f6f2ee;
  --card: #ffffff;
  --text: #1f1f1f;
  --muted: #5b5b5b;

  /* thème Bacchus */
  --wine: #822;        /* bordeaux */
  --wine2:#a22;
  --gold: #af804e;     /* ton doré */
  --gold2:#d2a56c;

  --line: rgba(0,0,0,.10);
  --shadow: 0 18px 45px rgba(0,0,0,.10);
  --radius: 16px;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ height:100%; }
body{
  font-family: "Segoe UI", Arial, sans-serif;
  background: radial-gradient(1200px 800px at 50% -100px, rgba(175,128,78,.22), transparent 60%),
              linear-gradient(#fbf8f5, var(--bg));
  color: var(--text);
  line-height: 1.6;
}

/* ========= HERO ========= */
.cgu-hero{
  position: relative;
  min-height: 38vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 54px 18px 46px;
  overflow: hidden;

  background:
    radial-gradient(800px 420px at 50% 5%, rgba(210,165,108,.35), transparent 60%),
    linear-gradient(135deg, rgba(130,34,34,.70), rgba(175,128,78,.60)),
    url("/img/autres/champs_de_vigne.jpg") center/cover no-repeat;
}

.cgu-hero__overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 50% 25%, rgba(0,0,0,.18), rgba(0,0,0,.55) 70%),
    linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.45));
  pointer-events:none;
}

.cgu-hero__content{
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.cgu-hero h1{
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: .3px;
  color: #fff;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  margin-bottom: 10px;
  text-shadow: 0 14px 32px rgba(0,0,0,.45);
}

.cgu-hero p{
  color: rgba(255,255,255,.90);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  max-width: 760px;
  margin: 0 auto 18px;
}

.cgu-meta{
  display:flex;
  gap: 14px;
  justify-content:center;
  flex-wrap:wrap;
}

.cgu-meta span{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
}

/* ========= LAYOUT ========= */
.cgu-wrap{
  max-width: 1200px;
  margin: -34px auto 70px; /* remonte sur le hero */
  padding: 0 16px;

  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  align-items:start;
}

.cgu-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 26px 14px;
}

/* ========= TOC ========= */
.cgu-toc{
  position: sticky;
  top: 16px;
}



.cgu-toc h2{
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  color: #1f1f1f;
  margin-bottom: 10px;
}

.cgu-toc nav{
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.cgu-toc a{
  text-decoration:none;
  color: #222;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  font-weight: 600;
  font-size: .95rem;
}

.cgu-toc a:hover{
  background: rgba(175,128,78,.10);
  border-color: rgba(175,128,78,.22);
  color: var(--wine);
  transform: translateX(2px);
}
/* FIX: supprime tout “fond marron” qui viendrait d'une règle globale */
.cgu-toc__box nav {
  background: transparent !important;
}

.cgu-toc__box nav a {
  background: transparent; /* base */
}

.cgu-toc__box::before,
.cgu-toc__box::after,
.cgu-toc__box nav::before,
.cgu-toc__box nav::after {
  content: none !important;
}

/* ========= SECTIONS ========= */
.cgu-section{
  padding: 8px 0 18px;
  border-bottom: 1px dashed rgba(0,0,0,.12);
}

.cgu-section:last-of-type{
  border-bottom: none;
}

.cgu-section h2{
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  color: var(--wine);
  margin: 10px 0 8px;
}

.cgu-section h3{
  font-size: 1.05rem;
  color: #2a2a2a;
  margin: 12px 0 6px;
}

.cgu-section p{
  color: #2b2b2b;
  margin-bottom: 10px;
}

.cgu-link{
  color: var(--wine);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(130,34,34,.35);
}

.cgu-link:hover{
  border-bottom-color: rgba(130,34,34,.75);
}

/* Note bloc */
.cgu-note{
  margin: 12px 0 6px;
  padding: 14px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(175,128,78,.16), rgba(130,34,34,.07));
  border: 1px solid rgba(175,128,78,.25);
  color: #262626;
}

/* Liste */
.cgu-list{
  margin: 10px 0 0 18px;
  color: #2b2b2b;
}
.cgu-list li{ margin: 6px 0; }

/* Contact bloc */
.cgu-contact{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: radial-gradient(800px 200px at 0% 0%, rgba(175,128,78,.14), transparent 60%),
              linear-gradient(#fff, #fff);
}

.cgu-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  white-space:nowrap;

  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--wine), var(--wine2));
  box-shadow: 0 12px 28px rgba(130,34,34,.22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.cgu-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(130,34,34,.28);
  filter: brightness(1.03);
}

/* Bas de page */
.cgu-bottom{
  margin-top: 14px;
  padding: 14px 0 4px;
  display:flex;
  justify-content:flex-end;
}

.cgu-back{
  text-decoration:none;
  font-weight: 800;
  color: #222;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.08);
  transition: background .15s ease, transform .15s ease;
}

.cgu-back:hover{
  background: rgba(175,128,78,.12);
  transform: translateY(-1px);
}

/* ========= RESPONSIVE ========= */
@media (max-width: 980px){
  .cgu-wrap{
    grid-template-columns: 1fr;
    margin-top: -26px;
  }
  .cgu-toc{
    position: relative;
    top: 0;
    order: -1;
  }
}

@media (max-width: 600px){
  .cgu-card{ padding: 18px 16px 10px; }
  .cgu-contact{
    flex-direction: column;
    align-items:flex-start;
  }
  .cgu-btn{ width: 100%; }
}