/* =====================================================================
   Ambitions Féminines Avis — Feuille de style principale
   Palette reprise du site officiel ambitionsfeminines.com :
   - Bleu pétrole  #0C4463
   - Doré          #DABF86 / #C6A664
   - Crème         #F6EFDF
   - Jaune CTA     #FFDF00
   ===================================================================== */

:root {
  --navy:        #0C4463;
  --navy-dark:   #082F46;
  --navy-soft:   #14597f;
  --gold:        #C6A664;
  --gold-light:  #DABF86;
  --gold-pale:   #EBDFC4;
  --cream:       #F6EFDF;
  --cream-2:     #FBF8F1;
  --yellow:      #FFDF00;
  --yellow-deep: #F5C400;
  --ink:         #1c2b34;
  --muted:       #5b6b74;
  --line:        #e7e0d2;
  --white:       #ffffff;
  --success:     #2e8b6f;
  --danger:      #c0563f;

  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 18px 45px -20px rgba(12, 68, 99, .35);
  --shadow-sm:   0 8px 24px -12px rgba(12, 68, 99, .28);
  --maxw:        1140px;
  --font-head:   "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body:   "Inter", "Segoe UI", system-ui, sans-serif;
  --font-script: "Sacramento", cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); letter-spacing: -.3px; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }

p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 820px; }

.script { font-family: var(--font-script); color: var(--gold); font-weight: 400; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  padding: 15px 30px; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center; line-height: 1.25;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-cta {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-deep) 100%);
  color: var(--navy-dark); box-shadow: 0 12px 26px -10px rgba(245, 196, 0, .8);
}
.btn-cta:hover { box-shadow: 0 16px 30px -10px rgba(245, 196, 0, .95); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--gold); }
.btn-outline:hover { background: var(--cream); }
.btn-lg { font-size: 1.12rem; padding: 18px 40px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ---------- Barre d'annonce (site-wide) ---------- */
.topbar {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-deep) 100%);
  color: var(--navy-dark); text-align: center; padding: 11px 18px;
  font-family: var(--font-head); font-weight: 500; font-size: .94rem; line-height: 1.35;
}
.topbar:hover { text-decoration: none; filter: brightness(1.03); }
.topbar strong { font-weight: 700; }
.topbar .topbar-btn {
  background: var(--navy); color: #fff; padding: 5px 15px; border-radius: 50px;
  font-weight: 600; font-size: .84rem; white-space: nowrap;
}
@media (max-width: 640px) {
  .topbar { font-size: .82rem; padding: 9px 14px; gap: 8px; }
  .topbar .hide-sm { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.12rem; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--gold-light); display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  border: 2px solid var(--gold-light);
}
.brand small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--gold); font-size: .68rem; letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--ink); }
.nav-links a:hover { color: var(--gold); text-decoration: none; }
.nav-links a.nav-cta {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-deep) 100%);
  color: var(--navy-dark); padding: 8px 16px; border-radius: 50px; font-weight: 600;
  box-shadow: 0 6px 16px -8px rgba(245, 196, 0, .9); transition: transform .15s ease, box-shadow .15s ease;
}
.nav-links a.nav-cta:hover { color: var(--navy-dark); transform: translateY(-1px); box-shadow: 0 10px 20px -8px rgba(245, 196, 0, 1); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(218,191,134,.35), transparent 60%),
    linear-gradient(160deg, var(--cream) 0%, var(--cream-2) 100%);
  padding: 60px 0 70px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--gold-light);
  color: var(--navy); font-family: var(--font-head); font-weight: 600;
  font-size: .8rem; letter-spacing: .5px; padding: 7px 16px; border-radius: 50px;
  margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.hero p.lead { font-size: 1.14rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-trust { display: flex; align-items: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }

/* Carte auteure dans le hero */
.author-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); text-align: center;
}
.author-card .avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 2rem;
  border: 4px solid var(--cream);
}
.author-card h3 { margin-bottom: 2px; }
.author-card .role { color: var(--gold); font-weight: 600; font-size: .92rem; font-family: var(--font-head); }
.author-card p { font-size: .95rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- Étoiles ---------- */
.stars { --pct: 100%; display: inline-block; position: relative; font-size: 1.05rem; line-height: 1; letter-spacing: 2px; font-family: Arial, sans-serif; }
.stars::before { content: "★★★★★"; color: var(--gold-pale); }
.stars::after {
  content: "★★★★★"; color: #f2b705; position: absolute; left: 0; top: 0;
  width: var(--pct); overflow: hidden; white-space: nowrap; letter-spacing: 2px;
}
.rating-inline { display: inline-flex; align-items: center; gap: 8px; }
.rating-inline b { font-family: var(--font-head); color: var(--navy); }

/* ---------- Sections ---------- */
section { padding: 62px 0; }
section.tight { padding: 46px 0; }
.section-alt { background: linear-gradient(180deg, var(--cream-2), #fff); }
.section-cream { background: var(--cream); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 42px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.kicker { font-family: var(--font-head); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: .78rem; color: var(--gold); display: block; margin-bottom: 10px; }

/* ---------- Grille de formations ---------- */
.formations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.formation-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.formation-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.formation-card .tag { align-self: flex-start; font-family: var(--font-head); font-weight: 600; font-size: .72rem; letter-spacing: .5px; text-transform: uppercase; color: var(--navy); background: var(--cream); border: 1px solid var(--gold-light); padding: 5px 12px; border-radius: 50px; margin-bottom: 14px; }
.formation-card .tag.star { background: var(--navy); color: var(--yellow); border-color: var(--navy); }
.formation-card h3 { margin-bottom: 6px; }
.formation-card .price { font-family: var(--font-head); font-weight: 700; color: var(--gold); }
.formation-card p { font-size: .96rem; color: var(--muted); flex-grow: 1; }
.formation-card .card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; gap: 12px; }
.formation-card .card-link { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .95rem; }

/* ---------- Tableau comparatif ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .96rem; }
table.compare th, table.compare td { padding: 15px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .92rem; }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare tbody tr:nth-child(even) { background: var(--cream-2); }
table.compare a { font-weight: 600; }
table.compare .num { font-family: var(--font-head); font-weight: 700; color: var(--gold); white-space: nowrap; }

/* ---------- Boîte verdict (pages avis) ---------- */
.verdict {
  background: linear-gradient(160deg, #fff, var(--cream-2));
  border: 1px solid var(--gold-light); border-left: 6px solid var(--gold);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; margin: 8px 0 34px;
}
.verdict .score-box { text-align: center; background: var(--navy); color: #fff; border-radius: var(--radius-sm); padding: 22px 14px; }
.verdict .score-box .big { font-family: var(--font-head); font-weight: 700; font-size: 3rem; line-height: 1; color: var(--yellow); }
.verdict .score-box .out { opacity: .8; font-size: .9rem; }
.verdict .score-box .stars { display: block; margin: 10px 0 6px; }
.verdict h2 { margin: 0 0 8px; }
.verdict p { margin: 0 0 16px; color: var(--ink); }
.verdict .verdict-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sommaire ---------- */
.toc { background: var(--cream); border: 1px solid var(--gold-light); border-radius: var(--radius); padding: 22px 26px; margin: 0 0 36px; }
.toc h2 { font-size: 1.05rem; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 1px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 34px; }
.toc li { margin-bottom: 7px; }
.toc a { color: var(--ink); font-size: .96rem; }
.toc a:hover { color: var(--gold); }

/* ---------- Contenu article ---------- */
.article { }
.article h2 { margin-top: 8px; scroll-margin-top: 90px; }
.article h2::before { content: ""; display: block; width: 54px; height: 4px; background: var(--gold-light); border-radius: 4px; margin-bottom: 16px; }
.article h3 { color: var(--navy-soft); margin-top: 28px; }
.article section { padding: 30px 0; border-bottom: 1px dashed var(--line); }
.article section:last-child { border-bottom: 0; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 9px; }

/* Encadrés */
.callout { border-radius: var(--radius-sm); padding: 20px 22px; margin: 22px 0; border: 1px solid var(--line); background: var(--cream-2); }
.callout p:last-child { margin-bottom: 0; }
.callout.info { border-left: 5px solid var(--navy-soft); }
.callout.gold { border-left: 5px solid var(--gold); background: #fffdf6; }
.callout.warn { border-left: 5px solid var(--danger); background: #fdf5f2; }
.callout strong { color: var(--navy); }

/* Pour / Contre */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 24px 0; }
.proscons .box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.proscons h3 { margin-top: 0; display: flex; align-items: center; gap: 8px; }
.proscons .pros h3 { color: var(--success); }
.proscons .cons h3 { color: var(--danger); }
.proscons ul { list-style: none; padding: 0; margin: 0; }
.proscons li { position: relative; padding-left: 28px; margin-bottom: 11px; font-size: .97rem; }
.proscons .pros li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 700; }
.proscons .cons li::before { content: "✕"; position: absolute; left: 0; top: 0; color: var(--danger); font-weight: 700; }

/* Notation détaillée */
.ratings { display: grid; gap: 14px; margin: 24px 0; }
.rating-row { display: grid; grid-template-columns: 200px 1fr 52px; align-items: center; gap: 16px; }
.rating-row .label { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .95rem; }
.rating-row .bar { height: 10px; background: var(--cream); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.rating-row .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-light), var(--gold)); border-radius: 10px; }
.rating-row .val { font-family: var(--font-head); font-weight: 700; color: var(--gold); text-align: right; }

/* Fiche prix */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 24px 0; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); }
.price-card.best { border: 2px solid var(--gold); position: relative; }
.price-card.best::after { content: "Recommandée"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .72rem; padding: 4px 14px; border-radius: 50px; }
.price-card .name { font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.price-card .amount { font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--gold); margin: 6px 0; }
.price-card small { color: var(--muted); }

/* Témoignage / citation */
.quote { border-left: 4px solid var(--gold); background: var(--cream-2); padding: 16px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; color: var(--navy-dark); margin: 22px 0; }
.quote cite { display: block; font-style: normal; font-weight: 600; font-family: var(--font-head); color: var(--gold); margin-top: 8px; font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 22px; font-family: var(--font-head); font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--gold); font-weight: 400; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--muted); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Bandeau CTA ---------- */
.cta-band {
  background:
    radial-gradient(800px 300px at 10% 0%, rgba(218,191,134,.28), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: 44px; text-align: center; box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 620px; margin: 0 auto 24px; }

/* Disclosure affiliation */
.disclosure { background: var(--cream-2); border: 1px dashed var(--gold-light); border-radius: var(--radius-sm); padding: 14px 20px; font-size: .86rem; color: var(--muted); margin: 24px 0; }
.disclosure strong { color: var(--navy); }

/* Fil d'ariane */
.breadcrumb { font-size: .85rem; color: var(--muted); padding: 16px 0 0; }
.breadcrumb a { color: var(--gold); }
.breadcrumb span { margin: 0 6px; }

/* Boîte auteure (bas d'article) */
.author-box { display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: center; background: var(--cream); border: 1px solid var(--gold-light); border-radius: var(--radius); padding: 24px; margin: 40px 0; }
.author-box .avatar { width: 88px; height: 88px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-light), var(--gold)); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; }
.author-box h4 { margin: 0 0 4px; font-size: 1.1rem; }
.author-box .role { color: var(--gold); font-weight: 600; font-size: .88rem; font-family: var(--font-head); }
.author-box p { margin: 8px 0 0; font-size: .93rem; color: var(--muted); }

/* Related */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.related-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.related-card .tag { font-size: .72rem; color: var(--gold); font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.related-card h4 { margin: 6px 0 8px; font-size: 1.02rem; }
.related-card a.more { font-family: var(--font-head); font-weight: 600; font-size: .9rem; }

/* Steps (à propos) */
.timeline { border-left: 3px solid var(--gold-light); padding-left: 26px; margin: 30px 0; }
.timeline .step { position: relative; margin-bottom: 26px; }
.timeline .step::before { content: ""; position: absolute; left: -34px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold-light); }
.timeline .step h4 { margin: 0 0 4px; }
.timeline .step .year { font-family: var(--font-head); font-weight: 600; color: var(--gold); font-size: .85rem; }

/* Stat badges */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; margin: 30px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); }
.stat .n { font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--gold); }
.stat .l { color: var(--muted); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.8); padding: 52px 0 26px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: var(--gold-light); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; font-size: .94rem; }
.footer-brand .brand { color: #fff; }
.footer-brand p { font-size: .92rem; color: rgba(255,255,255,.7); max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 34px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .84rem; color: rgba(255,255,255,.6); }
.footer-bottom a { color: rgba(255,255,255,.7); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .author-card { max-width: 380px; margin: 0 auto; }
  .verdict { grid-template-columns: 1fr; text-align: center; }
  .verdict .verdict-cta { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links {
    position: absolute; top: 62px; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 22px;
    gap: 4px; box-shadow: var(--shadow-sm); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 10px 0; }
  .nav-toggle { display: block; }
  .toc ol { columns: 1; }
  .proscons { grid-template-columns: 1fr; }
  .rating-row { grid-template-columns: 130px 1fr 44px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 22px; }
  .author-box { grid-template-columns: 1fr; text-align: center; }
  .author-box .avatar { margin: 0 auto; }
}
