/* ==========================================================================
   Get Phishing Under Control — site stylesheet
   Palette & typography follow the Apalala charte graphique v5:
     Ming #467082 · Ming Foncé #1A4E5A · Orange #F19A3E (CTA/accents)
     Vert Citron #A3D948 · Gris clair #F5F7FA · Gris charbon #1F2937
   Headings: Poppins · Body: Roboto Flex · White background, rounded buttons.
   ========================================================================== */

:root {
  --ming: #467082;
  --ming-dark: #1A4E5A;
  --orange: #F19A3E;
  --orange-deep: #E36414;
  --lime: #A3D948;
  --grey-light: #F5F7FA;
  --grey-mid: #9CA3AF;
  --charcoal: #1F2937;
  --red: #C62828;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(26, 78, 90, .12);
  --shadow-soft: 0 4px 18px rgba(26, 78, 90, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto Flex', 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Poppins', Arial, sans-serif; font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); color: var(--white); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--ming-dark); text-transform: uppercase; letter-spacing: .01em; }
h3 { font-size: 1.25rem; color: var(--ming-dark); }
p  { margin-bottom: 1rem; }
a  { color: var(--ming); }
a:hover { color: var(--ming-dark); }
img { max-width: 100%; display: block; }

.container { width: min(1140px, 92%); margin: 0 auto; }
section { padding: 88px 0; }
.section-tag {
  display: inline-block; font-family: 'Poppins', sans-serif; font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange);
  border: 1.5px solid var(--orange); border-radius: 999px; padding: 5px 16px; margin-bottom: 18px;
}
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { color: #4B5563; font-size: 1.06rem; }

/* ----- Buttons (charte: rounded) ----- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1rem;
  border-radius: 999px; padding: 14px 30px; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer; border: none;
}
.btn-primary { background: var(--orange); color: var(--white); box-shadow: 0 6px 20px rgba(241, 154, 62, .45); }
.btn-primary:hover { background: var(--orange-deep); color: var(--white); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.65); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }
.btn-dark { background: var(--ming-dark); color: var(--white); }
.btn-dark:hover { background: var(--ming); color: var(--white); transform: translateY(-2px); }

/* ----- Header / nav (charte: menu Ming) ----- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(26, 78, 90, .92); backdrop-filter: blur(10px);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 2px 18px rgba(0,0,0,.25); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.02rem; text-decoration: none; letter-spacing: .02em; }
.brand .w1 { color: #fff; } .brand .w2 { color: var(--orange); }
.brand .w3 { color: #fff; } .brand .w4 { color: var(--lime); }
.nav-links { display: flex; gap: 26px; list-style: none; align-items: center; }
.nav-links a { color: rgba(255,255,255,.88); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--lime); }
.nav-links .btn { padding: 9px 22px; font-size: .9rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

/* ----- Hero ----- */
.hero {
  position: relative; overflow: hidden; padding: 168px 0 110px;
  background: linear-gradient(160deg, #23545F 0%, var(--ming-dark) 45%, #123842 100%);
  color: #E8EFF2;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 85% 15%, rgba(163, 217, 72, .10), transparent 65%),
    radial-gradient(700px 380px at 10% 90%, rgba(241, 154, 62, .12), transparent 65%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; font-family: 'Poppins', sans-serif;
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 20px;
}
.hero-kicker::before { content: ""; width: 34px; height: 2px; background: var(--lime); }
.hero h1 .accent-o { color: var(--orange); }
.hero h1 .accent-l { color: var(--lime); }
.hero-sub { font-size: 1.16rem; color: rgba(232,239,242,.92); max-width: 560px; margin: 22px 0 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 10px; }
/* Small line under the CTAs: available formats (Kindle & paperback) */
.format-note { font-size: .88rem; color: #6B7280; margin: 0 0 40px; }
.cta-band .format-note { color: rgba(255,255,255,.75); margin: 14px 0 0; text-align: center; }
.hero-stats { display: flex; gap: 38px; flex-wrap: wrap; }
.stat .num { font-family: 'Poppins', sans-serif; font-size: 2rem; font-weight: 700; color: #fff; }
.stat .num em { font-style: normal; color: var(--lime); }
.stat .lbl { font-size: .85rem; color: rgba(232,239,242,.75); max-width: 150px; }

/* 3D book */
.book-wrap { perspective: 1200px; display: flex; justify-content: center; }
.book {
  position: relative; width: min(320px, 70vw); transform: rotateY(-22deg) rotateX(4deg);
  transform-style: preserve-3d; transition: transform .5s ease; animation: floaty 7s ease-in-out infinite;
}
.book:hover { transform: rotateY(-10deg) rotateX(2deg); }
.book img { border-radius: 4px 10px 10px 4px; box-shadow: 24px 34px 60px rgba(0,0,0,.45); }
.book::before { /* spine */
  content: ""; position: absolute; top: 1%; bottom: 1%; left: -16px; width: 17px;
  background: linear-gradient(90deg, #2C505C, #3C6472);
  transform: rotateY(-78deg); transform-origin: right; border-radius: 3px 0 0 3px;
}
.book::after { /* pages */
  content: ""; position: absolute; top: 1.2%; bottom: 1.2%; right: -13px; width: 14px;
  background: repeating-linear-gradient(90deg, #F7F5F0 0 2px, #E4E1DA 2px 3px);
  transform: rotateY(72deg); transform-origin: left; border-radius: 0 3px 3px 0;
}
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* ----- Scroll reveal ----- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .12s; } .reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }

/* ----- Results / chart ----- */
.results { background: var(--grey-light); }
.chart-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px 42px 30px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: center;
}
.chart-svg { width: 100%; height: auto; }
.chart-note { font-size: .8rem; color: var(--grey-mid); margin-top: 12px; }
.milestones { list-style: none; display: grid; gap: 14px; }
.milestones li { display: flex; gap: 14px; align-items: flex-start; font-size: .96rem; }
.milestones .dot { flex: 0 0 12px; width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; }

/* ----- Two fronts ----- */
.fronts { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.front-card {
  border-radius: var(--radius); padding: 38px 36px; box-shadow: var(--shadow-soft);
  border-top: 6px solid var(--ming); background: #fff;
}
.front-card.alt { border-top-color: var(--orange); }
.front-card .icon { width: 54px; height: 54px; margin-bottom: 18px; }
.front-card h3 { margin-bottom: 10px; }
.front-card p { color: #4B5563; font-size: .99rem; margin: 0; }

/* ----- Phases timeline ----- */
.phases { background: linear-gradient(180deg, #fff 0%, var(--grey-light) 100%); }
.timeline { position: relative; margin-top: 10px; }
.timeline::before {
  content: ""; position: absolute; left: 26px; top: 8px; bottom: 8px; width: 3px;
  background: linear-gradient(180deg, var(--ming) 0%, var(--lime) 100%); border-radius: 2px;
}
.phase { position: relative; padding: 0 0 34px 84px; }
.phase:last-child { padding-bottom: 0; }
.phase .badge {
  position: absolute; left: 0; top: 0; width: 55px; height: 55px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.05rem; color: #fff;
  background: var(--ming); box-shadow: 0 0 0 6px var(--grey-light);
}
.phase:nth-child(even) .badge { background: var(--orange); }
.phase h3 { margin-bottom: 4px; }
.phase p { color: #4B5563; font-size: .97rem; margin: 0; max-width: 720px; }

/* ----- Inside the book ----- */
.inside-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.inside-card {
  background: #fff; border: 1px solid #E3EAEE; border-radius: var(--radius);
  padding: 28px 26px; transition: transform .25s ease, box-shadow .25s ease;
}
.inside-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.inside-card .n { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--orange); }
.inside-card h3 { font-size: 1.05rem; margin: 8px 0 6px; }
.inside-card p { font-size: .92rem; color: #4B5563; margin: 0; }

/* ----- Resources ----- */
.resources { background: var(--ming-dark); color: #E8EFF2; }
.resources h2 { color: #fff; }
.resources .section-head p { color: rgba(232,239,242,.85); }
.res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.res-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column;
  transition: background .25s ease, transform .25s ease;
}
.res-card:hover { background: rgba(255,255,255,.11); transform: translateY(-5px); }
.res-card .ftype {
  font-family: 'Poppins', sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  border-radius: 6px; padding: 3px 10px; width: max-content; margin-bottom: 14px; color: #10303A;
}
.ftype.docx { background: #9DC9DC; } .ftype.xlsx { background: var(--lime); } .ftype.html { background: var(--orange); }
.res-card h3 { color: #fff; font-size: 1.02rem; margin-bottom: 8px; }
.res-card p { font-size: .88rem; color: rgba(232,239,242,.8); flex: 1; }
.res-card a.dl {
  color: var(--lime); text-decoration: none; font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 8px;
}
.res-card a.dl:hover { color: #fff; }
.res-note { margin-top: 26px; font-size: .85rem; color: rgba(232,239,242,.6); }

/* ----- Quick start ----- */
.quick .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step-card {
  position: relative; background: var(--grey-light); border-radius: var(--radius); padding: 34px 28px 28px;
}
.step-card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -20px; left: 24px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: #fff; font-family: 'Poppins', sans-serif; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
  box-shadow: 0 6px 16px rgba(241,154,62,.4);
}
.step-card h3 { font-size: 1.04rem; margin: 6px 0 8px; }
.step-card p { font-size: .93rem; color: #4B5563; margin: 0; }

/* ----- Author ----- */
.author-grid { display: grid; grid-template-columns: 320px 1fr; gap: 54px; align-items: start; }
.author-card {
  background: linear-gradient(160deg, var(--ming) 0%, var(--ming-dark) 100%);
  border-radius: var(--radius); color: #fff; padding: 38px 30px; text-align: center; box-shadow: var(--shadow);
}
.author-card .avatar {
  width: 132px; height: 132px; margin: 0 auto 18px; border-radius: 50%;
  background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-size: 2.6rem; font-weight: 700; color: var(--lime);
  border: 3px solid rgba(255,255,255,.35); overflow: hidden;
}
.author-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-card h3 { color: #fff; font-size: 1.3rem; }
.author-card .role { font-size: .9rem; color: rgba(255,255,255,.8); margin: 6px 0 16px; }
.author-card .certs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.author-card .certs span {
  font-family: 'Poppins', sans-serif; font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  background: rgba(163,217,72,.18); color: var(--lime); border-radius: 6px; padding: 4px 10px;
}
.author-bio p { color: #374151; font-size: 1.01rem; }

/* ----- Final CTA band ----- */
.cta-band {
  background: linear-gradient(120deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: #fff; text-align: center; padding: 74px 0;
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { max-width: 620px; margin: 0 auto 28px; color: rgba(255,255,255,.92); }
.cta-band .btn { background: #fff; color: var(--orange-deep); }
.cta-band .btn:hover { background: var(--ming-dark); color: #fff; }

/* ----- Footer ----- */
.site-footer { background: #10303A; color: rgba(232,239,242,.75); padding: 46px 0 30px; font-size: .9rem; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: rgba(232,239,242,.85); text-decoration: underline; }
.site-footer a:hover { color: var(--lime); }
.footer-logo img { height: 30px; }

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas, .hero-stats { justify-content: center; }
  .book-wrap { order: -1; margin-bottom: 10px; }
  .chart-card { grid-template-columns: 1fr; }
  .fronts, .quick .steps, .inside-grid { grid-template-columns: 1fr; }
  .inside-grid { grid-template-columns: 1fr 1fr; }
  .res-grid { grid-template-columns: 1fr 1fr; }
  .author-grid { grid-template-columns: 1fr; }
  .author-card { max-width: 380px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .nav-links {
    position: fixed; top: 68px; right: 0; left: 0; flex-direction: column; gap: 0;
    background: var(--ming-dark); padding: 10px 0 18px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 10px 0; }
  .nav-toggle { display: block; }
  .res-grid, .inside-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .book { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
