/* ==========================================================
   Faux Soir 2026 — édition spéciale (one page)
   Maquette Figma : test_Faux_Soir › « Eric » (1506 px)
   ========================================================== */

:root {
  --navy: #003978;
  --navy-logo: #003a7c;
  --box-blue: #173175;
  --ink: #1a1a1a;
  --meta: #4d4d4d;
  --chapo: #666;
  --tint: #f4f4ff;
  --white: #fff;

  --serif: "STIX Two Text", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;

  --column: 640px;
  --gutter: 20px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 679px;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  isolation: isolate;
  background: #0b1660; /* visible sous l'image pendant son apparition */
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Fond de secours si img/hero.png est absente */
  background:
    radial-gradient(120% 90% at 65% 25%, #2b55e6 0%, #1630a8 45%, #0a1660 100%);
}

.hero__photo {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  will-change: transform;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
}

.hero__brand { padding-top: 26px; }

.hero__logo {
  width: 226px;
  height: auto;
  margin: 0 auto;
}

.hero__edition {
  margin: 12px 0 0;
  font-style: italic;
  font-size: 33px;
  line-height: 1.15;
}

/* Ancré par le bas : si le titre passe sur 3 lignes, il grandit vers le haut
   au lieu de passer sous le bloc blanc du chapo. */
.hero__title {
  position: absolute;
  left: 50%;
  bottom: 120px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 2 * var(--gutter));
  margin: 0;
  font-weight: 700;
  font-size: clamp(28px, 3.35vw, 50px);
  line-height: 1.06;
  color: #f8fcff;
  text-shadow: 0 2px 24px rgba(0, 10, 60, .35);
}

/* ---------- ARTICLE ---------- */
.article { position: relative; }

.chapo {
  position: relative;
  z-index: 1;
  width: min(725px, 100% - 2 * var(--gutter));
  margin: -92px auto 0;
  padding: 32px 46px 24px 39px;
  background: var(--white);
  border-radius: 5px;
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.25;
  color: var(--chapo);
}

.column {
  width: min(var(--column), 100% - 2 * var(--gutter));
  margin: 0 auto;
}

/* Signature */
.signature {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.signature__avatar {
  flex: none;
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.signature__name,
.date {
  margin: 0;
  font-family: var(--sans);
  font-size: 14.08px;
  line-height: 20px;
  color: var(--meta);
}

.signature__name strong { color: var(--navy); font-weight: 700; }

.date { margin-top: 28px; }

/* Bandeau promo */
.promo {
  position: relative;
  height: 185px;
  margin-top: 29px;
  background: var(--tint);
}

.promo__text {
  position: absolute;
  left: 27px;
  top: 62px;
  margin: 0;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  color: var(--navy-logo);
}

.promo__mockup {
  position: absolute;
  left: 250px;
  top: -45px;
  width: 439px;
  height: 293px;
  object-fit: cover;
  pointer-events: none;
}

/* Paragraphe avec lettrine */
.dropcap {
  margin: 64px 0 0;
  font-size: 20px;
  line-height: 1.5;
}

.dropcap::first-letter {
  float: left;
  font-size: 96px;
  line-height: .8;
  font-weight: 500;
  margin: 6px 16px 0 0;
}

/* Smartphone : conversation WhatsApp, bulles qui apparaissent une à une */
.chat {
  position: relative;
  width: min(340px, 100%);
  margin: 46px auto 0;
}

.chat__phone { width: 100%; height: auto; }

.chat__bulle {
  position: absolute;
  height: auto;
  max-width: none;
}

.js .chat__bulle {
  opacity: 0;
  transform: scale(.4) translateY(12px);
  transition:
    opacity .25s ease,
    transform .4s cubic-bezier(.34, 1.56, .64, 1);   /* léger rebond */
  transition-delay: calc(.3s + var(--i, 0) * .4s);
}

.chat__bulle--right { transform-origin: 92% 100%; }
.chat__bulle--left  { transform-origin: 8% 100%; }

.js .chat.is-visible .chat__bulle {
  opacity: 1;
  transform: none;
}

/* Paragraphe en fondu */
.teaser {
  position: relative;
  margin-top: 40px;
  font-size: 20px;
  line-height: 1.5;
}

.teaser p { margin: 0; }

.teaser::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 243px;
  background: linear-gradient(to top, #fff 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

/* ---------- ENCADRÉ BLEU ---------- */
.notice {
  width: min(1096px, 100% - 2 * var(--gutter));
  margin: 30px auto 0;
  padding: 38px var(--gutter) 40px;
  background: var(--box-blue);
  border-radius: 10px;
  color: var(--white);
}

.notice__inner {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 617px);
  justify-content: center;
  align-items: center;
  column-gap: 40px;
}

.notice__media {
  width: 100%;
  height: auto;
  margin-left: -20px;
}

.notice__body { min-width: 0; }

.notice h2 {
  margin: 0 0 57px;
  max-width: 560px;
  font-weight: 700;
  font-size: 38px;
  line-height: 1.17;
}

.notice p {
  margin: 0;
  font-size: 20px;
  line-height: 30px;
}

/* Boutons */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 29px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 265px;
  height: 48px;
  padding: 0 24px;
  border-radius: 5px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }

.btn--light { background: var(--white); color: var(--navy); }
.btn--dark  { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: #00468f; }

.link {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 20px;
  text-decoration: underline;
}

.link--light { color: var(--white); }
.link--dark  { color: var(--navy); }

.btn:focus-visible,
.link:focus-visible { outline: 3px solid #68cead; outline-offset: 3px; }

/* ---------- ÉDITO ---------- */
.edito { margin-top: 62px; padding-bottom: 120px; }

.edito h2 {
  margin: 0 0 30px;
  font-weight: 700;
  font-size: 38px;
  line-height: 1.5;
}

.edito p {
  margin: 0 0 30px;
  font-size: 20px;
  line-height: 1.5;
}

.cta--bottom { margin-top: 70px; }

/* ==========================================================
   ANIMATION — fondu du bas vers le haut (images + encadré bleu)
   ========================================================== */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 50px, 0);
  transition:
    opacity .9s cubic-bezier(.22, .61, .36, 1),
    transform 1s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .chat__bulle { opacity: 1; transform: none; transition: none; }
  .hero__photo { transform: none !important; }
}

/* ---------- FOOTER ---------- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 48px var(--gutter) 40px;
  background: var(--navy-logo);
  color: var(--white);
  text-align: center;
}

.footer__logo { width: 160px; height: auto; }

.footer__legal {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, .85);
}

.footer__link { color: var(--white); text-decoration: none; }
.footer__link:hover { text-decoration: underline; }
.footer__link:focus-visible { outline: 2px solid #68cead; outline-offset: 3px; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1000px) {
  .hero { height: 600px; }
  .hero__title { width: auto; font-size: clamp(28px, 4.4vw, 40px); line-height: 1.1; }
  .hero__title br { display: none; }
  .promo__mockup { left: auto; right: -10px; width: 380px; height: auto; top: -30px; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }

  .hero { height: 520px; }
  .hero__brand { padding-top: 22px; }
  .hero__logo { width: 170px; }
  .hero__edition { font-size: 25px; margin-top: 8px; }
  .hero__title { bottom: 96px; font-size: 30px; }

  .chapo { margin-top: -72px; padding: 22px 20px 18px; font-size: 18px; }

  .promo { height: auto; padding: 24px 20px 0; display: flex; flex-direction: column; }
  .promo__text { position: static; font-size: 22px; }
  .promo__mockup {
    position: relative;
    inset: auto;
    width: min(340px, 100%);
    margin: 10px auto -20px;
  }

  .dropcap,
  .teaser,
  .edito p { font-size: 18px; }
  .dropcap { margin-top: 48px; }
  .dropcap::first-letter { font-size: 78px; }


  .notice { padding: 32px 20px 36px; }
  .notice__inner { grid-template-columns: 1fr; row-gap: 12px; }
  .notice__media { width: min(240px, 70%); margin: 0 auto; }
  .notice h2 { font-size: 30px; margin-bottom: 32px; }
  .notice p { font-size: 18px; line-height: 28px; }

  .edito h2 { font-size: 30px; line-height: 1.25; margin-bottom: 20px; }
  .edito p { margin-bottom: 24px; }
  .btn { min-width: 0; width: 100%; }
}
