/* Alexandrine-Psy — feuille de style
   Couleurs issues du logo : bleu pétrole, orange, vert sauge */
:root {
  --blue: #0c4a73;
  --blue-dark: #083652;
  --orange: #fb7027;
  --orange-d: #c24607;      /* orange foncé : texte et boutons (contraste AA) */
  --sage: #7fa58a;
  --sage-soft: #e7f0ea;
  --cream: #fbf7f2;
  --peach: #fff0e6;
  --ink: #1f2d38;
  --muted: #5a6872;
  --line: #e6dfd6;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(12, 74, 115, .10);
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7;
  color: var(--ink); background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); color: var(--blue); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.45rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); }
.center { text-align: center; }
.small { font-size: .9rem; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: .7rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 242, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--blue); }
.brand img { width: 44px; height: auto; }
.menu { display: flex; align-items: center; gap: .3rem; }
.menu a { text-decoration: none; color: var(--ink); padding: .5rem .9rem; border-radius: 999px; font-size: .98rem; font-weight: 500; }
.menu a:hover, .menu a.active { background: var(--sage-soft); color: var(--blue); }
.menu a.menu-cta { background: var(--orange-d); color: #fff; }
.menu a.menu-cta:hover, .menu a.menu-cta.active { background: var(--blue); color: #fff; }
.burger { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; padding: 11px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 3px; border-radius: 3px; background: var(--blue); transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

/* ---------- Vues ---------- */
.view[hidden] { display: none; }
.js .view:not([hidden]) { animation: fade .45s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.view > .wrap:last-child, .view > div:last-child { margin-bottom: 0; }
main { min-height: 60vh; }
main:focus { outline: none; }

/* ---------- Boutons ---------- */
.btn { display: inline-block; text-decoration: none; font: inherit; font-weight: 600; text-align: center; cursor: pointer; border: 2px solid transparent; border-radius: 999px; padding: .95rem 1.8rem; line-height: 1.3; transition: transform .15s, background .2s, color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(12, 74, 115, .18); }
.btn-primary { background: var(--orange-d); color: #fff; }
.btn-primary:hover { background: #a63a04; }
.btn-secondary { background: var(--blue); color: #fff; }
.btn-secondary:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.link { font-weight: 600; color: var(--orange-d); text-decoration: none; }
.link::after { content: " →"; }
.link:hover { text-decoration: underline; }
.link-btn { background: none; border: 0; font: inherit; color: var(--muted); cursor: pointer; padding: .5rem 0; margin-top: 1rem; text-decoration: underline; }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--orange-d); margin-bottom: .8rem; }
.eyebrow-light { color: #ffd2b8; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); }

/* ---------- Accueil ---------- */
.hero { background: radial-gradient(circle at 85% 10%, var(--peach) 0, transparent 45%), radial-gradient(circle at 10% 90%, var(--sage-soft) 0, transparent 50%), var(--cream); padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero-in { text-align: center; max-width: 820px; }
.hero-logo { width: clamp(150px, 26vw, 230px); margin: 0 auto 1rem; }
.hero .lead { max-width: 640px; margin-inline: auto; }
.choice { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.choice .btn { flex: 1 1 260px; max-width: 340px; display: flex; align-items: center; justify-content: center; min-height: 64px; font-size: 1.05rem; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding-block: clamp(2rem, 5vw, 3rem) clamp(3rem, 7vw, 5rem); }
.card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); border-top: 5px solid var(--orange); }
.card:nth-child(2) { border-top-color: var(--blue); }
.card h2 { font-size: 1.4rem; }

/* ---------- Pages intérieures ---------- */
.page-hero { background: var(--sage-soft); padding: clamp(2.5rem, 6vw, 4.5rem) 0; text-align: center; }
.page-hero-adult { background: linear-gradient(135deg, var(--peach), var(--sage-soft)); }
.page-hero .lead { margin: 0 auto; }

.prose { padding-block: clamp(2.5rem, 6vw, 4rem) 1rem; }
.prose h2 { margin-bottom: .8em; }
.signs { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: .8rem; }
.signs li { background: #fff; border-left: 5px solid var(--sage); border-radius: 12px; padding: 1rem 1.2rem; box-shadow: 0 4px 14px rgba(12, 74, 115, .06); }
.pull { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.35; color: var(--orange-d); text-align: center; padding: 1.2rem 0; margin: 1.5rem 0; border-block: 2px solid var(--line); font-style: italic; }

.promise { background: var(--blue); color: #eaf3f8; padding: clamp(2.8rem, 7vw, 4.5rem) 0; margin-top: clamp(2rem, 5vw, 3rem); text-align: center; }
.promise h2 { color: #fff; }
.promise p:last-child { margin-bottom: 0; font-size: 1.1rem; }

.outcomes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin: 2.2rem 0 2.2rem; }
.outcomes-cta { text-align: center; margin: 0 0 clamp(4rem, 9vw, 6.5rem); }
.outcome { background: #fff; border-radius: var(--radius); padding: 1.8rem 1.4rem; box-shadow: var(--shadow); position: relative; }
.outcome .num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--orange-d); color: #fff; font-weight: 700; font-family: var(--serif); margin-bottom: 1rem; }
.outcome:nth-child(even) .num { background: var(--blue); }
.outcome p { margin: 0; color: var(--muted); font-size: .98rem; }
.wrap > h2.center { margin-top: clamp(2.5rem, 6vw, 4rem); }

.cta-box { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; align-items: stretch; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: clamp(3rem, 7vw, 5rem); }
.cta-box img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.cta-box > div { padding: clamp(1.6rem, 4vw, 3rem); align-self: center; }

/* ---------- Quiz ---------- */
.quiz { margin-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem); }
.quiz-panel { background: #fff; border-radius: 24px; padding: clamp(1.5rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.quiz-panel[hidden] { display: none; }
.progress { height: 10px; background: var(--sage-soft); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sage), var(--orange)); border-radius: 99px; transition: width .35s ease; }
#quiz-count { margin: .6rem 0 1.2rem; }
#quiz-question { font-size: clamp(1.25rem, 3vw, 1.6rem); }
.answers { display: grid; gap: .7rem; }
.answer { text-align: left; font: inherit; color: var(--ink); background: var(--cream); border: 2px solid var(--line); border-radius: 14px; padding: .95rem 1.1rem; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.answer:hover { border-color: var(--sage); background: var(--sage-soft); transform: translateX(3px); }
.answer.selected { border-color: var(--orange-d); background: var(--peach); }
.score { display: flex; align-items: baseline; gap: .4rem; margin-bottom: 1rem; }
.score span { font-family: var(--serif); font-size: 4rem; font-weight: 700; line-height: 1; color: var(--orange-d); }
.score small { font-size: 1.2rem; color: var(--muted); }
.detail { display: grid; gap: .9rem; margin: 1rem 0 2rem; }
.detail-row { display: grid; grid-template-columns: 1fr; gap: .3rem; }
.detail-row .lab { display: flex; justify-content: space-between; font-size: .95rem; font-weight: 600; }
.detail-row .bar { height: 10px; background: var(--sage-soft); border-radius: 99px; overflow: hidden; }
.detail-row .bar i { display: block; height: 100%; border-radius: 99px; background: var(--sage); }
.detail-row.mid .bar i { background: #f0a24b; }
.detail-row.high .bar i { background: var(--orange-d); }
.result-cta { background: var(--sage-soft); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.result-cta p { flex-basis: 100%; margin: 0 0 .4rem; }

/* ---------- Jeunes ---------- */
.youth { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 7vw, 5rem); }
.youth-photo { margin: 0; }
.youth-photo img { border-radius: 24px; box-shadow: var(--shadow); width: 100%; }
.youth-text .btn { margin-top: .8rem; }
.photo-credit { grid-column: 1 / -1; margin: clamp(2.5rem, 8vw, 5rem) 0 0; font-size: .4rem; font-style: italic; line-height: 1.4; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 760px; gap: 1.4rem; padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem); }
.contact-card { display: block; text-decoration: none; text-align: center; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 2rem 1.4rem; box-shadow: var(--shadow); border-bottom: 5px solid var(--sage); transition: transform .2s; overflow-wrap: anywhere; }
.contact-card:hover { transform: translateY(-4px); }
.contact-card .ico { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 50%; background: var(--sage-soft); font-size: 1.6rem; color: var(--blue); }
.contact-card h2 { font-size: 1.2rem; margin-bottom: .4rem; }
.contact-card .big { font-weight: 600; font-size: 1.1rem; margin: 0; color: var(--blue); }
.contact-card-accent { background: var(--blue); border-bottom-color: var(--orange); }
.contact-card-accent h2, .contact-card-accent .big { color: #fff; }
.contact-card-accent .ico { background: rgba(255, 255, 255, .15); color: #fff; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--blue-dark); color: #cfe0ea; padding: 2rem 0; font-size: .92rem; text-align: center; }
.site-footer p { margin: .2rem 0; }

/* ---------- Qui suis-je ---------- */
.about { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); }
.about-photo { margin: 0; position: sticky; top: 100px; }
.about-photo img { border-radius: 24px; box-shadow: var(--shadow); width: 200px; height: 322px; max-width: 100%; object-fit: cover; }
.about-text .pull { margin-top: 2rem; }
.about-text .btn { margin-top: .5rem; }

/* ---------- Mentions légales ---------- */
.legal { padding-bottom: clamp(3rem, 7vw, 5rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal ul { padding-left: 1.2rem; margin: 0 0 1.1em; }
.legal li { margin-bottom: .3rem; }
.todo { background: #fff3b0; color: #5a4300; padding: 0 .3em; border-radius: 4px; }
.site-footer a { color: #fff; }
.legal-links a, .legal-links a:visited, .legal-links a:hover { color: #fff; margin-inline: .35rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .outcomes { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .burger { display: flex; }
  .js .menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--cream); padding: .8rem 1.25rem 1.2rem; border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(12, 74, 115, .12); display: none; }
  .js .menu.open { display: flex; }
  .menu a { padding: .8rem 1rem; text-align: center; }
  .duo, .cta-box, .youth, .about { grid-template-columns: 1fr; }
  .about-photo { position: static; width: 200px; margin-inline: auto; }
  .youth-photo { order: -1; }
  .cta-box img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
  .choice .btn { max-width: none; }
}
@media (max-width: 520px) {
  .outcomes { grid-template-columns: 1fr; }
  .brand span { font-size: 1.1rem; }
  .btn { width: 100%; }
  .score span { font-size: 3.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .site-header, .site-footer, .btn { display: none; } .view[hidden] { display: none; } }

.youth-credit { margin: 0 0 2.5rem; }
