:root {
  --navy: #08243a;
  --navy-2: #0d334d;
  --teal: #159a99;
  --teal-dark: #0c7378;
  --action: #ffb000;
  --action-dark: #8a4f00;
  --mint: #dff7ee;
  --paper: #f7fbf9;
  --white: #ffffff;
  --ink: #173043;
  --muted: #5f7180;
  --line: #d8e7e2;
  --shadow: 0 24px 60px rgba(8, 36, 58, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(216, 231, 226, 0.85);
  backdrop-filter: blur(18px);
}

.site-header.compact { position: static; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--white);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.nav a {
  padding: 8px 10px;
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
  border-radius: 999px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--navy);
  background: var(--mint);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.header-cta,
.button.primary {
  color: var(--white);
  background: var(--teal-dark);
}

.button.secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
}

.button.light {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0;
}

.narrow { max-width: 820px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  min-height: auto;
  padding-top: 28px;
  padding-bottom: 34px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 3.6vw, 4.05rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  color: var(--navy);
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  color: var(--navy);
  font-size: 1.12rem;
}

.lead {
  max-width: 680px;
  color: #405464;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-panel {
  align-self: center;
  margin-top: 28px;
  padding: 24px;
  color: var(--white);
  background: radial-gradient(circle at 30% 10%, #1daaa1, var(--navy) 64%);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-avatar {
  display: block;
  width: min(100%, 315px);
  aspect-ratio: 1;
  margin: 0 auto 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid rgba(255, 255, 255, 0.78);
}

blockquote {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.45vw, 1.32rem);
  line-height: 1.32;
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.strip div {
  padding: 22px;
  background: rgba(255, 255, 255, 0.84);
}

.strip strong,
.strip span {
  display: block;
}

.strip span {
  margin-top: 4px;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.signup-form {
  display: grid;
  gap: 14px;
  max-width: 500px;
  margin-top: 24px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-weight: 750;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

input:focus {
  outline: 3px solid rgba(21, 154, 153, 0.18);
  border-color: var(--teal);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 650;
}

.check input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  min-height: 18px;
  padding: 0;
  margin-top: 4px;
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.ebook-cover {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 420px;
  padding: 34px;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(8, 36, 58, 0.92), rgba(12, 115, 120, 0.9)),
    var(--navy);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.ebook-cover span {
  width: fit-content;
  padding: 7px 10px;
  color: var(--navy);
  background: var(--action);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 900;
}

.ebook-cover strong {
  max-width: 330px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.08;
}

.ebook-cover small {
  color: rgba(255, 255, 255, 0.72);
}

.ebook-cover-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.ebook-cover-logo {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-intro {
  max-width: 650px;
  margin: 8px 0 0;
  color: var(--muted);
}

.text-link {
  color: var(--teal-dark);
  font-weight: 850;
  text-decoration: none;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.offer-grid.large {
  grid-template-columns: repeat(2, 1fr);
}

.offer-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(8, 36, 58, 0.07);
}

.offer-card .button {
  align-self: center;
  margin-top: auto;
  width: 150px;
  min-height: 42px;
  padding: 9px 14px;
  color: var(--navy);
  background: var(--action);
  border-color: var(--action);
  box-shadow: 0 10px 22px rgba(255, 176, 0, 0.25);
}

.offer-card .button:hover {
  background: #ffc43d;
  border-color: #ffc43d;
}

.offer-card .button[aria-disabled="true"] {
  color: var(--muted);
  background: #eef3f1;
  border-color: var(--line);
  box-shadow: none;
}

.offer-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.offer-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 14px;
  background: #fbfdfc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.offer-logo {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
  font-weight: 900;
}

.offer-logo-text {
  color: #173c67;
  font-size: 1.5rem;
  font-weight: 900;
  text-align: center;
}

.offer-brand-logo {
  display: block;
  width: min(100%, 230px);
  max-height: 68px;
  object-fit: contain;
}

.offer-brand-logo-etoro {
  width: min(100%, 250px);
  max-height: 74px;
}

.offer-brand-logo-boursobank {
  width: min(100%, 285px);
  max-height: 78px;
}

.offer-brand-logo-nickel {
  width: min(100%, 305px);
  max-height: 84px;
}

.badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 9px;
  color: var(--teal-dark);
  background: var(--mint);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.offer-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.page-hero {
  padding-bottom: 36px;
}

.disclosure {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px;
  color: var(--navy);
  background: #e9f7f2;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
}

.disclosure p {
  margin: 8px 0 0;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.category-tabs button {
  min-height: 40px;
  padding: 9px 14px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.category-tabs button[aria-pressed="true"] {
  color: var(--white);
  background: var(--navy);
}

.transparency-block {
  padding: 34px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
}

.transparency-block h2 {
  color: var(--white);
}

.video-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 42px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
}

.video-band h2,
.video-band .eyebrow {
  color: var(--white);
}

.video-band p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(240px, 340px);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.story h1 {
  max-width: 640px;
  font-size: clamp(2rem, 3.1vw, 3.25rem);
  line-height: 1.08;
}

.story p {
  font-size: 1.08rem;
}

.story blockquote {
  max-width: 700px;
  margin-top: 24px;
  padding-left: 20px;
  border-left: 4px solid var(--teal);
  font-size: clamp(1.12rem, 1.55vw, 1.38rem);
}

.story-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 20px 44px rgba(8, 36, 58, 0.12);
}

.video-list {
  padding-top: 20px;
}

.video-card {
  display: flex;
  gap: 22px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.play-mark {
  display: grid;
  flex: 0 0 58px;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--white);
  background: var(--teal-dark);
  border-radius: 50%;
}

.ebook-page {
  min-height: calc(100vh - 78px);
}

.legal p {
  font-size: 1.08rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy);
}

.site-footer p {
  max-width: 760px;
  margin: 0;
}

.site-footer p span {
  display: block;
}

.site-footer p span + span {
  margin-top: 4px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.64);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .split,
  .story {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .strip,
  .offer-grid,
  .offer-grid.large {
    grid-template-columns: 1fr;
  }

  .story-image {
    max-width: 360px;
  }

  .video-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .section {
    width: min(100% - 28px, 1120px);
    padding: 48px 0;
  }

  h1 {
    font-size: 2rem;
  }

  .hero-panel,
  .ebook-cover,
  .video-band,
  .video-card,
  .transparency-block {
    padding: 22px;
  }

  .video-card {
    flex-direction: column;
  }
}


/* Confirmation après envoi du guide */
.success-modal[hidden] { display: none; }
.success-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
}
.success-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 36, 58, .72);
  backdrop-filter: blur(3px);
}
.success-modal__dialog {
  position: relative;
  width: min(520px, 100%);
  padding: 36px 34px 30px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(8, 36, 58, .28);
  text-align: center;
  animation: guideModalIn .22s ease-out;
}
.success-modal__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #159a99;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
}
.success-modal__dialog h2 {
  margin: 0 0 12px;
  color: #08243a;
  font-size: 27px;
}
.success-modal__dialog p {
  margin: 0 auto 24px;
  max-width: 430px;
  color: #334b5d;
  font-size: 16px;
  line-height: 1.6;
}
.success-modal__close {
  position: absolute;
  top: 10px;
  right: 13px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #607486;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.success-modal__button {
  border: 0;
  border-radius: 10px;
  padding: 11px 24px;
  background: #ffb000;
  color: #08243a;
  font-weight: 800;
  cursor: pointer;
}
@keyframes guideModalIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 520px) {
  .success-modal__dialog { padding: 32px 22px 26px; }
  .success-modal__dialog h2 { font-size: 24px; }
}
body.modal-open { overflow: hidden; }
