/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  color: #1a2e1a;
  background: #fff0ac; 
  max-width: 960px; 
  margin: 0 auto; 
  padding: 0 1.5rem;
}

/* ===== Layout ===== */
.container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }


/* header.site-header {
  background: linear-gradient(135deg, #1b4332, #2d6a4f);
  color: #fff;
  padding: 2.5rem 1.5rem;
  text-align: center;
}
header.site-header h1 { font-size: 2rem; margin-bottom: .5rem; }
header.site-header p  { opacity: .85; max-width: 640px; margin: 0 auto; } */

header.site-header-book {
  align-items: center;
  padding: 1rem 2rem;
  color: #fff;
  text-align: center;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;

  /* Layer 1: a soft radial highlight to mimic the foil sheen (top-left) */
  /* Layer 2: the base metallic-gold diagonal gradient                  */
  background-image:
    radial-gradient(
      ellipse 120% 90% at 25% 20%,
      rgba(255, 240, 200, 0.55) 0%,
      rgba(255, 240, 200, 0.00) 55%
    ),
    linear-gradient(
      125deg,
      #8a6d2f 0%,      /* deep bronze, bottom-right corner */
      #b8923f 22%,
      #deca73 45%,     /* bright gold band across the middle */
      #e8cd86 55%,
      #cda855 75%,
      #9c7a35 100%     /* back to darker bronze */
    );

  background-attachment: fixed;     /* keeps it stable on scroll (optional) */
  color: #2b2110;                   /* dark ink text reads well on gold */
}

/* Optional: a faint diagonal "light streak" for extra foil realism */
header.site-header-book::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.18) 48%,
    rgba(255, 255, 255, 0.00) 55%
  );
  pointer-events: none;
}

header.site-header-book    { position: relative; }
header.site-header-book h1 { font-size: 2rem; margin-bottom: .5rem; }
header.site-header-book p  { opacity: .85; max-width: 640px; margin: 0 auto; }


/* ===== Cards grid (index) ===== */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.card {
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  transition: transform .15s, box-shadow .15s;
  display: block;
  text-decoration: none;
  color: inherit;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.card h3 { color: #2d6a4f; margin-bottom: .4rem; font-size: 1.05rem; }
.card p  { font-size: .92rem; color: #444; }

/* ===== Coup pages ===== */
.coup-header {
  background: #f5dfa5;
  border-left: 6px solid #8a6d2f;
  padding: 1.5rem 2rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 2rem;
}
.coup-header .badge {
  display: inline-block;
  background: #8a6d2f;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: .25rem .75rem;
  border-radius: 20px;
  margin-bottom: .6rem;
}
.coup-header h1 { font-size: 1.6rem; color: #1b4332; }

.content-block { background: #fff; border-radius: 8px; padding: 1.5rem 2rem; margin-bottom: 1.5rem; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.content-block h3 { color: #f79115; margin-bottom: .75rem; font-size: 1rem; }
.content-block h2 { color: #2d6a4f; margin-bottom: .75rem; font-size: 1.15rem; }
.content-block ul { padding-left: 1.4rem; }
.content-block li { margin-bottom: .4rem; }
.content-block .milieu {text-align: center; margin-bottom: 0px;}

blockquote { border-left: 4px solid #95d5b2; padding: .75rem 1.25rem; background: #f0fdf4; margin: 1rem 0; font-style: italic; }
 
/* ===== Partners ===== */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
  margin-top: 1.5rem;
}
.partner-grid span {
  background: #fff;
  border: 1px solid #d8f3dc;
  border-radius: 6px;
  padding: .6rem 1rem;
  font-size: .9rem;
  text-align: center;
}

/* ===== Navigation ===== */
nav.site-nav {
  background: #8a6d2f;
  padding: .2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
}
nav.site-nav a {
  color: #d8f3dc;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  padding: .25rem .6rem;
  border-radius: 4px;
  transition: background .15s;
}
nav.site-nav a:hover, nav.site-nav a.active { background: #d9b866; color: #fff; }

/* ===== Footer ===== */
footer.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: .8rem;
  color: #666;
  border-top: 1px solid #e0e0e0;
  margin-top: 3rem;
}

/* ===== Back-link ===== */
.back-link { display: inline-block; margin-bottom: 1.5rem; color: #2d6a4f; font-size: .9rem; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

.clock{
  position:absolute; top:50%; left:50%;
  width:60px; height:60px;
  transform: translate(-50%,-50%);
  border-radius:50%; 
  overflow:hidden;
  background: url('/img/horloge.png') center / contain no-repeat;
}


/* ============================== CLANIC CIRCLE ============================== */
 
.clanic-card{
  --size: 90px;
  --radius: 215px;
  position: relative;
  width: 550px;
  height: 550px;
  margin: 24px auto;
  background: #deca73;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.globe{
  position:absolute; top:50%; left:50%;
  width:370px; height:370px;
  transform: translate(-50%,-50%);
  border-radius:50%; 
  overflow:hidden;
  background: url('/img/globe.png') center / contain no-repeat;
}

.token{
  position:absolute; top:50%; left:50%;
  width:var(--size); height:var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  border-radius:50%;
  background: var(--bg);
  border:2px solid #b89b6a;
  display:grid; place-items:center;
  text-align:center; padding:10px; box-sizing:border-box;
  color:#fff;
  font-family: system-ui, sans-serif;
  font-size:32px; line-height:1.1; font-weight:600;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.18), 0 3px 6px rgba(0,0,0,.25);
  transform: rotate(var(--angle)) translate(var(--radius)) rotate(calc(var(--angle) * -1));
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
  text-decoration: none;
  z-index: 1;
}
.token[style*="#e6e0a0"],
.token[style*="#eef1f5"]{ color:#3a2e12; }

/* keyboard-focus ring for accessibility */
.token:focus-visible{
  outline: 3px solid #d8b25a;
  outline-offset: 3px;
}

/* subtle lift on hover to signal interactivity */
.token:hover{
  transform:
    rotate(var(--angle))
    translate(var(--radius))
    rotate(calc(var(--angle) * -1))
    scale(1.08); 
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.3), 0 6px 14px rgba(0,0,0,.35);
  z-index: 100;
}

/* ---------- TOOLTIP ---------- */
.token::after{
  content: attr(data-tip);
  position:absolute;
  left:50%; 
  bottom: calc(100% + 14px);   /* sits just above the circle */
  transform: translateX(-50%) translateY(6px);
  width:max-content; max-width:150px;
  padding:8px 12px;
  background:#241c0e;
  color:#f4e8c8;
  font-size:12px; font-weight:500; line-height:1.3;
  text-align:center;
  border-radius:8px;
  white-space:normal;
  box-shadow:0 6px 16px rgba(0,0,0,.35);
  opacity:0; visibility:hidden;
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
  z-index:5;
}
/* little arrow */
.token::before{
  content:"";
  position:absolute;
  left:50%; 
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  border:6px solid transparent;
  border-top-color:#241c0e;
  opacity:0; visibility:hidden;
  transition: opacity .18s ease;
  z-index:6;
}
.token:hover::after{
  opacity:1; visibility:visible;
  transform: translateX(-50%) translateY(0);
}
.token:hover::before{
  opacity:1; visibility:visible;
}

.token.tip-below::after{
  bottom: auto;
  top: calc(100% + 14px);              /* place below the circle  */
  transform: translateX(-50%) translateY(-6px);  /* slide-up entrance */
}
.token.tip-below:hover::after{
  transform: translateX(-50%) translateY(0);
}

.token.tip-below::before{
  bottom: auto;
  top: calc(100% + 6px);               /* arrow sits below circle  */
  border-top-color: transparent;       /* flip arrow direction     */
  border-bottom-color: #241c0e;
}
 /* END of CSS */