/* ============================================================
   Savvy Fish — landing page
   Thème clair : blanc dominant, encre #12232E, violet #7458EA.
   Palette tirée des assets de l'extension (fish.svg / icon.svg).
   Sommaire :
     1. Variables & base
     2. Éléments partagés (wrap, boutons, titres)
     3. En-tête
     4. Hero (vidéo + slogan)
     5. Section phishing (définition, démo URL, cartes moteurs)
     6. Section privacy (bandeau sombre)
     7. Section stat IBM
     8. Section téléchargement
     9. FAQ
    10. Contact & pied de page
    11. Responsive
   ============================================================ */

/* ---------- 1. Variables & base ---------- */
:root {
  --violet:        #7458EA;   /* violet principal (corps du poisson) */
  --violet-light:  #9884F2;   /* violet clair (nageoires)            */
  --ink:           #12232E;   /* encre — contours du logo            */
  --paper:         #FFFFFF;
  --gray:          #DADAE2;   /* gris des assets (bordures douces)   */
  --ink-soft:      #46555f;   /* encre atténuée pour le texte courant */

  /* Style « autocollant » : bordure encre + ombre franche décalée,
     en écho au trait épais de la mascotte. */
  --sticker-border: 2px solid var(--ink);
  --sticker-shadow: 6px 6px 0 rgba(18, 35, 46, 0.12);
  --radius: 14px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* compense l'en-tête sticky sur les ancres */
}

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

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

code {
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.95em;
  background: rgba(116, 88, 234, 0.10);
  border-radius: 4px;
  padding: 0.05em 0.35em;
}

/* ---------- 2. Éléments partagés ---------- */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap--narrow { max-width: 780px; }

.section { padding: 88px 0; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.6em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.1rem;  font-weight: 700; }
p  { margin: 0 0 1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }
strong { color: inherit; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.8em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: var(--sticker-border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover  { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 rgba(18, 35, 46, 0.25); }
.btn:active { transform: translate(0, 0);       box-shadow: none; }
.btn svg    { width: 1.2em; height: 1.2em; flex: none; }

.btn--light { background: var(--paper); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn--store { background: var(--violet); color: var(--paper); font-size: 1.05rem; }
.btn--store strong { font-weight: 800; }

/* ---------- 3. En-tête (wordmark à droite) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.site-header__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-header__nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-header__nav a:hover { color: var(--violet); }

.site-header__brand { flex: none; display: flex; }
.site-header__brand img { display: block; }

/* ---------- 4. Hero ---------- */
.hero {
  position: relative;
  min-height: min(82vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--violet); /* fond de repli tant que la vidéo n'existe pas */
}

/* La vidéo couvre toute la section, derrière le texte. */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Voile léger pour garantir la lisibilité du slogan sur la vidéo. */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 35, 46, 0.10), rgba(18, 35, 46, 0.30));
}

.hero__content {
  position: relative; /* au-dessus de la vidéo et du voile */
  max-width: 820px;
  padding: 96px 24px;
  color: var(--paper);
}

.hero__slogan {
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(18, 35, 46, 0.35);
}

.hero__sub {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin: 0 auto 2em;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 5. Section phishing ---------- */
.split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}
.split__figure img { display: block; }

/* Démo « fausse barre d'adresse » */
.url-demo {
  display: grid;
  gap: 10px;
  margin: 1.4em 0;
}
.url-demo__row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border: var(--sticker-border);
  border-radius: 999px;
  background: var(--paper);
}
.url-demo__row code { background: none; padding: 0; font-size: 1rem; }
.url-demo__row mark {
  background: var(--violet);
  color: var(--paper);
  border-radius: 3px;
  padding: 0 0.15em;
  font-weight: 700;
}
.url-demo__mark {
  flex: none;
  width: 1.5em;
  height: 1.5em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
}
.url-demo__row--bad  .url-demo__mark { background: var(--ink);   color: var(--paper); }
.url-demo__row--good .url-demo__mark { background: var(--violet); color: var(--paper); }
.url-demo__row--bad code { text-decoration: line-through rgba(18, 35, 46, 0.35); }
.url-demo__note { font-size: 0.85rem; color: var(--ink-soft); font-style: italic; }

/* Cartes des trois moteurs */
.cards-title { text-align: center; margin-bottom: 1.6em; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.card {
  border: var(--sticker-border);
  border-radius: var(--radius);
  box-shadow: var(--sticker-shadow);
  background: var(--paper);
  padding: 28px 24px;
}
.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--violet);
  color: var(--paper);
}
.card__icon svg { width: 28px; height: 28px; }

/* ---------- 6. Section privacy (bandeau sombre) ---------- */
.section--dark {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.section--dark h2 { color: var(--paper); }
.section--dark h2 strong,
.section--dark p strong { color: var(--violet-light); }
.section--dark p { color: rgba(255, 255, 255, 0.85); }
.section--dark__lead { max-width: 720px; margin: 0 auto 2.4em; font-size: 1.1rem; }

.zeros {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  font-weight: 600;
}
.zeros li { display: grid; gap: 4px; justify-items: center; }
.zeros__figure {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--violet-light);
}

/* ---------- 7. Section stat IBM ---------- */
.section--stat { background: rgba(116, 88, 234, 0.06); }

.stat {
  margin: 0 auto;
  max-width: 720px;
  text-align: center;
  border: var(--sticker-border);
  border-radius: var(--radius);
  box-shadow: var(--sticker-shadow);
  background: var(--paper);
  padding: 40px 32px;
}
.stat__logo { color: var(--ink); margin-bottom: 12px; }
.stat__quote { margin: 0; }
.stat__quote p {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  color: var(--ink);
  font-weight: 500;
}
.stat__quote strong { color: var(--violet); font-weight: 800; }
.stat__source { margin-top: 16px; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- 8. Section téléchargement ---------- */
.section--download { text-align: center; }
.stores {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 2em 0 1.2em;
}
.stores__note { font-size: 0.9rem; font-style: italic; }

/* ---------- 9. FAQ ---------- */
.faq {
  border: var(--sticker-border);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  list-style: none; /* remplace le triangle natif par notre chevron */
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--violet);
  transition: transform 0.2s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq[open] summary { border-bottom: 1px solid var(--gray); }
.faq p { padding: 16px 22px; margin: 0; }

/* ---------- 10. Contact & pied de page ---------- */
.section--contact .btn { margin-top: 0.6em; }

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  border-top: 4px solid var(--violet);
  padding: 40px 0;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer__nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer__nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
}
.site-footer__nav a:hover { color: var(--violet-light); }
.site-footer__legal { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }

/* ---------- 11. Responsive ---------- */
@media (max-width: 820px) {
  .section { padding: 64px 0; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split__figure { order: -1; max-width: 420px; margin: 0 auto; }
  .zeros { gap: 32px; }
}

@media (max-width: 640px) {
  /* En-tête compact : le wordmark reste à droite, les liens passent dessous. */
  .site-header { flex-direction: column-reverse; align-items: flex-end; gap: 8px; }
  .site-header__nav { gap: 14px; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

/* Confort : pas de défilement animé pour qui préfère réduire les
   animations (la vidéo est mise en pause par js/main.js). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
