/* Standalone styling for the gallery pages (/modele-cv-simple/, …).
   No JavaScript and no app bundle: these pages are served as-is and render
   on their own. Tokens and type mirror the home page's ranking content, so
   the two read as one site; fonts stay on system faces because the app's
   bundled webfonts live behind content-hashed filenames. */
:root {
  --navy: #12304a;
  --teal: #2f8f88;
  --ink: #3c4959;
  --rule: #dde4ee;
  --serif: Georgia, 'Times New Roman', serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.gl-wrap {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gl-band {
  padding: 3.75rem 0;
}

.gl-band-alt {
  background: #f4f7fa;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* ---- top bar ---- */
.gl-top {
  border-bottom: 1px solid var(--rule);
  padding: 0.9rem 0;
}

.gl-top .gl-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* The same wordmark the builder shows in its floating toolbar. Sized by
   height with an automatic width, so swapping in a logo of a different
   aspect ratio does not need a change here. */
.gl-brand {
  display: flex;
  align-items: center;
}

.gl-brand img {
  display: block;
  height: 30px;
  width: auto;
}

.gl-top-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.gl-top-cta {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.gl-top-cta:hover {
  border-color: var(--teal);
  box-shadow: 0 1px 6px rgba(18, 48, 74, 0.08);
}

/* ---- breadcrumb ----
   Lives inside .gl-hero, so it carries no background of its own and no top
   padding — the hero supplies both. Its bottom padding is the gap to the h1. */
.gl-crumb {
  padding: 0 0 1.6rem;
  font-size: 13px;
  color: #7a8798;
}

.gl-crumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gl-crumb li::after {
  content: '›';
  margin-left: 0.4rem;
  color: #aab5c2;
}

.gl-crumb li:last-child::after {
  content: '';
}

.gl-crumb a {
  color: #7a8798;
  text-decoration: none;
}

.gl-crumb a:hover {
  color: var(--teal);
  text-decoration: underline;
}

/* ---- hero ---- */
.gl-hero {
  padding: 1.15rem 0 3.25rem;
  background:
    radial-gradient(90% 120% at 50% -20%, rgba(47, 143, 136, 0.09) 0%, rgba(47, 143, 136, 0) 60%),
    linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--rule);
}

.gl-eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(47, 143, 136, 0.1);
  color: var(--teal);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(29px, 4.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.026em;
  line-height: 1.1;
  color: var(--navy);
  margin: 0 0 1.1rem;
}

.gl-lede {
  max-width: 44rem;
  font-size: 16.5px;
  line-height: 1.65;
  color: #4a5768;
  margin: 0 0 1rem;
}

.gl-lede:last-child {
  margin-bottom: 0;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.18;
  color: var(--navy);
  margin: 0 0 1.35rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--teal);
}

strong {
  color: var(--navy);
  font-weight: 600;
}

/* ---- the model grid ----------------------------------------------------
   Nothing stands between the intro paragraph and the thumbnails: no heading,
   no second paragraph. The band's top padding is trimmed to match, so the
   grid reads as the continuation of the sentence above it. */
.gl-band--grid {
  padding-top: 2.25rem;
}

.gl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Four across, for the hub only. The hub shows every model on the site at
   once, so the grid trades thumbnail size for the ability to scan the whole
   catalogue without scrolling past it. It steps down to the ordinary three
   columns below 1180px, where a quarter-width résumé stops being readable —
   from there the shared breakpoints take over. */
.gl-grid--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem 1.2rem;
}

@media (max-width: 1180px) {
  .gl-grid--4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* One link per card: the image, the name and the call to action all live
   inside the same anchor, so there is a single tab stop and a single target. */
.gl-card {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.gl-shot {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(18, 48, 74, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.gl-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* Deliberately NOT gated behind `@media (hover: hover)`. A touchscreen
   laptop reports `hover: none` and `any-hover: none` even though it is
   driven with a trackpad, so that query silently kills the hover state on
   exactly the machines where it matters most. The phone case is handled
   where it belongs — the width breakpoint at the end of this file drops the
   overlay and shows a permanent button instead. */
.gl-card:hover .gl-shot,
.gl-card:focus-visible .gl-shot {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 10px 24px rgba(18, 48, 74, 0.14);
}

.gl-card:hover .gl-name {
  color: var(--teal);
}

.gl-card:focus-visible {
  outline: none;
}

.gl-card:focus-visible .gl-shot {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.gl-name {
  margin: 0.7rem 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}

/* Overlay — desktop affordance, on top of the thumbnail */
.gl-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 48, 74, 0.42);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.gl-card:hover .gl-overlay,
.gl-card:focus-visible .gl-overlay {
  opacity: 1;
}

.gl-cta {
  display: inline-block;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 600;
  padding: 0.6rem 1.15rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

/* The permanent button is a phone affordance: there is no hover there. */
.gl-cta-touch {
  display: none;
}

/* ---- "voir plus", CSS only ---------------------------------------------
   The checkbox stays in the accessibility tree (moved off-screen rather than
   display:none) so the control is reachable by keyboard. All twelve cards are
   in the HTML either way — this only folds the tail away on a phone. */
.gl-more-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Desktop fold, for galleries that opt in by carrying --fold12: twelve
   models shown, the rest behind the button. A gallery of exactly twelve does
   not opt in, so nth-child(n+13) matches nothing there and its button stays
   hidden — one rule set serves both page sizes. */
.gl-grid--fold12 > .gl-item:nth-child(n + 13) {
  display: none;
}

.gl-grid--fold12 ~ .gl-more {
  display: block;
}

.gl-more-toggle:checked + .gl-grid--fold12 > .gl-item:nth-child(n + 13) {
  display: block;
}

.gl-more-toggle:checked + .gl-grid--fold12 ~ .gl-more {
  display: none;
}

.gl-more {
  display: none;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.85rem 1.25rem;
  min-height: 44px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.gl-more-toggle:focus-visible + .gl-grid + .gl-more {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ---- ad slots ----------------------------------------------------------
   Deliberately empty and with no reserved height: an unfilled slot must not
   leave a hole in the page. Paste the unit markup inside the div. */
.ad-slot {
  margin: 2.5rem auto;
  max-width: 62rem;
  padding: 0 1.5rem;
  text-align: center;
}

.ad-slot:empty {
  margin: 0;
}

/* ---- prose ---- */
.gl-prose {
  max-width: 44rem;
}

.gl-prose h2 {
  margin-top: 2.75rem;
}

.gl-prose h2:first-child {
  margin-top: 0;
}

/* The opening lines carry the whole section: set larger so the eye lands
   there before anywhere else on the band. */
.gl-open {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.45;
  color: var(--navy);
  margin-bottom: 1.15rem;
}

.gl-prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.gl-prose li {
  margin-bottom: 0.5rem;
}

.gl-pull {
  margin: 1.5rem 0 !important;
  border-left: 3px solid var(--teal);
  padding-left: 1.1rem;
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--navy);
}

/* ---- sticky filter bar (hub only) -------------------------------------
   Filtering is done in CSS, driven by radio inputs that live at the top of
   the page. Every one of the 65 cards stays in the HTML whatever is
   selected — nothing is added or removed by script — so a crawler sees the
   whole catalogue and the page works with JavaScript disabled.

   The bar is sticky because the alternative is asking someone to scroll
   back past sixty-five thumbnails to change their mind. */
.gl-filters-in {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gl-filters {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.6) blur(8px);
  border-bottom: 1px solid var(--rule);
  padding: 0.7rem 0;
}

.gl-filters .gl-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.gl-filters label {
  display: inline-block;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: #56657a;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.gl-filters label:hover {
  border-color: #9fb0c4;
  color: var(--navy);
}

/* Keyboard users get the same ring the rest of the site uses. */
.gl-filters-in:focus-visible ~ .gl-filters label,
.gl-filters label:focus-visible {
  outline-offset: 2px;
}

body:has(#f-tout:checked) label[for='f-tout'],
body:has(#f-simple:checked) label[for='f-simple'],
body:has(#f-moderne:checked) label[for='f-moderne'],
body:has(#f-colore:checked) label[for='f-colore'],
body:has(#f-sansphoto:checked) label[for='f-sansphoto'],
body:has(#f-anglais:checked) label[for='f-anglais'],
body:has(#f-suisse:checked) label[for='f-suisse'] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* Each grid section carries data-cat; the checked radio hides every other
   one. `:has()` rather than a sibling combinator because the radios sit in
   the flow above the grid — see below — and the sections are not their
   siblings. Where `:has()` is unsupported nothing is hidden, which lands on
   "Tout": the page degrades to what it was before the filters existed. */
body:has(#f-simple:checked) .gl-cat:not([data-cat='simple']),
body:has(#f-moderne:checked) .gl-cat:not([data-cat='moderne']),
body:has(#f-colore:checked) .gl-cat:not([data-cat='colore']),
body:has(#f-anglais:checked) .gl-cat:not([data-cat='anglais']),
body:has(#f-suisse:checked) .gl-cat:not([data-cat='suisse']) {
  display: none;
}

/* "Sans photo" is the one filter that is not a silo.

   Simple, moderne, coloré, anglais and suisse each describe where a model
   came from, and a model comes from exactly one of them — so hiding whole
   sections is right. Having no photo is a property instead, and photoless
   models live in every section: six among the simple ones, nine among the
   English, four among the coloured. Filtering by section showed two.

   So this filter works card by card, and drops only the sections left with
   nothing to show. */
body:has(#f-sansphoto:checked) .gl-item:not([data-photo='no']) {
  display: none;
}

body:has(#f-sansphoto:checked) .gl-cat:not(:has(.gl-item[data-photo='no'])) {
  display: none;
}

/* Each section heading carries two counts: all its models, and just the
   photoless ones. Only one is ever shown, so a heading can never announce
   twelve above a grid of six.

   Order matters here and cost me a pass: the base `.gl-count` rule below
   sat AFTER the hiding rule, and at equal specificity the later one wins —
   both numbers rendered, "12" and "6" run together as "126". The shared
   look comes first, the visibility rules after. */
.gl-count {
  display: inline-block;
  margin-left: 0.15rem;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: #eef2f7;
  font-size: 0.62em;
  font-weight: 700;
  vertical-align: 0.28em;
  color: #64748b;
}

.gl-count--np {
  display: none;
}

body:has(#f-sansphoto:checked) .gl-count:not(.gl-count--np) {
  display: none;
}

body:has(#f-sansphoto:checked) .gl-count--np {
  display: inline-block;
}

/* The radios live here, in normal flow just above the first grid, and not
   inside the sticky bar. Clicking a label focuses its radio, and the browser
   scrolls a focused control into view — which is precisely the behaviour
   wanted: the page returns to the top of the grid instead of leaving the
   reader stranded where the content just shrank away beneath them. */
.gl-filters-anchor {
  position: relative;
  height: 0;
}

html:has(.gl-filters) {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html:has(.gl-filters) {
    scroll-behavior: auto;
  }
}

@media (max-width: 720px) {
  .gl-filters {
    padding: 0.55rem 0;
  }

  .gl-filters .gl-wrap {
    gap: 0.35rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .gl-filters .gl-wrap::-webkit-scrollbar {
    display: none;
  }

  .gl-filters label {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 0.38rem 0.7rem;
  }
}

/* ---- comparison table -------------------------------------------------
   Built for /cv-suisse/, where the whole point of the page is a set of
   line-by-line differences. A reader takes three seconds on this and thirty
   on the same content written as prose, so it comes before any paragraph.

   The two value columns are colour-coded on their own left rule rather than
   a filled background: a full tint on eight rows turns into a block, which
   is the thing this table exists to avoid. */
.gl-cmp-wrap {
  overflow-x: auto;
  margin: 0 0 1.75rem;
  -webkit-overflow-scrolling: touch;
}

.gl-cmp {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.gl-cmp caption {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8b98a8;
  padding-bottom: 0.6rem;
}

.gl-cmp th,
.gl-cmp td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--rule);
}

.gl-cmp thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
  padding-bottom: 0.5rem;
}

/* The row label carries the weight; the two values are read against it. */
.gl-cmp tbody th {
  width: 30%;
  font-weight: 600;
  color: var(--navy);
}

.gl-cmp td {
  width: 35%;
  color: var(--ink);
}

.gl-cmp .gl-cmp-fr {
  border-left: 3px solid #cbd5e1;
  background: #fbfcfe;
}

.gl-cmp .gl-cmp-ch {
  border-left: 3px solid #b91c1c;
  background: #fdf6f6;
  color: var(--navy);
  font-weight: 500;
}

.gl-cmp tbody tr:last-child th,
.gl-cmp tbody tr:last-child td {
  border-bottom: none;
}

/* A full-width note inside the table rather than a paragraph under it: the
   contradiction it resolves — "2 to 4 pages" printed a few centimetres above
   twelve one-page thumbnails — is only visible while the eye is still on the
   table. */
.gl-cmp-note td {
  background: #f4f7fa;
  border-left: 3px solid var(--rule);
  font-size: 14px;
  line-height: 1.6;
  color: #56657a;
}

@media (max-width: 720px) {
  .gl-cmp {
    font-size: 14px;
  }

  .gl-cmp th,
  .gl-cmp td {
    padding: 0.6rem 0.7rem;
  }
}

/* ---- FAQ ---- */
.gl-faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1rem;
}

.gl-qa {
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #fff;
  padding: 1.25rem 1.35rem;
}

.gl-qa h3 {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.45rem;
  line-height: 1.35;
}

.gl-qa p {
  font-size: 14.5px;
  line-height: 1.65;
}

/* ---- other styles ----
   The "Autres styles de CV" block is out of the markup for now: the pages it
   pointed at do not exist yet. Kept here because it comes back, gallery by
   gallery, as those pages ship. */
/* Flex rather than a grid of equal columns: these pages link to one or two
   sister galleries today and will link to more later. A single auto-fit grid
   cell would stretch the lone card across the whole page and read as a
   banner; here it keeps a card's width and the row simply fills up as
   galleries ship. */
.gl-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gl-links li {
  flex: 1 1 16rem;
  max-width: 22rem;
}

.gl-links a {
  display: block;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--teal);
  border-radius: 12px;
  background: #fff;
  padding: 0.95rem 1.15rem;
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.gl-links a:hover {
  border-color: var(--teal);
  box-shadow: 0 3px 12px rgba(18, 48, 74, 0.09);
}

.gl-links span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #6b7a8c;
  margin-top: 0.15rem;
}

/* ---- footer ---- */
.gl-foot {
  background: var(--navy);
  color: #93a8bd;
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 13.5px;
}

.gl-foot-brand {
  margin: 0 0 0.35rem;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.gl-foot a:hover {
  color: #fff;
  text-decoration: underline;
}

.gl-foot-copy {
  margin: 1rem 0 0;
  font-size: 12.5px;
  color: #6e8399;
}

/* ---- responsive --------------------------------------------------------
   Three columns on a desktop, two on a tablet, one on a phone. A résumé
   thumbnail narrower than roughly a third of a laptop screen stops being
   readable, which is what sets the floor. */
@media (max-width: 900px) {
  .gl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .gl-band {
    padding: 2.75rem 0;
  }

  .gl-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* No hover on touch: the call to action becomes a permanent button, and
     the overlay is dropped entirely. */
  .gl-overlay {
    display: none;
  }

  .gl-cta-touch {
    display: block;
    margin-top: 0.65rem;
    min-height: 44px;
    padding: 0.8rem 1.25rem;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    text-align: center;
    box-shadow: none;
  }

  /* Twelve full-width résumés stacked make an unusable page: show six and
     let the visitor ask for the rest. */
  .gl-grid > .gl-item:nth-child(n + 7) {
    display: none;
  }

  .gl-more-toggle:checked + .gl-grid > .gl-item:nth-child(n + 7) {
    display: block;
  }

  .gl-more {
    display: block;
  }

  .gl-more-toggle:checked + .gl-grid + .gl-more {
    display: none;
  }

  /* A gallery that shows every model at every width opts out of the fold.
     Same specificity as the rule above, declared after it, so it wins —
     without it these pages would hide half their grid on a phone with no
     button to bring it back. */
  .gl-grid--all > .gl-item:nth-child(n + 7) {
    display: block;
  }
}
