/* Template design system (project1225 listicle template, FR adaptation)
   Applied across the gambling pages of pharmacie-de-callian.fr */
:root {
  --cc-primary: #1a56db;
  --cc-primary-dark: #1447b8;
  --cc-dark: #f8f9fa;
  --cc-darker: #ffffff;
  --cc-card: #f0f4f8;
  --cc-card-border: #d1d9e0;
  --cc-text: #1f2937;
  --cc-text-muted: #69707d;
  --cc-green: #117f3a;
  --cc-red: #d52222;
  --cc-blue: #1a56db;
  --cc-gold: #b45309;
  --cc-radius: 12px;
}
body.cc-page {
  font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cc-darker);
  color: var(--cc-text);
  line-height: 1.7;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
.cc-page *, .cc-page *::before, .cc-page *::after { box-sizing: border-box; }
.cc-container { max-width: 960px; margin: 0 auto; padding: 0 2rem; }
@media (max-width: 640px) { .cc-container { padding: 0 1rem; } }

/* Header / Nav */
.site-header{position:sticky;top:0;z-index:1000;background:#fff;padding:0.6rem 1.5rem;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;box-shadow:0 1px 4px rgba(0,0,0,0.08);}
.site-header .brand{color:#0f2744;text-decoration:none;font-weight:700;font-size:1.15rem;}
.hb-nav{display:flex;align-items:center;gap:0.15rem;flex-wrap:wrap;}
.hb-nav>a{color:#374151;text-decoration:none;padding:0.25rem 0.75rem;font-size:1.02rem;font-weight:700;white-space:nowrap;transition:color 0.2s;}
.hb-nav>a:hover{color:#1a56db;}
.nav-dropdown{position:relative;}
.nav-dropdown>a{color:#374151;text-decoration:none;padding:0.25rem 0.75rem;font-size:1.02rem;font-weight:700;white-space:nowrap;transition:color 0.2s;display:inline-block;}
.nav-dropdown>a:hover{color:#1a56db;}
.nav-dropdown .dropdown-menu{display:none;position:absolute;top:100%;left:0;background:#fff;border:1px solid #e5e7eb;border-radius:8px;min-width:250px;padding:0.5rem 0;z-index:1001;box-shadow:0 4px 16px rgba(0,0,0,0.1);}
.nav-dropdown:hover .dropdown-menu{display:block;}
.dropdown-menu a{display:block;color:#4b5563;text-decoration:none;padding:0.4rem 1rem;font-size:0.88rem;transition:background 0.2s,color 0.2s;white-space:nowrap;}
.dropdown-menu a:hover{background:#f3f4f6;color:#1a56db;}
.hb-toggle{display:none;background:none;border:none;cursor:pointer;padding:0.5rem;}
.hb-toggle span{display:block;width:24px;height:2px;background:#374151;margin:5px 0;transition:0.3s;}
@media(max-width:768px){
  .hb-toggle{display:block;}
  .hb-nav{display:none;width:100%;flex-direction:column;align-items:flex-start;padding-top:0.5rem;}
  .hb-nav.open{display:flex;}
  .hb-toggle.open span:nth-child(1){transform:rotate(45deg) translate(5px,5px);}
  .hb-toggle.open span:nth-child(2){opacity:0;}
  .hb-toggle.open span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px);}
  .nav-dropdown .dropdown-menu{position:static;box-shadow:none;border:none;padding-left:1rem;min-width:0;}
  .nav-dropdown:hover .dropdown-menu{display:none;}
  .nav-dropdown.open .dropdown-menu{display:block;}
}

/* Hero */
.cc-hero {
  background: linear-gradient(135deg, #1a56db 0%, #1e3a5f 50%, #0f2744 100%);
  padding: 3.5rem 1.25rem 3rem;
  text-align: center;
}
.cc-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
  line-height: 1.2;
}
.cc-hero .cc-subtitle {
  font-size: 1.05rem;
  color: #c7d4e4;
  max-width: 760px;
  margin: 0 auto 1.25rem;
}
.cc-hero .cc-subtitle strong { color: #fff; }
.cc-badge-row { display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.cc-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  font-size: 0.82rem;
  white-space: nowrap; flex-shrink: 0;
  font-weight: 600;
}
.cc-hero .g-author-row, .cc-container .g-author-row{display:flex;align-items:center;justify-content:center;gap:0.35rem;margin:0.9rem 0 0;flex-wrap:wrap;font-size:0.85rem;color:#c7d4e4;}
.cc-hero .g-author-row strong, .cc-container .g-author-row strong{color:#fff;}
.cc-hero .cc-container p.cc-subtitle{color:#c7d4e4;}
@media (max-width: 768px) {
  .cc-hero { padding: 1.25rem 0.75rem; }
  .cc-hero h1 { font-size: 1.35rem !important; margin: 0 0 0.4rem; }
  .cc-hero .cc-subtitle { display: none; }
  .cc-badge-row { display: none !important; }
  .g-author-row { display: none !important; }
}

/* Sections & typography */
.cc-container h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: #1f2937;
  margin: 2.5rem 0 1.25rem;
}
.cc-container h3 { font-size: 1.15rem; font-weight: 600; color: #1f2937; margin: 1.75rem 0 0.75rem; }
.cc-container p { color: var(--cc-text); margin: 0 0 1rem; }
.cc-container ul, .cc-container ol { padding-left: 1.5rem; margin: 0 0 1rem; }
.cc-container li { margin-bottom: 0.4rem; color: var(--cc-text); }
.cc-container a { color: var(--cc-blue); text-decoration: none; }
.cc-container a:hover { text-decoration: underline; }

/* Affiliate rows (lineup) */
.aff-box{border:1px solid #e0e0e0;border-radius:16px;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,0.04);margin:1.5rem 0;}
.aff-row{display:flex;align-items:center;background:#fff;border-bottom:1px solid #e0e0e0;padding:1.35rem 1.75rem;margin:0;gap:1.5rem;transition:background 0.2s;}
.aff-row:last-child{border-bottom:none;}
.aff-row:hover{background:#f8f8fa;}
.aff-rank{flex-shrink:0;font-weight:800;font-size:1.05rem;color:var(--cc-text-muted);width:2rem;text-align:center;}
.aff-logo{flex-shrink:0;width:150px;text-align:center;}
.aff-logo .aff-logo-frame{display:flex;align-items:center;justify-content:center;width:150px;height:84px;border-radius:14px;overflow:hidden;background:#fff;padding:8px;border:1px solid #f0f0f3;margin:0 auto;}
.aff-logo img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;margin:0;}
.aff-logo .wordmark{font-weight:800;font-size:0.95rem;letter-spacing:0.3px;color:#111827;}
.aff-logo .aff-stars{color:#1a56db;font-size:0.85rem;margin-top:0.35rem;letter-spacing:2px;white-space:nowrap;}
.aff-bonus{flex:1;font-size:1.12rem;font-weight:700;color:#4a0e8f;line-height:1.4;}
.aff-bonus .aff-facts{display:block;font-size:0.8rem;font-weight:400;color:var(--cc-text-muted);margin-top:0.25rem;}
.aff-cta{flex-shrink:0;text-align:center;max-width:220px;}
.aff-cta a{display:inline-block;background:#e8450e;color:#fff;font-weight:800;font-size:1.02rem;padding:0.85rem 2.1rem;border-radius:10px;text-decoration:none;text-transform:uppercase;letter-spacing:0.5px;white-space:nowrap;transition:background 0.2s,transform 0.15s;}
.aff-cta a:hover{background:#d13a08;transform:translateY(-2px);text-decoration:none;}
@media(max-width:640px){
  .aff-row{flex-wrap:wrap;gap:0.75rem;padding:1.15rem 1rem;}
  .aff-rank{width:auto;}
  .aff-logo{width:110px;}
  .aff-logo .aff-logo-frame{width:110px;height:64px;border-radius:10px;padding:6px;}
  .aff-bonus{font-size:0.95rem;flex-basis:calc(100% - 175px);}
  .aff-cta{width:100%;max-width:none;}
  .aff-cta a{width:100%;display:block;padding:0.7rem 1rem;}
}
.rg-micro{display:block;font-size:0.66rem;color:var(--cc-text-muted);line-height:1.35;margin-top:0.4rem;font-weight:400;text-transform:none;letter-spacing:0;}

/* Quick picks */
.cc-quickpicks {
  background: var(--cc-card);
  border: 1px solid var(--cc-card-border);
  border-radius: var(--cc-radius);
  padding: 1.75rem;
  margin: 2rem 0;
}
.cc-quickpicks h2 { font-size: 1.1rem; margin: 0 0 1rem; color: var(--cc-primary); text-transform: uppercase; letter-spacing: 0.5px; }
.cc-quickpick-item { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.4rem 0; font-size: 0.95rem; }
.cc-qp-rank { color: var(--cc-primary); font-weight: 700; min-width: 1.7rem; }
.cc-qp-name { font-weight: 600; color: #1f2937; }
.cc-qp-desc { color: var(--cc-text-muted); }

/* Review cards — .rev (existing markup) styled as template cards */
.rev, .pick {
  background: var(--cc-card);
  border: 1px solid var(--cc-card-border);
  border-radius: var(--cc-radius);
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
}
.pick { border: 2px solid var(--cc-primary); }
.pick .tag {
  display: inline-block;
  background: var(--cc-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.85rem;
  border-radius: 50px;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}
.rev .rev-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:0.5rem;}
.rev .rev-head img{max-height:40px;max-width:130px;width:auto;}
.rev .kv{font-size:0.85rem;color:var(--cc-text-muted);margin-bottom:0.75rem;}
.rev-shot{display:block;width:100%;height:auto;border-radius:10px;border:1px solid var(--cc-card-border);margin:0.5rem 0 1rem;box-shadow:0 2px 8px rgba(0,0,0,0.06);}
.rev .pn{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;margin:1.25rem 0;}
@media (max-width: 600px) { .rev .pn { grid-template-columns: 1fr; } }
.rev .pn div{font-size:0.92rem;background:var(--cc-dark);border-radius:8px;padding:0.9rem 1rem;}
.rev .pn strong{display:block;margin-bottom:0.5rem;font-size:0.82rem;text-transform:uppercase;letter-spacing:0.5px;}
.rev .pn div:first-child strong{color:var(--cc-green);}
.rev .pn div:last-child strong{color:var(--cc-red);}
.wordmark{font-weight:800;letter-spacing:0.3px;}
.note{font-weight:800;color:#1f2937;white-space:nowrap;}
.note .star{color:var(--cc-gold);}

/* CTA buttons (in-content) */
.btn, .cc-cta {
  display: inline-block;
  background: linear-gradient(135deg, #1a56db, #1447b8);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 2rem;
  border-radius: 50px;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.5rem;
}
.btn:hover, .cc-cta:hover { background: #1447b8; transform: translateY(-1px); }

/* Numbered steps — top-level ordered lists render as template steps */
main.cc-container > ol { counter-reset: step; padding: 0; list-style: none; margin: 1rem 0 1.5rem; }
main.cc-container > ol > li { counter-increment: step; position: relative; padding: 0.85rem 0 0.85rem 3.5rem; margin: 0; }
main.cc-container > ol > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.85rem;
  width: 2.25rem; height: 2.25rem;
  background: var(--cc-primary); color: #fff;
  font-weight: 700; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
}
main.cc-container > ol > li strong { color: #1f2937; }

/* Data tables — .tbl styled as template network table */
.tbl { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 1rem 0; border: 1px solid var(--cc-card-border); border-radius: var(--cc-radius); overflow: hidden; }
.tbl th, .tbl td { padding: 0.65rem 0.75rem; text-align: left; border-bottom: 1px solid var(--cc-card-border); }
.tbl th { color: var(--cc-primary); font-weight: 600; background: var(--cc-card); }
.tbl td { color: var(--cc-text); }
.tbl tr:last-child td { border-bottom: none; }
@media (max-width: 640px) { .tbl { display: block; overflow-x: auto; } }

/* Callouts / info boxes */
.callout {
  background: rgba(88, 166, 255, 0.08);
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-left: 3px solid var(--cc-primary);
  border-radius: var(--cc-radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
.callout.rg {
  background: rgba(218, 54, 51, 0.08);
  border: 1px solid rgba(218, 54, 51, 0.2);
  border-left: 3px solid var(--cc-red);
}

/* FAQ — <details> styled as template accordion */
.faq { margin: 0 0 1.5rem; }
.faq details { border-bottom: 1px solid var(--cc-card-border); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-size: 1.02rem; font-weight: 600; color: #111827; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 50%;
  transform: translateY(-50%); font-size: 1.5rem; color: var(--cc-primary);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 0 1.25rem; color: var(--cc-text-muted); font-size: 0.95rem; line-height: 1.65; }

/* Responsible gambling box */
.cc-responsible {
  background: var(--cc-card);
  border: 1px solid var(--cc-card-border);
  border-radius: var(--cc-radius);
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--cc-text-muted);
}
.cc-responsible strong { color: #1f2937; }

/* Footer */
.cc-footer{background:#0f2744;border-top:1px solid #1a3a5c;padding:3rem 1.5rem 1.5rem;margin-top:3rem;}
.cc-footer .cols{max-width:880px;margin:0 auto 2rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:2rem;}
.cc-footer h4{color:#93b4d4;font-size:0.85rem;text-transform:uppercase;letter-spacing:0.5px;margin:0 0 0.75rem;}
.cc-footer .cols a{display:block;color:#c5d5e8;text-decoration:none;font-size:0.85rem;padding:0.2rem 0;}
.cc-footer .cols a:hover{color:#fff;}
.cc-footer .base{max-width:880px;margin:0 auto;border-top:1px solid #1a3a5c;padding-top:1.25rem;text-align:center;}
.cc-footer .base p{margin:0 0 0.5rem;font-size:0.82rem;color:#93b4d4;}
.cc-footer .base a{color:#93c5fd;text-decoration:none;}
.cc-footer .base .plus18{display:inline-block;background:#d52222;color:#fff;font-weight:800;border-radius:6px;padding:0 0.5rem;margin-right:0.4rem;}
.cc-footer .base .fine{font-size:0.78rem;color:#7a9abb;}
