/* ==========================================================
   hp.css — cougar-femme.org
   Scope #cfblock (homepage) + .cfa (articles)
   V2 : upgrades premium sur base existante
   ========================================================== */

/* =====================================================
   RESET STRICT #cfblock
   ===================================================== */
#cfblock { all: initial; display: block; }
#cfblock *, #cfblock *::before, #cfblock *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
  font-family: "Lato", sans-serif;
}

#cfblock {
  --p:      #8224e3;
  --pk:     #e234c2;
  --deep:   #2d0050;
  --gold:   #ffb3f0;
  --muted:  #6b2080;
  --bg:     #fdf5ff;
  --border: rgba(130,36,227,0.15);
  --sh:     0 2px 14px rgba(130,36,227,0.09);
  --sh-lg:  0 8px 32px rgba(130,36,227,0.13);
  --r:      12px;
  font-size: 15px;
  line-height: 1.6;
  color: #1a001a;
  margin-bottom: 32px;
}

/* =====================================================
   HERO — upgrade : 2e halo + stats strip
   ===================================================== */
#cfblock .hero {
  background: linear-gradient(135deg, #2d0050 0%, #8224e3 55%, #e234c2 100%);
  border-radius: 20px;
  padding: clamp(24px, 5vw, 44px);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(45,0,80,0.28);
}
#cfblock .hero::before {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,179,240,0.12), transparent 65%);
  pointer-events: none;
}
#cfblock .hero::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.09), transparent 70%);
  pointer-events: none;
}
#cfblock .hero > * { position: relative; z-index: 1; }

#cfblock .hero .badge {
  display: inline-block;
  background: rgba(255,179,240,0.18);
  border: 1px solid rgba(255,179,240,0.4);
  color: #ffb3f0;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}
#cfblock .hero h2 {
  font-size: clamp(1.3rem, 3.5vw, 2.1rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
  background: none;
  letter-spacing: -0.02em;
}
#cfblock .hero h2 em { font-style: normal; color: #ffb3f0; }
#cfblock .hero p {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
  margin-bottom: 8px;
  max-width: 680px;
}
#cfblock .hero strong { color: #fff; }

/* Stats strip dans le hero */
#cfblock .hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 36px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
#cfblock .hero-stats .stat-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffb3f0;
  line-height: 1;
}
#cfblock .hero-stats .stat-lbl {
  display: block;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
}

/* =====================================================
   GRILLE 4 CARTES — upgrade : icône en cercle coloré
   ===================================================== */
#cfblock .cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (max-width: 700px) { #cfblock .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { #cfblock .cards { grid-template-columns: 1fr; } }

#cfblock .card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 15px;
  box-shadow: var(--sh);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  color: inherit;
}
#cfblock .card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8224e3, #e234c2);
}
#cfblock .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: rgba(130,36,227,0.28);
  text-decoration: none;
}
#cfblock .card .icon {
  font-size: 1.5rem;
  line-height: 1;
  width: 40px; height: 40px;
  background: var(--bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#cfblock .card .ctitle {
  font-size: 0.93rem;
  font-weight: 700;
  color: #8224e3;
  line-height: 1.2;
}
#cfblock .card .cdesc {
  font-size: 0.79rem;
  color: #6b2080;
  line-height: 1.5;
  flex: 1;
}
/* Flèche discrète en bas */
#cfblock .card .carr {
  font-size: 0.75rem;
  color: #e234c2;
  align-self: flex-end;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  transform: translateX(-4px);
}
#cfblock .card:hover .carr {
  opacity: 1;
  transform: translateX(0);
}

/* =====================================================
   BLOCS TEXTE — upgrade : label de section
   ===================================================== */
#cfblock .tbox {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: var(--sh);
  position: relative;
  overflow: hidden;
}
#cfblock .tbox::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8224e3, #e234c2);
}
#cfblock .tbox h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #8224e3;
  margin-bottom: 10px;
  line-height: 1.3;
  background: none;
}
#cfblock .tbox p {
  font-size: 0.91rem;
  color: #6b2080;
  line-height: 1.78;
  margin-bottom: 8px;
}
#cfblock .tbox p:last-child { margin-bottom: 0; }
#cfblock .tbox a { color: #8224e3; text-decoration: underline; }
#cfblock .tbox strong { color: #2d0050; }

/* Infobox dans tbox */
#cfblock .tbox .info {
  background: var(--bg);
  border-left: 4px solid var(--pk);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}
#cfblock .tbox .info strong { color: var(--p); }

/* =====================================================
   SÉPARATEUR DE SECTION
   ===================================================== */
#cfblock .sec-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 14px;
}
#cfblock .sec-label span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--p);
}
#cfblock .sec-label::before,
#cfblock .sec-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* =====================================================
   FAQ — upgrade : fond légèrement teinté au hover
   ===================================================== */
#cfblock .faq { margin-bottom: 22px; }
#cfblock .faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 8px;
  box-shadow: var(--sh);
  overflow: hidden;
  transition: border-color 0.18s ease;
}
#cfblock .faq-item:has(.faq-q.open) {
  border-color: rgba(226,52,194,0.3);
}
#cfblock .faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 13px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  color: #2d0050;
  text-align: left;
  line-height: 1.4;
  font-family: "Lato", sans-serif;
}
#cfblock .faq-q:hover { background: var(--bg); }
#cfblock .faq-q .arr {
  font-size: 0.9rem;
  color: #e234c2;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  display: inline-block;
}
#cfblock .faq-q.open .arr { transform: rotate(180deg); }
#cfblock .faq-a {
  display: none;
  padding: 0 17px 14px;
  font-size: 0.87rem;
  color: #6b2080;
  line-height: 1.72;
}
#cfblock .faq-a a { color: #8224e3; }
#cfblock .faq-a.open { display: block; }

/* =====================================================
   BLOC TÉMOIGNAGE (nouveau)
   ===================================================== */
#cfblock .quote {
  background: linear-gradient(135deg, #2d0050 0%, #581270 100%);
  border-radius: var(--r);
  padding: 22px 24px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
#cfblock .quote::before {
  content: '«';
  position: absolute;
  top: -10px; left: 14px;
  font-size: 6rem;
  font-weight: 700;
  color: rgba(255,179,240,0.12);
  line-height: 1;
  pointer-events: none;
}
#cfblock .quote p {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.75;
  font-style: italic;
  margin: 0 0 10px;
  position: relative;
  z-index: 1;
}
#cfblock .quote cite {
  font-size: 0.78rem;
  color: #ffb3f0;
  font-style: normal;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

/* =====================================================
   CTA FINAL (nouveau)
   ===================================================== */
#cfblock .cta-strip {
  background: linear-gradient(90deg, #8224e3 0%, #e234c2 100%);
  border-radius: var(--r);
  padding: 20px 24px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
#cfblock .cta-strip p {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
  margin: 0;
  flex: 1;
  min-width: 200px;
}
#cfblock .cta-strip strong { color: #fff; }
#cfblock .cta-strip span {
  display: inline-block;
  background: #fff;
  color: #8224e3 !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  flex-shrink: 0;
  cursor:pointer;
}
#cfblock .cta-strip span:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

/* =====================================================
   RESET + BASE .cfa (articles)
   ===================================================== */
.cfa *:not(.cfa-widget):not(.cfa-widget *),
.cfa *:not(.cfa-widget):not(.cfa-widget *)::before,
.cfa *:not(.cfa-widget):not(.cfa-widget *)::after {
  box-sizing: border-box;
}

.cfa {
  --p:      #8224e3;
  --pk:     #e234c2;
  --deep:   #2d0050;
  --muted:  #6b2080;
  --bg:     #fdf5ff;
  --border: rgba(130,36,227,0.15);
  --sh:     0 2px 14px rgba(130,36,227,0.09);
  --r:      12px;
  font-family: "Lato", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #1a001a;
  display: block;
}

.cfa h2, .cfa h3 {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
}

/* .cfa-box */
.cfa-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: var(--sh);
  position: relative;
  overflow: hidden;
}
.cfa-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--p), var(--pk));
}
.cfa-box h3 { font-size: 1rem; font-weight: 700; color: var(--p); margin: 0 0 10px; line-height: 1.3; background: none !important; }
.cfa-box p { font-size: .91rem; color: var(--muted); line-height: 1.75; margin: 0 0 8px; }
.cfa-box p:last-child { margin-bottom: 0; }
.cfa-box a { color: var(--p); text-decoration: underline; }
.cfa-box strong { color: var(--deep); }

/* .cfa-info */
.cfa-info {
  background: var(--bg);
  border-left: 4px solid var(--pk);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 11px 15px;
  margin: 12px 0;
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.65;
}
.cfa-info strong { color: var(--p); }

/* .cfa-hero */
.cfa-hero {
  background: linear-gradient(135deg, #2d0050 0%, #8224e3 55%, #e234c2 100%);
  border-radius: 20px;
  padding: clamp(18px, 4vw, 36px);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(45,0,80,0.22);
}
.cfa-hero::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  pointer-events: none;
}
.cfa-hero > * { position: relative; z-index: 1; }
.cfa-hero .badge { display: inline-block; background: rgba(255,179,240,0.18); border: 1px solid rgba(255,179,240,0.4); color: #ffb3f0; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 11px; border-radius: 999px; margin-bottom: 10px; }
.cfa-hero h2 { font-size: clamp(1.15rem, 3vw, 1.8rem); font-weight: 700; color: #fff !important; line-height: 1.25; margin: 0 0 10px; background: none !important; }
.cfa-hero h2 em { font-style: normal; color: #ffb3f0; }
.cfa-hero p { font-size: .91rem; color: rgba(255,255,255,.82); line-height: 1.7; margin: 0 0 6px; max-width: 660px; }
.cfa-hero strong { color: #fff; }
.cfa-hero a { color: #ffb3f0; }

/* .cfa-cards */
.cfa-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 600px) { .cfa-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .cfa-cards { grid-template-columns: 1fr; } }

.cfa-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 14px;
  box-shadow: var(--sh);
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  color: inherit;
}
.cfa-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--p), var(--pk)); }
.cfa-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(130,36,227,0.14); text-decoration: none !important; }
.cfa-card .icon { font-size: 1.4rem; line-height: 1; }
.cfa-card .ctitle { font-size: .93rem; font-weight: 700; color: var(--p); line-height: 1.2; }
.cfa-card .cdesc { font-size: .8rem; color: var(--muted); line-height: 1.5; flex: 1; }

/* .cfa-faq */
.cfa-faq { margin-bottom: 20px; }
.cfa-faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 8px; box-shadow: var(--sh); overflow: hidden; }
.cfa-faq-q { width: 100%; background: none; border: none; padding: 13px 17px; display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; font-size: .9rem; font-weight: 700; color: var(--deep); text-align: left; line-height: 1.4; font-family: "Lato", sans-serif; }
.cfa-faq-q .arr { font-size: .9rem; color: var(--pk); flex-shrink: 0; transition: transform .2s ease; display: inline-block; }
.cfa-faq-q.open .arr { transform: rotate(180deg); }
.cfa-faq-a { display: none; padding: 0 17px 13px; font-size: .87rem; color: var(--muted); line-height: 1.7; }
.cfa-faq-a a { color: var(--p); }
.cfa-faq-a.open { display: block; }