/* ============================================================
   CoConstruction — styles partagés du site vitrine
   Complète styles.css (tokens). Nav, footer, sections, typo.
   ============================================================ */

* { box-sizing: border-box; }
body { margin: 0; background: var(--color-white); color: var(--color-black); font-family: var(--font-body); }
img { display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 56px; }
.title { font-family: var(--font-display); font-weight: 900; line-height: 0.98; letter-spacing: -0.02em; text-transform: none; margin: 0; }
.kick { font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.07em; text-transform: uppercase; margin: 0; }
.lead { font-size: 19px; line-height: 1.62; color: var(--color-grey); }
.filet { width: 44px; height: 3px; background: var(--color-red); display: inline-block; }
mark { background: transparent; color: var(--color-red); }
.v0 { font-family: var(--font-mono); font-size: 10px; color: #fff; background: var(--color-red); padding: 3px 7px; letter-spacing: 0.04em; vertical-align: middle; }

/* ---------- Nav (intérieur : fond blanc, sticky) ---------- */
.nav-solid { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: transparent; border-bottom: 1px solid transparent; transition: background .3s var(--ease-standard), border-color .3s; }
.nav-solid .inner { display: flex; align-items: center; gap: 40px; height: 110px; }
.nav-solid .logo { height: 74px; width: auto; }
.nav-solid .logo-dark { display: none; }
.nav-solid .links { display: flex; gap: 28px; margin-left: auto; }
.nav-solid .links a { font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.82); padding-bottom: 4px; position: relative; transition: color .2s; }
.nav-solid .links a::after { content:""; position:absolute; left:0; bottom:0; height:2px; width:0; background:var(--color-red); transition: width .25s var(--ease-standard); }
.nav-solid .links a:hover::after, .nav-solid .links a.on::after { width:100%; }
.nav-solid .links a.on, .nav-solid .links a:hover { color: #fff; }
.nav-solid.scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-bottom-color: var(--border-hairline); }
.nav-solid.scrolled .logo-light { display: none; }
.nav-solid.scrolled .logo-dark { display: block; }
.nav-solid.scrolled .links a { color: var(--color-grey); }
.nav-solid.scrolled .links a.on, .nav-solid.scrolled .links a:hover { color: var(--color-black); }
.burger { display: none; margin-left: auto; width: 30px; height: 22px; position: relative; cursor: pointer; background: none; border: 0; padding: 0; }
.burger span { position: absolute; left: 0; right: 0; height: 2.5px; background: #fff; transition: .25s; }
.nav-solid.scrolled .burger span { background: var(--color-black); }
.burger span:nth-child(1){ top:0; } .burger span:nth-child(2){ top:9.5px; } .burger span:nth-child(3){ top:19px; }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 24px; border-top: 1px solid var(--border-hairline); background: #fff; }
.mobile-menu a { font-family: var(--font-mono); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-black); padding: 14px 0; border-bottom: 1px solid var(--border-hairline); }
.mobile-menu a.on { color: var(--color-red); }

/* ---------- Page header (compact, image + voile) ---------- */
.phead { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; background: #111; }
.phead img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.25) contrast(1.02) brightness(0.82); }
.phead .scrim { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.55) 34%, rgba(0,0,0,0.2) 62%, rgba(0,0,0,0) 88%),
  linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.05) 58%, rgba(0,0,0,0.72) 100%); }
.phead .inner { position: relative; z-index: 2; width: 100%; padding-top: 124px; padding-bottom: 90px; }
.phead .kick { color: #fff; display: flex; align-items: center; gap: 14px; }
.phead h1 { color: #fff; font-size: 58px; line-height: 1.0; margin: 24px 0 0; max-width: 16ch; text-shadow: 0 2px 22px rgba(0,0,0,0.45); }
.phead p { color: rgba(255,255,255,0.88); font-size: 19px; line-height: 1.6; max-width: 600px; margin: 24px 0 0; text-shadow: 0 1px 14px rgba(0,0,0,0.5); }

/* ---------- Sections ---------- */
.sec { padding: 92px 0; }
.sec-alt { background: var(--color-grey-light); }
.sec-dark { background: var(--color-black); color: #fff; }
.sec-head .kick { color: var(--color-red); margin-bottom: 12px; }
.sec-head h2 { font-size: 40px; margin: 0 0 16px; }

/* numbered list / points */
.points { display: grid; gap: 0; border-top: 2px solid var(--color-black); margin-top: 32px; }
.point { display: grid; grid-template-columns: 84px 1fr; gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--border-hairline); }
.point .no { font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 1; color: var(--color-red); }
.point h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin: 0 0 8px; }
.point p { margin: 0; color: var(--color-grey); font-size: 16px; line-height: 1.6; max-width: 70ch; }

/* stat cards */
.stat-num { font-family: var(--font-display); font-weight: 900; line-height: 0.85; letter-spacing: -0.02em; font-size: 84px; }
.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.stat-card { background:#fff; border:1.5px solid var(--border-hairline); padding: 34px 30px 32px; }
.stat-card .lbl { font-size: 16px; line-height: 1.45; margin: 18px 0 10px; }
.stat-card .src { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.03em; color: var(--color-grey); }

/* pillar cards */
.pill { background:#fff; border:1.5px solid var(--border-hairline); padding: 30px 28px 32px; }
.pill .no { font-family: var(--font-mono); font-weight: 800; font-size: 13px; letter-spacing: 0.06em; }
.pill h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin: 14px 0 8px; }
.pill p { margin: 0; color: var(--color-grey); font-size: 15px; line-height: 1.5; }

/* encart */
.encart { border-left: 5px solid var(--color-red); padding: 8px 0 8px 30px; }
.encart.green { border-color: var(--color-green); }

/* ---------- bandeau contact standardisé ---------- */
.contact-band { background: var(--color-black); color: #fff; padding: 88px 0; }
.contact-band .kick { color: rgba(255,255,255,0.55); margin-bottom: 14px; }
.contact-band h2 { color: #fff; font-size: 40px; margin: 0; max-width: 24ch; }
.contact-band .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.contact-band .ctas a { font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; padding: 16px 28px; border: 1.5px solid rgba(255,255,255,0.4); color: #fff; transition: border-color .2s, background .2s; }
.contact-band .ctas a:hover { border-color: #fff; }
.contact-band .ctas a.primary { background: var(--color-red); border-color: var(--color-red); }
.contact-band .ctas a.primary:hover { background: #9C0100; border-color: #9C0100; }
@media (max-width: 880px) { .contact-band { padding: 60px 0; } .contact-band h2 { font-size: 30px; } }

/* ---------- vidéos (façades cliquables — youtube-nocookie) ---------- */
.video-embed, .video-short { position: relative; background: #000; overflow: hidden; }
.video-embed { aspect-ratio: 16 / 9; }
.video-short { aspect-ratio: 9 / 16; max-width: 300px; }
.video-embed iframe, .video-short iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-facade { position: absolute; inset: 0; width: 100%; height: 100%; display: block; padding: 0; border: 0; background: #000; cursor: pointer; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity .25s, transform .4s var(--ease-standard); }
.yt-facade:hover img { opacity: 1; transform: scale(1.03); }
.yt-facade .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 64px; height: 44px; background: var(--color-red); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.yt-facade:hover .play { background: #9C0100; }
.yt-facade .play::after { content: ""; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.video-meta { margin-top: 18px; }
.video-meta .vt { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.3; margin: 0 0 6px; }
.video-meta .vw { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em; color: var(--color-grey); margin: 0 0 8px; }
.video-meta .vd { font-size: 15px; line-height: 1.55; color: var(--color-grey); margin: 0; }

/* ---------- figure graphique (conteneur sobre) ---------- */
.cco-chart { background: #fff; border: 1px solid var(--border-hairline); padding: 30px 34px 26px; margin: 0; }
.cco-chart svg { display: block; width: 100%; height: auto; }
.cco-chart figcaption { margin: 20px 0 0; font-family: var(--font-body); font-size: 14px; line-height: 1.55; color: var(--color-grey); max-width: 78ch; }
.cco-chart figcaption strong { color: var(--color-black); font-weight: 700; }
@media (max-width: 880px) { .cco-chart { padding: 20px 18px 18px; } }
/* sous ~640px : le SVG garde une largeur lisible et défile horizontalement */
@media (max-width: 640px) {
  .cco-chart { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cco-chart svg { min-width: 560px; }
}

/* footer */
.foot { background: var(--color-black); color: #fff; }
.foot .bar { height: 8px; display: grid; grid-template-columns: repeat(3,1fr); }
.foot .bar div:nth-child(1){ background: var(--color-red); }
.foot .bar div:nth-child(2){ background: var(--color-green); }
.foot .bar div:nth-child(3){ background: var(--color-yellow); }
.foot .cols { padding: 64px 56px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.foot .cols img { height: 54px; width: auto; margin-bottom: 20px; }
.foot .cols p.desc { max-width: 340px; color: rgba(255,255,255,0.66); font-size: 15px; margin: 0; }
.foot .cols p.myamo { margin: 14px 0 0; color: rgba(255,255,255,0.66); font-size: 14px; }
.foot .cols p.myamo a { text-decoration: underline; text-underline-offset: 3px; }
.foot .cols p.myamo a:hover { color: var(--color-yellow); }
.foot .cols .kick { color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.foot .cols a:hover { color: var(--color-yellow); }
.foot .legal { padding: 0 56px 40px; font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: 0.03em; }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .wrap { padding: 0 24px; }
  .nav-solid .inner { height: 84px; }
  .nav-solid .logo { height: 56px; }
  .nav-solid .links { display: none; }
  .burger { display: block; }
  .phead { min-height: 76vh; }
  .phead .inner { padding-top: 104px; padding-bottom: 64px; }
  .phead h1 { font-size: 38px; }
  .sec { padding: 60px 0; }
  .sec-head h2 { font-size: 30px; }
  .stat-grid { grid-template-columns: 1fr; }
  .foot .cols { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px 32px; }
  .foot .legal { padding: 0 24px 32px; }
  .point { grid-template-columns: 60px 1fr; gap: 18px; }
  /* responsive grid helpers (override inline grid-template-columns) */
  .r-stack { grid-template-columns: 1fr !important; gap: 24px !important; }
  .r-cards { grid-template-columns: 1fr 1fr !important; gap: 14px !important; }
  .r-2 { grid-template-columns: 1fr !important; gap: 28px !important; }
}
@media (max-width: 560px) {
  .r-cards { grid-template-columns: 1fr !important; }
}
