/* Civiq front page, direction "La phrase". Ink ground, one giant sentence
   with the app slotted into it, then red, yellow and cream fields. */
html, body { background: #241612; margin: 0; }

:root {
    --red: #C8361F;
    --red-deep: #A52914;
    --cream: #FFF6E8;
    --paper: #F4E6CF;
    --ink: #241612;
    --ink-2: #33201A;
    --yellow: #F2C230;
    --navy: #1F2A5C;
    --green: #2E6B45;
    --ochre: #B7791F;
    --violet: #5B3FA8;
    --m: clamp(20px, 4vw, 64px);
    --gap: clamp(96px, 11vw, 168px);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
body {
    font: 500 18px/1.55 Manrope, system-ui, sans-serif;
    color: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
    font-family: Anton, Impact, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    line-height: .92;
    letter-spacing: -.005em;
    margin: 0;
}
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--ink); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 10px 16px; z-index: 10; font-weight: 800; }
.skip:focus { left: 8px; }

.h-big { font-size: clamp(52px, 5.8vw, 104px); }

/* Buttons: fully round, one flat fill. */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 60px; padding: 0 30px; border-radius: 999px; border: 0;
    font: 800 18px Manrope, sans-serif; text-decoration: none; cursor: pointer;
    transition: transform .25s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #F7CF4F; }
.btn--red { background: var(--red); color: var(--cream); }
.btn--red:hover { background: var(--red-deep); }
.btn--ink { background: var(--ink); color: var(--cream); }

/* Bar */
.bar { display: flex; align-items: center; gap: 32px; padding: 24px var(--m); }
.bar__mark { font: 400 32px/1 Anton, sans-serif; color: var(--yellow); text-decoration: none; letter-spacing: .01em; }
.bar__links { display: flex; gap: 32px; margin-left: auto; font-weight: 700; }
.bar__links a { text-decoration: none; position: relative; }
.bar__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.bar__links a:hover::after { transform: scaleX(1); }

/* 1. Hero: the sentence */
.hero { padding: clamp(24px, 5vh, 64px) var(--m) var(--gap); }
.hero__title { font-size: clamp(56px, 10.2vw, 196px); line-height: .96; }
.hero__title .w { display: inline-block; }
.hero__title .w--red { color: var(--red); }
.slot {
    position: relative; display: inline-block; vertical-align: -.06em;
    width: 1.5em; height: .82em; border-radius: .15em; overflow: hidden;
    background: var(--red);
}
.slot--narrow { width: 1.05em; background: var(--yellow); }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 21%; }
.slot--narrow img { object-position: 50% 16%; }
.slot img + img { opacity: 0; }
.hero__under { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; margin-top: clamp(36px, 5vw, 64px); }
.hero__lede { font-size: clamp(19px, 1.6vw, 23px); max-width: 42ch; }
.hero__act { display: grid; justify-items: end; gap: 12px; }
.hero__act p { font-weight: 700; font-size: 15px; }

/* 2. Numbers on red */
.nums { background: var(--red); padding: var(--gap) var(--m); }
.nums__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.num b { display: block; font: 400 clamp(120px, 16vw, 280px)/.84 Anton, sans-serif; font-variant-numeric: tabular-nums; }
.num span { display: block; font-weight: 700; font-size: 20px; margin-top: 18px; max-width: 18ch; }
.nums__note { font-size: 22px; max-width: 44ch; margin-top: 64px; font-weight: 700; }

/* 3. Try a card on yellow */
.try { background: var(--yellow); color: var(--ink); padding: var(--gap) var(--m); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.try__text p { font-size: 21px; max-width: 32ch; margin-top: 28px; }
.try__text .try__score { font: 400 34px/1 Anton, sans-serif; text-transform: uppercase; }
.card { background: var(--cream); border-radius: 32px; padding: clamp(28px, 3.4vw, 52px); }
.card__suit { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.mark { width: 28px; height: 28px; flex: none; }
.mark--valeurs { fill: var(--red); } .mark--institutions { fill: var(--navy); } .mark--droits { fill: var(--green); } .mark--histoire { fill: var(--ochre); } .mark--societe { fill: var(--violet); }
.card__prompt { font-size: clamp(32px, 3vw, 52px); line-height: 1; margin: 28px 0; }
.card__options { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card__options button {
    width: 100%; min-height: 76px; padding: 14px 18px; text-align: left; border: 0; border-radius: 18px;
    background: var(--paper); color: var(--ink); font: 700 17px/1.3 Manrope, sans-serif; cursor: pointer;
    transition: transform .2s var(--ease), background-color .2s;
}
.card__options button:hover:not(:disabled) { transform: translateY(-3px); background: #EFDDBF; }
.card__options button:disabled { cursor: default; }
.card__options .is-right { background: var(--green); color: var(--cream); }
.card__options .is-wrong { background: var(--red); color: var(--cream); }
.card__why { font-size: 17px; margin-top: 22px; }
.card__next { margin-top: 18px; min-height: 52px; }

/* 4. What the app does */
.lines { padding: var(--gap) var(--m); }
.lines > h2 { color: var(--yellow); margin-bottom: 40px; }
.line { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; padding: 48px 0; }
.line--flip { grid-template-columns: minmax(0, 1fr) 300px; }
.line--flip img { order: 2; }
.line img { width: 300px; height: auto; border-radius: 34px; }
.line h3 { font-size: clamp(44px, 6.4vw, 120px); }
.line p { font-size: 22px; max-width: 46ch; margin-top: 24px; }

/* 5. The deck: five suits, five fields */
.deck { background: var(--cream); color: var(--ink); padding: var(--gap) var(--m) 0; }
.deck__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.deck__head p { font-size: 21px; max-width: 40ch; }
.suits { list-style: none; padding: 0; margin: 72px calc(var(--m) * -1) 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.suit { min-height: 460px; padding: 40px 28px; display: flex; flex-direction: column; color: var(--cream); }
.suit svg { width: 64%; max-width: 160px; fill: var(--cream); margin-bottom: auto; transition: transform .5s var(--ease); }
.suit:hover svg { transform: rotate(-8deg) scale(1.06); }
.suit b { font: 400 clamp(64px, 6vw, 104px)/1 Anton, sans-serif; margin-top: 32px; }
.suit span { font-weight: 800; font-size: 18px; margin-top: 8px; }
.suit--valeurs { background: var(--red-deep); } .suit--institutions { background: var(--navy); } .suit--droits { background: var(--green); } .suit--histoire { background: var(--ochre); } .suit--societe { background: var(--violet); }

/* 6. Price on cream */
.price { background: var(--cream); color: var(--ink); padding: var(--gap) var(--m); }
.price__title { font-size: clamp(64px, 10.4vw, 196px); }
.price__title span { color: var(--red); }
.price__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; margin-top: 48px; align-items: start; }
.price__lede { font-size: 21px; max-width: 40ch; margin-bottom: 36px; }
.price__list { list-style: none; padding: 0; margin: 0; font: 400 clamp(30px, 2.9vw, 48px)/1.15 Anton, sans-serif; text-transform: uppercase; }
.price__list li + li { margin-top: 14px; }

/* 7. Questions */
.faq { padding: var(--gap) var(--m); }
.faq > h2 { color: var(--yellow); margin-bottom: 40px; }
.faq__item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; padding: 44px 0; }
.faq__item + .faq__item { padding-top: 44px; }
.faq__item:nth-of-type(even) { background: var(--ink-2); margin: 0 calc(var(--m) * -1); padding-left: var(--m); padding-right: var(--m); }
.faq__item h3 { font-size: clamp(30px, 2.8vw, 46px); line-height: 1; }
.faq__item p { font-size: 18px; max-width: 54ch; }

/* Footer: the name returns at full width */
.foot { background: var(--red); padding: 96px var(--m) 40px; }
.foot__name { font: 400 26.5vw/.8 Anton, sans-serif; letter-spacing: -.02em; color: var(--cream); margin-left: -.03em; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-top: 48px; font-weight: 700; font-size: 16px; }
.foot__links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 28px; }

/* Motion: entrances only when the script runs, travel dropped for reduced motion. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero__title .w, .js .hero__title .slot { opacity: 0; transform: translateY(.35em); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .hero.is-in .hero__title .w, .js .hero.is-in .hero__title .slot { opacity: 1; transform: none; }
.slot img { transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.js .slot img.is-on { opacity: 1; }
.js .slot img:not(.is-on) { opacity: 0; transform: scale(1.08); }
.line img { transition: transform .5s var(--ease), opacity .7s var(--ease); }
.line img.is-in:hover { transform: rotate(-2deg) translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
    .js .reveal, .js .hero__title .w, .js .hero__title .slot { transform: none; transition: opacity .3s linear; }
    .slot img { transition: none; transform: none !important; }
    .btn, .card__options button, .suit svg { transition: none; }
}

/* Phone */
@media (max-width: 860px) {
    body { font-size: 17px; }
    .bar__links { display: none; }
    .hero__title { font-size: clamp(48px, 14.5vw, 96px); }
    .hero__under { grid-template-columns: 1fr; gap: 28px; }
    .hero__act { justify-items: start; }
    .nums__row { grid-template-columns: 1fr; gap: 36px; margin-top: 40px; }
    .num b { font-size: 120px; }
    .try { grid-template-columns: 1fr; gap: 40px; }
    .card__options { grid-template-columns: 1fr; }
    .card__options button { min-height: 60px; }
    .line, .line--flip { grid-template-columns: 1fr; gap: 28px; padding: 36px 0; }
    .line--flip img { order: 0; }
    .line img { width: 220px; }
    .deck__head { grid-template-columns: 1fr; gap: 24px; }
    .suits { grid-template-columns: 1fr 1fr; margin-top: 48px; }
    .suit { min-height: 280px; padding: 28px 20px; }
    .suit:last-child { grid-column: 1 / -1; }
    .price__row { grid-template-columns: 1fr; gap: 40px; }
    .faq__item { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
    .faq__item + .faq__item { padding-top: 32px; }
}
