/* Cédric Froment — Trader & Surfer (version HTML statique) */
:root {
  --ink: #161616;
  --ink-soft: #2d2d2d;
  --text: #555;
  --muted: #9a9a9a;
  --line: #e6e6e6;
  --red: #ba2b27;
  --red-bright: #c41300;
  --green: #61ce70;
  --green-dark: #4cb85b;
  --dark: #000;
  --sand: #f6f0e7;
  --header-h: 90px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--text);
  font: 16px/1.75 Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--red); }
a:hover { color: var(--ink); }

/* ---------- Header ---------- */
header.site { position: sticky; top: 0; z-index: 20; background: #fff; box-shadow: 0 1px 0 var(--line); }
.bar {
  max-width: 1240px; margin: 0 auto; padding: 0 24px; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start;
}
.side { display: flex; align-items: center; height: var(--header-h); }
.side.left { justify-content: space-between; }
.side.right { justify-content: flex-start; }
.social { display: flex; gap: 14px; align-items: center; }
.social a { display: flex; color: var(--ink); }
.social a:hover { color: var(--red); }
.social svg { width: 16px; height: 16px; fill: currentColor; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.side.left nav ul { padding-right: 28px; }
.side.right nav ul { padding-left: 28px; }
nav a {
  color: #222; text-decoration: none; font-weight: 700; font-size: 13px; letter-spacing: .03em;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
nav a:hover, nav a.active { color: #222; border-bottom-color: #222; }
.logo {
  display: flex; justify-content: center; align-items: flex-start;
  width: 130px; height: 150px; margin-bottom: -60px; padding-top: 10px;
  background: #111; clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
}
.logo img { width: 92px; }
.burger { display: none; }
.mobile-menu { display: none; }

/* ---------- Sections ---------- */
.sec { position: relative; background: var(--bgc, transparent); padding: 90px 0; overflow: hidden; }
/* paths are relative to this file so the site also works opened from disk */
.sec.has-bg { background: var(--bgc, #000) url("images/2018-09-largeur-cedrif-froment-v2-moins-large-copie-1.jpg") center / cover no-repeat; }
.sec.has-bg::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.sec > .wrap { position: relative; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
.sec.dark { background-color: var(--bgc, var(--dark)); color: rgba(255,255,255,.78); }
.sec.dark a { color: #fff; }
.sec.dark strong { color: #fff; }

/* the first section of the home page is the big photo header */
/* desktop/tablet: follow the photo's 1920x850 ratio so the whole diptych shows */
/* height computed (not aspect-ratio): with aspect-ratio, max-height would shrink the width and leave a gap on the right */
body.home main > .sec:first-child {
  width: 100%; height: min(calc(100vw * 850 / 1920), calc(100vh - var(--header-h))); min-height: 380px;
  display: flex; align-items: center; padding: 40px 0; background-position: center;
}
/* phone: whole photo across the full width, centred, text below it on black */
@media (max-width: 760px) {
  body.home main > .sec:first-child {
    --photo-h: calc(100vw * 850 / 1920);
    height: auto; min-height: 0; display: block;
    padding: calc(var(--photo-h) + 24px) 0 40px;
    background-color: #000; background-size: 100% auto; background-position: center top;
  }
  body.home main > .sec:first-child::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0) calc(var(--photo-h) - 50px), #000 var(--photo-h));
  }
  body.home main > .sec:first-child figure img { width: 90px; }
}
body.home main > .sec:first-child > .wrap { width: 100%; text-align: center; }
body.home main > .sec:first-child figure img { width: 130px; }
body.home main > .sec:first-child .h.xl { text-shadow: 0 2px 24px rgba(0,0,0,.5); font-size: clamp(42px, 7vw, 72px); }

/* ---------- Headings ---------- */
.h { margin: 0 0 .4em; color: var(--ink); font-weight: 800; text-transform: uppercase; line-height: 1.15; font-size: 24px; }
.sec.dark .h { color: #fff; }
.h.xl { font-size: clamp(34px, 5.2vw, 61px); font-weight: 900; margin-bottom: .1em; }
.h.lg { font-size: clamp(26px, 3.4vw, 36px); }
.h.md { font-size: 24px; }
.h.sm { font-size: 18px; }
.h.script {
  font-family: "Herr Von Muellerhoff", cursive; font-weight: 400; text-transform: none;
  font-size: clamp(36px, 4.5vw, 50px); line-height: 1.1; color: var(--ink-soft); margin: 0 0 40px;
}
.al-center { text-align: center; }
.al-right { text-align: right; }
.al-left { text-align: left; }
hr { border: 0; height: 1px; background: var(--line); margin: 30px 0; }
.sec.dark hr { background: rgba(255,255,255,.2); }
hr.short { width: 60px; height: 3px; background: var(--red); margin: 30px auto; }
/* full-width separator with a red accent in the middle */
hr.section-line { position: relative; overflow: visible; height: 1px; background: #d9d9d9; margin: 70px 0 60px; }
hr.section-line::after { content: ""; position: absolute; left: 50%; top: -1px; width: 80px; height: 3px; margin-left: -40px; background: var(--red); }

/* ---------- Content ---------- */
.text p, article.post p { margin: 0 0 1.1em; }
.text h2, .text h3 { color: var(--ink); line-height: 1.25; }
.sec.dark .text h2, .sec.dark .text h3 { color: #fff; }
.small-note { font-size: 15px; color: var(--muted); margin: 0; }
.contact-mail a { font-size: 18px; font-weight: 700; text-decoration: none; }
figure { margin: 0 0 24px; text-align: center; }
figure img { display: inline-block; }
.cols { display: grid; gap: 48px; margin: 20px 0; align-items: start; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.inner { margin: 10px 0 40px; }
.inner > .h { margin-top: 30px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; margin: 0 auto 24px; max-width: 860px; border-radius: 4px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.generic.icon-box { text-align: center; margin: 0 0 24px; }
.generic.icon-box h3, .generic.icon-box h2, .generic.icon-box p { margin: 0; }
.generic.icon-box :is(h2, h3) {
  display: inline-block; padding: 6px 18px; border: 2px solid var(--red); color: var(--red);
  text-transform: uppercase; letter-spacing: .12em; font-size: 15px;
}
.btn-wrap { text-align: center; margin: 24px 0; }
/* call-to-action: red gradient pill, coloured glow, arrow that slides on hover */
.btn {
  display: inline-flex; align-items: center; justify-content: center; margin: 6px; padding: 14px 30px;
  background: linear-gradient(135deg, #e8412f 0%, #c41300 55%, #9e1208 100%); color: #fff !important;
  border: 0; border-radius: 999px; font-size: 15px; font-weight: 700; letter-spacing: .02em; line-height: 1.2;
  text-decoration: none; box-shadow: 0 10px 24px -8px rgba(196,19,0,.65), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 16px 30px -10px rgba(196,19,0,.75), inset 0 1px 0 rgba(255,255,255,.25); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(232,65,47,.45); outline-offset: 3px; }
/* secondary: frosted glass outline, for dark backgrounds */
.btn.ghost {
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.7); box-shadow: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn.ghost:hover { background: rgba(255,255,255,.18); box-shadow: none; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; }
td, th { border: 1px solid var(--line); padding: 6px 10px; }

/* ---------- Home page ---------- */
.hero-tagline { color: rgba(255,255,255,.9); font-size: 18px; margin: 14px 0 6px; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.btn.big { font-size: 17px; padding: 17px 38px; }
.btn.small { font-size: 13px; padding: 9px 18px; margin: 8px 0 0; }
.btn-wrap.left { text-align: left; }
.invest-cta { margin: 50px 0 10px; }
.lead { font-size: 18px; color: #444; margin: 0 0 6px; }
/* dark "trading screen" card (photo from the original site) */
.news-card {
  max-width: 760px; margin: 0 auto; padding: 50px 32px 36px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(rgba(4,10,30,.42), rgba(0,0,0,.68)), url("images/2018-09-graph-bleu-1024x684.jpeg") center 40% / cover no-repeat;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
}
.news-card .h.lg { font-size: clamp(30px, 4vw, 44px); font-weight: 900; color: #fff; }
.news-card .lead { color: rgba(255,255,255,.9); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.news-card .small-note { color: rgba(255,255,255,.65); }
.news-card .btn-wrap { margin: 18px 0 10px; }
.about .h { font-size: 22px; margin-top: 0; }
.book-card {
  display: flex; gap: 16px; align-items: center; margin-top: 10px; padding: 14px;
  background: linear-gradient(135deg, #1c1f26, #0b0c10); border-radius: 8px; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: transform .2s, box-shadow .2s;
}
.book-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.28); }
.book-card img { flex: none; width: 110px; border-radius: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.book-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.book-kicker { color: #ff5a4f; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.book-title { color: #fff; font-weight: 700; line-height: 1.3; }
.pull-quote { margin: 6px 0 0; padding: 0 6px; color: #161616; font-family: "Herr Von Muellerhoff", cursive; font-size: 38px; font-weight: 400; line-height: 1.1; text-align: center; }
.pull-quote::before { content: "“"; display: block; color: var(--red); font: normal 60px/0.7 Georgia, serif; margin-top: 16px; }
.invest .cols { align-items: center; gap: 56px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 24px 0 10px; }
.stat { padding: 16px 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.04); }
.stat-value { display: block; color: #fff; font-size: 34px; font-weight: 900; line-height: 1.1; }
.stat-label { display: block; margin-top: 4px; color: rgba(255,255,255,.65); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.stats-note { margin: 0 0 18px; color: rgba(255,255,255,.5); font-size: 12.5px; }
.chart-card { padding: 22px 22px 16px; background: #fff; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.chart-card h3, .chart-sub { text-align: center; }
.chart-card h3 { margin: 0; color: #111; font-size: 22px; font-weight: 900; text-transform: uppercase; line-height: 1.25; }
.chart-sub { margin: 4px 0 12px; color: #777; font-size: 14px; }
.chart-card img { display: block; width: 100%; }
.contact-band { padding: 80px 0 30px; }
.contact-band .contact-mail a { color: rgba(255,255,255,.75); font-weight: 400; font-size: 16px; }

/* ---------- Story page (mon histoire) ---------- */
body.story .intro .cols { grid-template-columns: 585fr 510fr; gap: 45px; align-items: center; }
body.story .intro .boxed { border: 2px groove #474747; padding: 10px 20px; }
body.story .intro .h { font-size: 18.72px; color: #f7f7f7; margin: 10px 0 0; }
body.story .intro .text p { color: #bfbfbf; font-weight: 300; line-height: 32px; margin: 16px 0; }
body.story .sec.chapter { padding: 40px 0 30px; background-color: #fff !important; }
/* chapters alternate white / warm sand (beach tone that goes with the black and red) */
body.story main > .sec.chapter:nth-child(odd) { background-color: var(--sand) !important; }
body.story .sec.chapter > .wrap { max-width: 914px; }
.chap-label { text-align: center; color: #bfbfbf; font-size: 15px; font-weight: 300; text-transform: uppercase; margin: 20px 0 0; }
.chap-title { text-align: center; color: #000; font-size: clamp(28px, 4vw, 45px); font-weight: 500; line-height: 1.2; margin: 4px 0 20px; }
body.story .sec.chapter .video { max-width: none; border-radius: 0; margin-bottom: 20px; }
body.story .sec.chapter .h { font-size: 18.72px; font-weight: 800; color: #161616; line-height: 1.3; margin: 20px 0 0; }
body.story .sec.chapter .cols { gap: 20px; margin: 0; }
body.story .sec.chapter .inner { margin: 0 0 10px; }
body.story .sec.chapter .text p { margin: 16px 0; line-height: 1.45; color: #666; }
body.story main > .sec.chapter:nth-child(odd) .chap-label { color: #a89f92; }

/* ---------- Articles & blog ---------- */
.page-hero { padding: 80px 0 60px; text-align: center; }
.page-hero.tall { min-height: 60vh; display: flex; align-items: center; }
.page-hero.tall > .wrap { width: 100%; }
.page-hero .kicker a { color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .15em; font-size: 13px; text-decoration: none; }
.page-hero .date, .page-hero .lead { color: rgba(255,255,255,.7); }
article.post { padding: 60px 0 90px; }
article.post img { display: block; margin: 20px auto; }
article.post h2, article.post h3 { color: var(--ink); line-height: 1.3; margin: 1.6em 0 .6em; }
.cards { display: grid; gap: 32px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: box-shadow .2s;
}
.card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.08); color: var(--text); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card > div { padding: 22px 24px 26px; }
.card h2 { color: var(--ink); font-size: 22px; line-height: 1.3; margin: 0 0 10px; }
.card .date { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.card .more { color: var(--red); font-weight: 700; }

/* ---------- Footer ---------- */
footer.site { background: #111; color: #aaa; text-align: center; padding: 40px 24px; font-size: 14px; }
footer.site .social { justify-content: center; margin-bottom: 14px; }
footer.site .social a { color: #fff; }
footer.site a { color: #ddd; }
.to-top {
  position: fixed; right: 20px; bottom: 20px; width: 42px; height: 42px; border-radius: 50%; z-index: 30;
  background: #111; color: #fff; display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 18px; opacity: .85;
}

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
  :root { --header-h: 70px; }
  .bar { padding: 0 16px; align-items: center; }
  .side nav { display: none; }
  .logo { width: 84px; height: 100px; margin-bottom: -30px; padding-top: 8px; align-self: start; }
  .logo img { width: 62px; }
  .social { gap: 10px; }
  .burger { display: flex; justify-self: end; grid-column: 3; grid-row: 1; background: none; border: 0; padding: 8px; cursor: pointer; }
  .burger svg { width: 26px; height: 26px; fill: #222; }
  .side.right { display: none; }
  .mobile-menu.open { display: block; border-top: 1px solid var(--line); }
  .mobile-menu ul { list-style: none; margin: 0; padding: 36px 16px 16px; text-align: center; }
  .mobile-menu a { display: block; padding: 10px; color: #222; text-decoration: none; font-weight: 700; }
  .cols-2, .cols-3, body.story .intro .cols { grid-template-columns: 1fr; gap: 10px; }
  .about.cols { gap: 40px; }
  .invest .cols { gap: 30px; }
  .news-card { padding: 30px 14px 22px; }
  .btn.big { font-size: 15px; padding: 15px 24px; white-space: nowrap; }
  .stat-value { font-size: 28px; }
  .sec { padding: 64px 0; }
  .wrap { padding: 0 16px; }
}
@media (max-width: 420px) { .social a:nth-child(n+4) { display: none; } }
