/* =========================================================
   Enquêtes and À propos aligned with the homepage. Loaded last on those pages.
   Headlines in Archivo (no Anton), homepage greens, the two-tone orange.
   ========================================================= */

:root {
  --copper: #A84A12;  /* old copper, now the orange ink used on cream */
  --olive: #80866E;
  --forest: #013220;
  --ink: #013220;
}

/* Banner headlines: Anton capitals, the condensed font closest to the logo */
.enq-hero-copy h1,
.about-hero h1 {
  font-family: 'Anton Local', Anton, Impact, sans-serif !important;
  font-weight: 400 !important;
  font-stretch: 100% !important;
  text-transform: uppercase !important;
  letter-spacing: 0 !important;
  line-height: .9 !important;
}

.enq-card h2 {
  font-family: Archivo, 'Archivo Local', Arial, sans-serif !important;
  font-weight: 800 !important;
  font-stretch: 100% !important;
  letter-spacing: -.025em !important;
  text-transform: none !important;
}

/* The orange full stop sits on green in the Enquêtes hero */
.enq-dot { color: #F28A35 !important; }

/* À propos: forest headline and text, the readable large orange for its dot.
   The page's inline styles also use !important, so these selectors are stronger. */
section.about-hero h1 {
  color: var(--forest) !important;
  font-size: clamp(28px, 4vw, 42px) !important;
}
section.about-hero h1 .title-dot { background: #C2581B !important; }
section.about-hero .about-copy { color: var(--forest) !important; }
section.about-hero .quiet-link { color: var(--forest) !important; }

/* Enquêtes title: a round full stop (Anton's own period is square) */
.enq-hero-copy h1 .enq-dot {
  display: inline-block;
  width: .17em;
  height: .17em;
  margin-left: .06em;
  border-radius: 50%;
  background: #F28A35;
  font-size: inherit;
  color: transparent !important;
  overflow: hidden;
  vertical-align: baseline;
}

/* Enquêtes banner: Trevor Gerzen's glasses (Unsplash), light overlay so the photo shows */
.enq-hero {
  background: linear-gradient(rgba(1, 50, 32, .38), rgba(1, 50, 32, .52)), #013220 url('/img/bar-enquetes-verres.jpg') center / cover no-repeat !important;
}

/* Enquêtes page: photo darkened (multiply) to match the À propos and Accueil heroes */
body.enquetes-page section.enq-hero:not(.about-banner) {
  background: linear-gradient(rgba(1, 50, 32, .45), rgba(1, 50, 32, .62)), linear-gradient(#5c7a6b, #5c7a6b), #013220 url('/img/bar-enquetes-verres.jpg') center / cover no-repeat !important;
  background-blend-mode: normal, multiply, normal !important;
}

/* Keep the round dot attached to the last word */
.enq-hero-copy h1 .enq-word { white-space: nowrap; }


/* Motion (Enquêtes, À propos): scroll reveals are added by /components/layout/page-motion.js */
.pm-on .pm { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.pm-on .pm.is-in { opacity: 1; transform: none; }
.pm-on .pm.pm-slide { transform: translateX(70px); transition-duration: 1.1s, 1.1s; transition-timing-function: ease, cubic-bezier(.16,.8,.2,1); }
.pm-on .pm.pm-slide.is-in { transform: none; }
@media (prefers-reduced-motion: no-preference) {
  body.enquetes-page .enq-hero-copy h1,
  body.enquetes-page .enq-hero-copy p { animation: pm-rise .8s cubic-bezier(.2,.7,.2,1) .25s both; }
  body.enquetes-page .enq-hero-copy p { animation-delay: .45s; }
}
@keyframes pm-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
