/*
 * The services hub (services-hub.mjs, /services/), over apple-service.css (its hero, logo band and
 * section heads). The five services as cards on white, two across then three, one on phones: the
 * service's picture (its film on hover, apple.css .project-media), its name, its line and
 * « Découvrir ». Then the types of videos and the expertises: each group of the menu a light grey
 * panel of links, side by side.
 */
.hub-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(2rem,3.5vw,3rem) clamp(1rem,2vw,1.5rem);width:min(100% - 2 * var(--gutter),80rem);margin:0 auto;padding:0;list-style:none}
.hub-service{grid-column:span 2}
.hub-service--wide{grid-column:span 3}
.hub-card{display:grid;align-content:start;gap:1.125rem;height:100%;color:var(--label)}
.hub-card:hover .project-poster{transform:scale(1.04)}
.hub-card-text{display:grid;justify-items:start;gap:.5rem}
.hub-card-title{display:flex;flex-wrap:wrap;align-items:center;gap:.375rem .75rem;margin:0;font-size:clamp(1.375rem,1.1rem + .8vw,1.75rem);font-weight:500;line-height:1.15;letter-spacing:-.02em}
.hub-badge{padding:.1875rem .5rem;border-radius:calc(var(--radius) / 2);box-shadow:inset 0 0 0 1px var(--black-24);font-size:.6875rem;font-weight:600;line-height:1.3;letter-spacing:.08em;text-transform:uppercase;color:var(--label-2)}
.hub-card-note{margin:0;max-width:34rem;font-size:1.0625rem;line-height:1.45;color:var(--label-2);text-wrap:pretty}
.hub-card-more{display:inline-flex;align-items:center;gap:.375rem;font-size:1rem;font-weight:500;color:var(--button)}
.hub-card-more .icon,.hub-link .icon{flex:none;width:1.125rem;height:1.125rem;transition:transform .2s var(--ease-standard)}
.hub-card:hover .hub-card-more .icon,.hub-card:focus-visible .hub-card-more .icon,.hub-link:hover .icon,.hub-link:focus-visible .icon{transform:translateX(.25rem)}

.hub-index>*{width:min(100% - 2 * var(--gutter),80rem);margin-inline:auto}
.hub-index + .hub-index{padding-top:0}
.hub-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:1rem}
.hub-group{padding:clamp(1.25rem,2vw,1.75rem);border-radius:var(--radius);background:var(--bg-alt)}
.hub-group-title{margin:0 0 .5rem;font-size:1.25rem;font-weight:600;line-height:1.2;letter-spacing:-.01em;color:var(--label)}
.hub-links{margin:0;padding:0;list-style:none}
.hub-links li + li{border-top:1px solid var(--black-6)}
.hub-link{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:3rem;padding:.625rem 0;font-size:1.0625rem;font-weight:500;line-height:1.3;color:var(--label);transition:color .2s var(--ease-standard)}
.hub-link .icon{color:var(--button)}
.hub-link:hover{color:var(--button)}

/* Tablets: two cards across; phones: one. */
@media (max-width:64rem){
  .hub-service,.hub-service--wide{grid-column:span 3}
}
@media (max-width:40rem){
  .hub-service,.hub-service--wide{grid-column:1 / -1}
}

/*
 * The four hubs' common design (hub-family.mjs; Kevin, 19 November 2026: « met la 4 avec le hero header de la
 * 10 »). The opening on white: the crumb under the logo, the rating and the H1 on the left, the lead and the
 * two calls to action on the right (blue for the quote, light grey for the projects), then the four hubs as
 * chips between two hairlines, the page's own in blue, and its count. The cards above (.hub-grid) stay the
 * studies' (etudes.mjs).
 */
.hub-hero{position:relative;margin-top:calc(var(--nav-height) * -1);padding:calc(var(--nav-height) + clamp(4.25rem,7vw,5.75rem)) 0 0;background:var(--bg);color:var(--label)}
.hub-hero .top-crumb{color:var(--label-2)}
.hub-hero .top-crumb li+li::before{background:var(--label-3)}
.hub-hero .top-crumb a:hover,.hub-hero .top-crumb [aria-current]{color:var(--label)}
.hub-hero-main,.hub-switch{width:min(100% - 2 * var(--gutter),80rem);margin-inline:auto}
.hub-hero-main{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:clamp(2rem,4vw,3.5rem);align-items:end}
.hub-hero .service-rating{color:var(--label);background:var(--bg);background-image:none;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:inset 0 0 0 1px rgb(0 0 0 / 8%)}
.hub-hero .service-title{color:var(--label);font-size:clamp(2.5rem,1.6rem + 3.6vw,4.75rem);line-height:1}
.hub-hero-intro{margin:0 0 1.5rem;font-size:clamp(1.0625rem,.98rem + .35vw,1.25rem);line-height:1.5;color:var(--label-2);text-wrap:pretty}
.hub-hero-ctas{display:flex;flex-wrap:wrap;gap:.75rem}
.hub-hero-cta{display:inline-flex;align-items:center;justify-content:center;min-height:3.25rem;padding:.5rem 1.6875rem;border-radius:var(--radius);font-size:1rem;font-weight:600;line-height:1.4;color:#fff;background:var(--button);transition:background-color .25s,transform .35s var(--ease)}
.hub-hero-cta:hover{background:var(--button-hover)}
.hub-hero-cta:active{transform:scale(.97)}
.hub-hero-cta--light{color:var(--label);background:var(--bg-alt)}
.hub-hero-cta--light:hover{background:#ececf0}
.hub-switch{display:flex;align-items:center;gap:1rem;margin-top:clamp(2.5rem,4vw,3.5rem);padding:1.25rem 0;border-block:1px solid rgb(0 0 0 / 12%)}
.hub-chips{display:flex;flex-wrap:wrap;gap:.625rem}
.hub-chip{display:inline-flex;align-items:center;gap:.5rem;min-height:2.5rem;padding:0 1rem;border-radius:var(--radius);background:var(--bg-alt);font-size:.9375rem;font-weight:500;white-space:nowrap;color:var(--label);transition:background-color .2s var(--ease-standard)}
.hub-chip small{font-size:.8125rem;font-weight:500;color:var(--label-3)}
.hub-chip:hover{background:#ececf0}
.hub-chip[aria-current]{color:#fff;background:var(--button)}
.hub-chip[aria-current] small{color:rgb(255 255 255 / 72%)}
.hub-switch-count{margin:0 0 0 auto;font-size:.9375rem;white-space:nowrap;color:var(--label-2)}

/*
 * The main content, the page's own cards (the tenth design's catalogue; Kevin, 19 November 2026: « le truc
 * principal il ressort par rapport au reste »): all at once, four across (three for the services), under labels
 * that read as the catalogue's (the groups' names in small capitals, with their count). Cards 16:10, their line
 * on two lines at most.
 */
.hub-main{display:grid;gap:clamp(2.5rem,4vw,3.5rem);width:min(100% - 2 * var(--gutter),80rem);margin-inline:auto;padding:clamp(2.75rem,5vw,4rem) 0 clamp(4rem,7vw,6rem)}
.hub-main-head{display:flex;align-items:baseline;gap:.625rem;margin-bottom:1.25rem}
.hub-main-title{margin:0;font-size:.8125rem;font-weight:600;line-height:1.3;letter-spacing:.08em;text-transform:uppercase;color:var(--label-2)}
.hub-main-count{font-size:.8125rem;font-weight:600;color:var(--label-3)}
.hub-main-grid{--hub-cols:4;display:grid;grid-template-columns:repeat(var(--hub-cols),minmax(0,1fr));gap:clamp(2rem,3vw,2.75rem) clamp(1rem,1.6vw,1.25rem);margin:0;padding:0;list-style:none}
/* Three across for the five services, and for the nine cities (3 × 3, never one alone on its row). */
.hub-main--services .hub-main-grid,.hub-main--ville .hub-main-grid{--hub-cols:3}
.hub-main .hub-card{gap:.875rem}
.hub-main .hub-card-title{font-size:clamp(1.125rem,1rem + .3vw,1.3125rem);letter-spacing:-.015em}
.hub-main--services .hub-card-title{font-size:clamp(1.25rem,1.05rem + .5vw,1.5rem)}
.hub-main .hub-card-note{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.9375rem}

/*
 * The other hubs' rows (the fourth design's, the projects page's), on light grey under the main content: each hub
 * a row of cards that scrolls on its own (project-rows.mjs, its data-* names), the first card on the page's margin
 * and the others running to the screen's edge; its title and count, « Tout voir » towards that hub, the dashes of
 * its screenfuls and its arrows, shown while the pointer is over the row. Cards 16:9, their line on two lines at most.
 */
.hub-rows{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(3rem,5vw,4.25rem);padding:clamp(3.5rem,6vw,5.25rem) 0 clamp(4.5rem,8vw,6.5rem);background:var(--bg-alt)}
.hub-row{--card-w:clamp(16rem,11rem + 14vw,25.5rem);--card-gap:clamp(.75rem,1.2vw,1rem);--row-edge:max(var(--gutter),(100% - 80rem) / 2);position:relative}
.hub-row-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:1.25rem;padding-inline:var(--row-edge)}
.hub-row-name{display:flex;align-items:baseline;gap:.75rem;min-width:0}
.hub-row-title{margin:0;font-size:clamp(1.5rem,1.2rem + .9vw,1.875rem);font-weight:500;line-height:1.15;letter-spacing:-.025em;white-space:nowrap;color:var(--label)}
.hub-row-count{font-size:1rem;color:var(--label-3)}
.hub-row-side{display:flex;flex:none;align-items:center;gap:1.25rem}
.hub-row-more{display:inline-flex;align-items:center;gap:.375rem;font-size:1rem;font-weight:500;color:var(--button)}
.hub-row-more .icon{width:1.125rem;height:1.125rem;transition:transform .2s var(--ease-standard)}
.hub-row-more:hover .icon,.hub-row-more:focus-visible .icon{transform:translateX(.25rem)}
.hub-row-pages{display:flex;gap:.125rem;padding-bottom:.375rem;opacity:0;transition:opacity .3s var(--ease-standard)}
.hub-row.is-pointed .hub-row-pages{opacity:1}
.hub-row-pages span{width:.875rem;height:.125rem;border-radius:1px;background:rgb(0 0 0 / 16%);transition:background-color .3s var(--ease-standard)}
.hub-row-pages .is-current{background:var(--label)}
.hub-row-shelf{position:relative}
.hub-row-list{display:flex;align-items:flex-start;gap:var(--card-gap);margin:0;padding:0 var(--row-edge);overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-padding-inline:var(--row-edge);scrollbar-width:none;list-style:none}
.hub-row-list::-webkit-scrollbar{display:none}
.hub-row-list>li{flex:0 0 var(--card-w);scroll-snap-align:start}
.hub-row .hub-card{gap:.875rem}
.hub-row .project-media{aspect-ratio:16/9}
.hub-row .hub-card-title{font-size:clamp(1.125rem,1rem + .35vw,1.3125rem);letter-spacing:-.015em}
.hub-row .hub-card-note{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.9375rem}
.hub-row-arrow{position:absolute;top:calc(var(--card-w) * 9 / 32);z-index:4;display:grid;place-items:center;width:2.75rem;height:2.75rem;border-radius:50%;background:rgb(255 255 255 / 88%);-webkit-backdrop-filter:blur(20px) saturate(160%);backdrop-filter:blur(20px) saturate(160%);box-shadow:0 .25rem 1rem rgb(0 0 0 / 14%);color:var(--label);opacity:0;transform:translateY(-50%);transition:opacity .3s var(--ease-standard)}
.hub-row-arrow.is-previous{left:max(.5rem,var(--row-edge) - 1.375rem)}
.hub-row-arrow.is-next{right:max(.5rem,var(--row-edge) - 1.375rem)}
.hub-row-arrow .icon{width:1.25rem;height:1.25rem}
.hub-row.is-pointed .hub-row-arrow:not(:disabled),.hub-row-arrow:focus-visible{opacity:1}
.hub-row-arrow:disabled{pointer-events:none}

/* Tablets: the opening in one column. Phones: the chips scroll on one line, the cards take most of the screen. */
@media (max-width:64rem){
  .hub-hero-main{grid-template-columns:minmax(0,1fr);align-items:start}
  .hub-main-grid,.hub-main--services .hub-main-grid,.hub-main--ville .hub-main-grid{--hub-cols:3}
}
@media (max-width:40rem){
  .hub-switch{flex-direction:column;align-items:stretch;gap:.75rem}
  .hub-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:calc(var(--gutter) * -1);padding-inline:var(--gutter)}
  .hub-chips::-webkit-scrollbar{display:none}
  .hub-switch-count{margin:0}
  .hub-row{--card-w:78vw}
  .hub-main-grid,.hub-main--services .hub-main-grid,.hub-main--ville .hub-main-grid{--hub-cols:2}
  .hub-main .hub-card-title,.hub-main--services .hub-card-title{font-size:1rem}
  .hub-main .hub-card-note{font-size:.8125rem}
  .hub-row-head{flex-wrap:wrap;align-items:baseline;row-gap:.5rem}
}
@media (hover:none){
  .hub-row-arrow,.hub-row-pages{display:none}
}
