/* Page CSS on top of the TasteSkill kit: only what sits inside a visual or a list the kit lacks.
   Tokens, grid, buttons, nav and footer come from /assets/system.css and /assets/layout/layout.css. */

/* the client's logo beside the name */
.nav__logo { display: inline-flex; align-items: center; gap: var(--s-3); }
.logo-img { width: 40px; height: 40px; flex: none; object-fit: contain; }
@media (max-width: 639px) { .logo-img { width: 32px; height: 32px; } }

/* picture-develops: the section's one photograph on the split's right column */
.develop { margin: 0; border-radius: var(--r-lg); overflow: hidden; height: min(560px, var(--ly-fit, 560px)); }
.develop > img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .develop { height: auto; aspect-ratio: 4 / 3; margin-top: var(--s-7); } }

/* a photograph beside a list */
.side-photo { border-radius: var(--r-lg); overflow: hidden; height: min(560px, var(--ly-fit, 560px)); }
.side-photo--short { height: 300px; }
.side-photo > img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 1023px) { .side-photo, .side-photo--short { height: auto; aspect-ratio: 3 / 2; margin-top: var(--s-6); } }

/* peek-list rows are links to the insurance pages: the link covers the whole row */
.rows--links > li { cursor: pointer; position: relative; }
.rows--links .peek-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rows--links > li:hover .peek-link { color: var(--action); }
.rows--links > li { padding-block: var(--s-2); }
.rows--links .rows__name { font-size: var(--t-card); }
.peek-link { color: var(--ink); text-decoration: none; }
.peek-link:hover { color: var(--action); }
@media (max-width: 639px) { .peek-link { display: inline-flex; align-items: center; min-height: 44px; } .peek-photo { height: auto; aspect-ratio: 4 / 3; } }

/* tight lists of guarantees and audiences */
.rows--tight > li { padding-block: var(--s-3); }
.list-title { font: 500 var(--t-card)/1.4 var(--font-text); letter-spacing: 0; margin: 0 0 var(--s-3); }
.list-check { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.list-check > li { position: relative; padding-left: var(--s-6); line-height: 1.5; }
.list-check > li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 2px solid var(--action); border-bottom: 2px solid var(--action); transform: rotate(-45deg); }
@media (min-width: 1024px) { .list-check--cols { grid-template-columns: 1fr 1fr; column-gap: var(--s-6); } }
.garanties__group + .garanties__group { margin-top: var(--s-6); }
.public { padding-top: calc(var(--t-h2) * 1.2 + var(--s-7)); }
@media (max-width: 1023px) { .public { padding-top: var(--s-7); } }

/* running text */
.prose { display: grid; gap: var(--s-4); max-width: 62ch; }
.prose p { margin: 0; }
.prose__note { font-weight: 500; margin-top: var(--s-5); max-width: 62ch; }
.measure-wide { max-width: 760px; }
.avec { margin-top: var(--s-7); }
.avec h3 { font: 500 var(--t-card)/1.4 var(--font-text); letter-spacing: 0; margin: 0 0 var(--s-3); }

/* broker vs company: the closing line under the table */
.compare__note { margin-top: var(--s-7); max-width: 62ch; }
.compare__note strong { font-weight: 500; }

/* three steps */
.steps-list { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--s-6); }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: var(--s-3); border-radius: 50%;
  background: var(--surface); font: 500 var(--t-small)/1 var(--font-text); color: var(--ink); vertical-align: middle; }
.steps-list h3 { font: 500 var(--t-card)/1.4 var(--font-text); letter-spacing: 0; margin: 0 0 var(--s-1); }
.steps-list p { margin: 0; }

/* forms: the honeypot stays out of sight and out of the tab order */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form select { width: 100%; }
.form textarea { min-height: 140px; }
.aside-facts { display: grid; gap: var(--s-6); }
.aside-facts h3 { font: 500 var(--t-card)/1.4 var(--font-text); letter-spacing: 0; margin: 0 0 var(--s-3); }
.aside-facts address { font-style: normal; }

/* screen fit at tablet and phone (layout-v4.md section 2: one page-CSS rule per section) */
@media (max-width: 639px) {
  .hero__kicker { display: none; }
  #assurances, #autres, #courtier, #marchandises, #trottinettes-velos { --hm: 2; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  #assurances, #autres { --h: 2; }
  .develop, .side-photo { aspect-ratio: 16 / 9; }
}
@media (max-width: 639px) { .hero--split .hero__media { min-height: 220px; } }
@media (min-width: 640px) and (max-width: 1023px) { #poids-lourds { --h: 2; } }
@media (max-width: 639px) { .long-m { --hm: 2; } }
.aside-facts--offset { padding-top: calc(var(--t-h2) * 1.2 + var(--s-7)); }
@media (max-width: 1023px) { .aside-facts--offset { padding-top: var(--s-7); } }
.steps-list--small { gap: var(--s-3); list-style: decimal; padding-left: 1.2em; }
.steps-list--small strong { font-weight: 500; }
.credits-list { font-size: var(--t-small); }
.footer__col a, .aside-facts a { overflow-wrap: anywhere; }
@media (max-width: 639px) { .closing__links .grid > [class*="start-"] { grid-column: 1 / -1; } }

/* legal pages: long running text, the one place a section grows with its content */
main > section.section--text { height: auto; min-height: 100svh; }
main > section.section--text > .wrap { height: auto; }
.legal { max-width: 72ch; }
.legal h2 { font-size: var(--t-h3); margin: var(--s-8) 0 var(--s-4); }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul { margin: 0 0 var(--s-4); line-height: 1.7; }
.legal ul { padding-left: 1.2em; display: grid; gap: var(--s-2); }
.legal strong { font-weight: 500; }
.legal__updated { margin-top: var(--s-8) !important; color: var(--muted); font-size: var(--t-small); }
.footer__legal-links { display: inline-flex; flex-wrap: wrap; gap: var(--s-4); }

/* ---------------------------------------------------------------- compact layout (Parsivald, 16/11/2026)
   The kit sizes every section to exactly one screen and stretches the photographs to fill it; with little
   text that left empty bands. Here a section is as tall as its content and the photographs have a fixed,
   lower height. */
:root { --nav: 92px; --sec-pad: 88px; }
@media (max-width: 1023px) { :root { --sec-pad: 64px; } }
@media (max-width: 639px) { :root { --nav: 76px; --sec-pad: 56px; } }

main > :is(section, .section), main > :is(section, .section):not(.hero, .section--hero), footer.closing {
  height: auto; min-height: 0;
}
main > :is(section, .section):not(.hero, .section--hero) { padding: var(--sec-pad) 0 var(--sec-pad); }
footer.closing { padding: var(--sec-pad) 0 calc(var(--s-7) + var(--bar)); }
main > :is(section, .section) > :is(.wrap, .container), footer.closing > .wrap { height: auto; }
main > section.section--text { min-height: 0; }

/* hero: the words and a photograph of fixed height, no longer the whole first screen */
main > :is(.hero, .section--hero) {
  height: auto; min-height: 0;
  padding: calc(var(--nav) + var(--s-8)) 0 var(--sec-pad);
}
.hero--split .hero__media { height: 440px; }
@media (max-width: 1023px) { .hero--split .hero__media { height: 360px; flex: none; } }
@media (max-width: 639px) { .hero--split .hero__media { height: 240px; min-height: 0; } }

/* photographs beside the words */
.develop, .side-photo { height: 380px; }
.side-photo--short { height: 260px; }
@media (max-width: 1023px) {
  .develop, .side-photo, .side-photo--short { height: auto; aspect-ratio: 16 / 9; }
}
/* the insurance list's photograph: as tall as the list beside it, never more than 460px */
main > :is(section, .section) > .wrap > .fill { flex: none; }
.peek-photo { position: relative; height: auto; align-self: stretch; min-height: 340px; max-height: 460px; }
@media (max-width: 1023px) { .peek-photo { height: auto; min-height: 0; aspect-ratio: 16 / 9; } }

/* the client's logo, 70px in the header and the footer */
.logo-img, .nav__logo img.logo-img { width: 70px; height: 70px; }
@media (max-width: 639px) { .logo-img, .nav__logo img.logo-img { width: 56px; height: 56px; } }

/* broker vs company: a side-by-side table, the broker's column picked out; stacked cards on a phone */
.vs { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.vs th, .vs td { text-align: left; vertical-align: top; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); line-height: 1.5; }
.vs thead th { font: 400 var(--t-h3)/1.2 var(--font-display); letter-spacing: var(--display-tracking); padding-block: var(--s-5); border-bottom: 2px solid var(--line); }
.vs thead th span { display: block; margin-top: var(--s-1); font: 500 var(--t-small)/1.4 var(--font-text); letter-spacing: 0; color: var(--muted); }
.vs thead td { width: 22%; border-bottom: 2px solid var(--line); }
.vs tbody th { font: 500 var(--t-body, 1rem)/1.4 var(--font-text); color: var(--muted); }
.vs .vs__us { background: var(--bg); }
.vs thead th.vs__us { border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom-color: var(--action); }
.vs thead th.vs__us span { color: var(--action); }
.vs tbody tr:last-child .vs__us { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.vs tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 767px) {
  .vs, .vs tbody, .vs tr, .vs th, .vs td { display: block; width: auto; }
  .vs thead { display: none; }
  .vs tbody { display: grid; gap: var(--s-4); }
  .vs tbody tr { background: var(--bg); border-radius: var(--r-lg); padding: var(--s-4); }
  .vs tbody th { padding: 0 0 var(--s-3); border: 0; color: var(--ink); font-weight: 500; }
  .vs tbody td { padding: var(--s-3) 0 0; border: 0; background: none !important; }
  .vs tbody td::before { content: attr(data-label); display: block; font: 500 var(--t-small)/1.4 var(--font-text); color: var(--muted); }
  .vs tbody td.vs__us::before { color: var(--action); }
  .vs tbody td + td { margin-top: var(--s-3); border-top: 1px solid var(--line); }
}

/* complaint attachments */
.field__hint { margin: 0; font-weight: 400; color: var(--muted); }
.field input[type="file"] { height: auto; padding: var(--s-3); cursor: pointer; }

/* /verifier: the answer, white on green (a Defendia contact) or white on red (not one) */
.verify-form { margin-bottom: var(--s-6); }
.verify-answer:empty { display: none; }
.verdict { display: flex; gap: var(--s-4); align-items: flex-start; margin: 0; padding: var(--s-5) var(--s-6);
  border-radius: var(--r-lg); color: #fff; line-height: 1.55; }
.verdict p { margin: 0; color: inherit; }
.verdict a { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.verdict__title { font: 400 var(--t-h3)/1.2 var(--font-display); letter-spacing: var(--display-tracking); margin-bottom: var(--s-2) !important; }
.verdict__icon { flex: none; width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: rgb(255 255 255 / .18);
  fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.verdict--yes { background: #17803d; }
.verdict--no { background: #b42318; }
.verdict--wait { display: block; background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.verdict--wait a { color: var(--action); }
@media (max-width: 639px) { .verdict { padding: var(--s-4); } .verdict__icon { width: 32px; height: 32px; padding: 6px; } }
@media (prefers-reduced-motion: no-preference) { .verdict { animation: verdict-in .32s cubic-bezier(.2, .7, .2, 1) both; } }
@keyframes verdict-in { from { opacity: 0; transform: translateY(6px); } }
/* the header's "Vérifier un contact" link says "Vérifier" where the bar is short */
@media (min-width: 1024px) and (max-width: 1279px) { .nav-long { display: none; } }
/* the Assurances menu card: picture, title and line stacked at the top, not spread down the panel */
.menu-card { align-content: start; gap: var(--s-2); }
.menu-card .panel { --p-h: 230px; margin-bottom: var(--s-2); }
