/* ============================================================================
 *  Cap sur l'Océan — thème "Barbie Ocean" 💖🌊
 *  Rose bonbon, dégradés funky, coins ultra-arrondis, paillettes.
 *  Mêmes classes que la version sobre : seul le look change.
 *  ==========================================================================*/

:root {
  --pink:       #ff5fa2;   /* rose Barbie principal */
  --pink-deep:  #e0218a;   /* rose magenta soutenu */
  --pink-soft:  #ffd6ec;   /* rose pâle */
  --pink-bg:    #fff0f7;   /* fond rosé */
  --bubble:     #b15cff;   /* violet bubblegum */
  --aqua:       #36d6e7;   /* turquoise pop (le clin d'oeil océan) */
  --lagoon:     #00b3c8;
  --gold:       #ffb800;   /* paillettes dorées */
  --ink:        #5a1140;   /* texte prune foncé, lisible sur rose */
  --muted:      #a25e85;
  --line:       #ffc2e0;
  --paper:      #ffffff;
  --paper-2:    #fff4fa;
  --good:       #18b56b;
  --warn:       #ff9e2c;
  --bad:        #ff3d6e;
  --shadow:     0 12px 34px rgba(224, 33, 138, 0.18);
  --shadow-sm:  0 4px 14px rgba(224, 33, 138, 0.12);
  --radius:     26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Quicksand", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 85% -8%, #ffe1f1 0%, transparent 60%),
    radial-gradient(700px 360px at 5% 10%, #efe0ff 0%, transparent 55%),
    linear-gradient(180deg, #fff4fb 0%, #ffe9f5 100%);
  line-height: 1.55;
}
body::before {
  /* voile de paillettes très léger */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image:
    radial-gradient(2px 2px at 20% 30%, #fff 50%, transparent),
    radial-gradient(2px 2px at 70% 60%, #ffd9ef 50%, transparent),
    radial-gradient(1.5px 1.5px at 40% 80%, #fff 50%, transparent),
    radial-gradient(1.5px 1.5px at 90% 20%, #ffe6b3 50%, transparent);
  background-size: 320px 320px, 280px 280px, 240px 240px, 360px 360px;
}

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
h1, h2, h3, .brand-text, .gauge-num, .btn-primary, .verdict-badge {
  font-family: "Baloo 2", "Quicksand", system-ui, sans-serif;
}

/* ---------- Header / Footer ---------- */
.site-header {
  background: linear-gradient(115deg, var(--pink) 0%, var(--pink-deep) 55%, var(--bubble) 130%);
  color: #fff;
  box-shadow: var(--shadow);
  border-bottom: 4px solid #fff;
}
.header-inner { padding: 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand-mark { font-size: 1.9rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,.15)); }
.brand-sparkle { font-size: 1.1rem; animation: twinkle 2.2s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity: .4; transform: scale(.85) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(18deg); } }
.brand-text { font-size: 1.55rem; font-weight: 800; letter-spacing: .4px; text-shadow: 0 2px 0 rgba(224,33,138,.35); }
.brand-sub { margin: 0; color: #fff; font-weight: 600; font-size: .95rem; opacity: .95; }

.site-footer {
  margin-top: 60px; padding: 26px 0;
  background: linear-gradient(115deg, var(--pink-deep), var(--bubble));
  color: #ffe3f2; font-size: .82rem; font-weight: 600;
}
.site-footer p { margin: 0; }

/* ---------- Screens ---------- */
.screen { display: none; padding: 36px 0 10px; animation: pop .4s cubic-bezier(.2,.8,.3,1.2); }
.screen.is-active { display: block; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.intro h1 { font-size: 2.15rem; margin: 0 0 12px; color: var(--pink-deep); text-shadow: 0 2px 0 #ffd9ee; }
.lead { font-size: 1.1rem; color: var(--ink); max-width: 70ch; font-weight: 500; }
.lead strong { color: var(--pink-deep); }
.hint {
  background: linear-gradient(120deg, #fff, var(--paper-2));
  border: 2px dashed var(--pink); border-radius: 20px;
  padding: 14px 18px; color: var(--muted); font-size: .96rem; font-weight: 600; max-width: 70ch;
}

.section-title {
  font-size: 1.4rem; color: var(--pink-deep); margin: 36px 0 18px; font-weight: 800;
}
.section-title::after { content: ' 💕'; font-size: 1rem; }

/* ---------- Org grid ---------- */
.org-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.org-card {
  text-align: left; cursor: pointer; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #fff 0%, var(--paper-2) 100%);
  border: 2px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
  transition: transform .18s cubic-bezier(.2,.8,.3,1.4), border-color .18s, box-shadow .18s;
  display: flex; flex-direction: column; gap: 8px;
}
.org-card::after {
  content: ''; position: absolute; top: -40%; right: -30%; width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(255,255,255,.8), transparent 70%); opacity: .7;
}
.org-card:hover { transform: translateY(-6px) rotate(-1deg); border-color: var(--pink); box-shadow: 0 18px 40px rgba(255,95,162,.32); }
.org-card:focus-visible { outline: 3px solid var(--bubble); outline-offset: 3px; }
.org-card .ic { font-size: 2.2rem; }
.org-card .nm { font-weight: 800; color: var(--pink-deep); font-family: "Baloo 2", sans-serif; }
.org-card .tg { font-size: .92rem; color: var(--muted); font-weight: 600; }

/* ---------- Cert teaser / library ---------- */
.cert-teaser { margin-top: 32px; }
.link-btn {
  background: none; border: none; color: var(--bubble); cursor: pointer;
  font-size: 1.02rem; font-weight: 700; padding: 6px 0; text-decoration: underline wavy;
  text-underline-offset: 3px;
}
.cert-library { display: grid; gap: 14px; margin-top: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.cert-card {
  background: #fff; border: 2px solid var(--line); border-left: 6px solid var(--aqua);
  border-radius: 18px; padding: 16px;
}
.cert-card .cc-name { font-weight: 800; color: var(--pink-deep); font-family: "Baloo 2", sans-serif; }
.cert-card .cc-scope { font-size: .78rem; color: var(--lagoon); text-transform: uppercase; letter-spacing: .5px; font-weight: 700; margin: 3px 0 6px; }
.cert-card .cc-note { font-size: .9rem; color: var(--muted); margin: 0; font-weight: 500; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary {
  font-size: 1.02rem; font-weight: 800; padding: 13px 26px; border-radius: 999px;
  cursor: pointer; border: 2px solid transparent; transition: transform .12s ease, box-shadow .15s, filter .15s;
  font-family: "Baloo 2", sans-serif;
}
.btn-primary {
  background: linear-gradient(120deg, var(--pink) 0%, var(--pink-deep) 100%); color: #fff;
  box-shadow: 0 8px 20px rgba(224,33,138,.35);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.06); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: #fff; color: var(--pink-deep); border-color: var(--pink); }
.btn-secondary:hover { background: var(--pink-soft); }
.back-btn {
  background: #fff; border: 2px solid var(--line); color: var(--pink-deep); cursor: pointer;
  font-size: .92rem; font-weight: 700; padding: 8px 16px; margin-bottom: 16px; border-radius: 999px;
}
.back-btn:hover { background: var(--pink-soft); }

/* ---------- Quiz head + progress ---------- */
.quiz-head { display: flex; gap: 16px; align-items: center; margin-bottom: 6px; }
.quiz-head-icon {
  font-size: 2.6rem; background: linear-gradient(160deg,#fff,var(--pink-soft));
  border: 3px solid var(--pink); border-radius: 22px; width: 72px; height: 72px;
  display: grid; place-items: center; flex: none; box-shadow: var(--shadow-sm);
}
.quiz-head h2 { margin: 0; color: var(--pink-deep); font-size: 1.55rem; }
.quiz-desc { margin: 4px 0 0; color: var(--muted); font-weight: 500; max-width: 75ch; }

.progress { position: sticky; top: 0; padding: 14px 0; z-index: 5; display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, #ffe9f5 72%, transparent); }
.progress-bar { flex: 1; height: 14px; background: #ffd9ee; border-radius: 999px; overflow: hidden; position: relative; border: 2px solid #fff; }
.progress-bar::after {
  content: ''; position: absolute; inset: 0; width: var(--p, 0%);
  background: linear-gradient(90deg, var(--aqua), var(--pink) 60%, var(--pink-deep));
  transition: width .35s cubic-bezier(.2,.8,.3,1.2);
}
.progress-text { font-size: .88rem; color: var(--pink-deep); font-weight: 700; white-space: nowrap; }

/* ---------- Questions ---------- */
.cat-group { margin: 28px 0; }
.cat-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.cat-group-head .ic { font-size: 1.4rem; }
.cat-group-head h3 { margin: 0; color: var(--pink-deep); font-size: 1.2rem; }
.cat-group-blurb { color: var(--muted); font-size: .92rem; font-weight: 500; margin: 0 0 14px; }

.q-card {
  background: #fff; border: 2px solid var(--line); border-radius: 22px;
  padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.q-card.flag { border-left: 7px solid var(--warn); }
.q-text { font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.q-flagtag { font-size: .72rem; font-weight: 800; color: var(--bad); text-transform: uppercase; letter-spacing: .5px; }
.q-weight { font-size: .72rem; color: var(--muted); font-weight: 700; float: right; }

.q-options { display: flex; flex-wrap: wrap; gap: 9px; margin: 12px 0 8px; }
.q-options label {
  cursor: pointer; border: 2px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-size: .94rem; font-weight: 700; background: var(--paper-2);
  transition: all .14s ease; user-select: none; color: var(--muted);
}
.q-options input { position: absolute; opacity: 0; pointer-events: none; }
.q-options label:hover { border-color: var(--pink); color: var(--pink-deep); transform: translateY(-1px); }
.q-options label:has(input:checked) {
  background: linear-gradient(120deg, var(--pink), var(--pink-deep)); color: #fff; border-color: #fff;
  box-shadow: 0 6px 16px rgba(224,33,138,.3);
}
.q-options label:focus-within { outline: 2px solid var(--bubble); outline-offset: 2px; }

.q-help-toggle { background: none; border: none; color: var(--lagoon); cursor: pointer; font-size: .88rem; font-weight: 700; padding: 0; text-decoration: underline wavy; text-underline-offset: 2px; }
.q-help { margin-top: 10px; font-size: .9rem; color: var(--muted); font-weight: 500; background: var(--paper-2); border-radius: 14px; padding: 12px 14px; border: 2px dashed var(--aqua); }

.quiz-actions { display: flex; justify-content: space-between; gap: 12px; margin: 26px 0 10px; flex-wrap: wrap; }
.quiz-actions.center { justify-content: center; }

/* ---------- Results ---------- */
.result-hero {
  display: flex; gap: 30px; align-items: center; flex-wrap: wrap;
  background: linear-gradient(160deg, #fff 0%, var(--paper-2) 100%);
  border: 3px solid var(--pink); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); margin-bottom: 10px;
}
.gauge {
  --val: 0; --col: var(--warn);
  width: 188px; height: 188px; border-radius: 50%; flex: none; position: relative;
  background: conic-gradient(var(--col) calc(var(--val) * 1%), #ffd9ee 0);
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(224,33,138,.22);
}
.gauge-center {
  width: 138px; height: 138px; background: #fff; border-radius: 50%;
  display: grid; place-items: center; text-align: center; box-shadow: inset 0 0 0 3px var(--pink-soft);
}
.gauge-num { font-size: 2.3rem; font-weight: 800; color: var(--pink-deep); display: block; }
.gauge-lbl { font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }

.result-verdict { flex: 1; min-width: 240px; }
.verdict-badge { display: inline-block; font-weight: 800; color: #fff; padding: 9px 20px; border-radius: 999px; font-size: 1.05rem; box-shadow: var(--shadow-sm); }
.verdict-advice { color: var(--ink); font-weight: 500; margin: 14px 0 8px; }
.legit-line { color: var(--muted); font-weight: 600; font-size: .96rem; }
.legit-line strong { color: var(--pink-deep); }
.answered-note { display: block; font-size: .82rem; color: var(--warn); font-weight: 700; }

.cat-breakdown { display: grid; gap: 13px; }
.cat-row { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 14px 18px; }
.cat-row-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cat-row-name { font-weight: 700; color: var(--pink-deep); }
.cat-row-score { font-weight: 800; }
.cat-bar { height: 11px; background: #ffd9ee; border-radius: 999px; margin-top: 8px; overflow: hidden; border: 1px solid #fff; }
.cat-bar > span { display: block; height: 100%; border-radius: 999px; }

.flags-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.flags-list li {
  background: #fff; border: 2px solid var(--line); border-left: 7px solid var(--bad);
  border-radius: 16px; padding: 14px 16px;
}
.flags-list li.ok { border-left-color: var(--good); }
.flags-list .fl-q { font-weight: 700; color: var(--ink); }
.flags-list .fl-help { font-size: .88rem; color: var(--muted); font-weight: 500; margin: 4px 0 0; }
.flags-empty { color: var(--muted); }

.disclaimer {
  margin: 28px 0 4px; background: linear-gradient(120deg, #fff6fb, #ffe9f5);
  border: 2px dashed var(--pink); color: var(--pink-deep);
  border-radius: 18px; padding: 15px 18px; font-size: .92rem; font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .intro h1 { font-size: 1.7rem; }
  .gauge { width: 156px; height: 156px; }
  .gauge-center { width: 114px; height: 114px; }
  .quiz-actions { flex-direction: column; }
  .quiz-actions .btn-primary, .quiz-actions .btn-secondary { width: 100%; }
}

/* ---------- Print ---------- */
@media print {
  body::before { display: none; }
  .site-header, .site-footer, .back-btn, .quiz-actions, .progress, .cert-teaser { display: none !important; }
  body { background: #fff; }
  .screen { display: none !important; }
  #screen-results.is-active { display: block !important; }
  .result-hero, .q-card, .cat-row, .cert-card, .flags-list li { box-shadow: none; }
}
