/* Values measured on www.estia-dev.com (desktop). Fonts: free equivalents of the Wix fonts. */
:root {
  --bg: #FCFBF7;
  --ink: #1C1C1C;
  --grey: #545453;
  --green: #0D3512;
  /* --title and --text come from the chosen font theme (assets/font-themes.css, src/_data/fonts.json) */
  --title: "Instrument Serif", "Times New Roman", serif;
  --title-weight: 400;
  --text: "Jost", "Futura", "Century Gothic", sans-serif;
  --menu: "Raleway", sans-serif;                                /* Raleway on Wix (same font) */
  --btn: "Nunito Sans", "Avenir", "Helvetica Neue", sans-serif; /* Avenir Light on Wix */
  --grid: 980px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-weight: 300; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { font-family: var(--title); font-weight: var(--title-weight); margin: 0; }
p { margin: 0; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.u { text-transform: uppercase; }
/* Empty things stay hidden for visitors; the editor shows them in edit mode. */
html:not(.ed-on) .is-empty, html:not(.ed-on) .strip--empty, html:not(.ed-on) template { display: none !important; }
/* a page hidden from the public (Hospitality) stays in the menu, faded, for Raphaëlle once logged in */
html.ed-user #site-nav li.nav-private.is-empty { display: revert !important; }
#site-nav li.nav-private > a { opacity: .5; }
.strip--empty .strip-track { min-height: 160px; }
.line, .missions-line { display: block; }
.ref-card .missions-line { margin-top: 22.4px; }
.project-details .missions-line { margin-top: 28.8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { background: var(--bg); position: relative; z-index: 10; }
.header-inner { max-width: var(--grid); margin: 0 auto; height: 112px; display: flex; align-items: flex-start; padding: 0 0 0 4px; }
.brand { margin-top: 28px; }
.brand img { width: 149px; height: 64px; object-fit: contain; }
nav { margin-left: 58px; margin-top: 35px; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
nav a { display: block; font-family: var(--menu); font-size: 14px; line-height: 50px; padding: 0 20px; color: var(--ink); text-decoration: none; text-transform: uppercase; transition: color .2s; }
nav a:hover, nav a[aria-current="page"] { color: var(--grey); }
nav a { white-space: nowrap; }
@media (min-width: 1001px) {
  nav ul.nav-many a, html.ed-on nav ul.nav-many-edit a, html.ed-user nav ul.nav-many-edit a { padding: 0 13px; }
  nav:has(ul.nav-many), html.ed-on nav:has(ul.nav-many-edit), html.ed-user nav:has(ul.nav-many-edit) { margin-left: 34px; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  nav { margin-left: 24px; }
  nav a, nav ul.nav-many a, html.ed-on nav ul.nav-many-edit a, html.ed-user nav ul.nav-many-edit a { padding: 0 8px; font-size: 12.5px; }
  nav:has(ul.nav-many), html.ed-on nav:has(ul.nav-many-edit), html.ed-user nav:has(ul.nav-many-edit) { margin-left: 16px; }
}
@media (min-width: 761px) and (max-width: 860px) {
  nav ul.nav-many a, html.ed-on nav ul.nav-many-edit a, html.ed-user nav ul.nav-many-edit a { padding: 0 6px; font-size: 12px; }
}
.menu-toggle { display: none; }

/* ---------- Photo strips (sliders) ---------- */
.strip { position: relative; margin: 0 auto; }
.strip-track { display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.strip-track::-webkit-scrollbar { display: none; }
.strip figure { margin: 0; flex: 0 0 auto; height: var(--h); }
.strip figure.portrait { width: calc(var(--h) * .75); }
.strip figure.landscape { width: calc(var(--h) * 1.5); }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border: 0; background: none; color: #fff; cursor: pointer; display: grid; place-items: center; filter: drop-shadow(0 0 3px rgba(0,0,0,.35)); }
.strip-prev { left: 10px; } .strip-next { right: 10px; }
.strip-btn[hidden] { display: none; }
.strip--home { --h: 428px; margin-top: 18px; }
.strip--project { --h: 464px; width: 1412px; max-width: 100%; margin: -20px 0 0 max(0px, calc(50% - 575.5px)); z-index: 11; }
.strip--article { --h: 464px; width: 1402px; max-width: 100%; margin: 4px 0 0 max(0px, calc(50% - 607.5px)); }

/* ---------- Home ---------- */
.manifesto { max-width: 928px; margin: 90px auto 0; padding-bottom: 118px; }
.manifesto h1 { font-size: 50px; line-height: 70px; }
.manifesto-body { margin-top: 40px; }
.manifesto-body p { font-size: 19px; line-height: 26.6px; color: var(--grey); text-align: justify; margin-bottom: 26.6px; }
.manifesto-body p:last-child { margin-bottom: 0; }
/* the ESTIA logo under the title */
/* the manifesto starts like the other pages: title + ESTIA symbol at the same height */
.manifesto:has(> .page-head) { margin-top: 0; }
.manifesto > .page-head + .manifesto-body { max-width: 780px; margin: 34px auto 0; }
.manifesto > .page-head + .manifesto-body p { text-align: center; }
/* photo banner: one row of framed photos, wider than the text */
.manifesto-photos { --bw: min(1180px, 100vw - 40px); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; width: var(--bw); margin: 56px 0 0 calc((100% - var(--bw)) / 2); }
.manifesto-photos figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: #E7E4DC; }
.manifesto-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* arrows of the photo banner: shown only when the photos don't all fit (phones) */
.photo-band { position: relative; }
.band-arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; padding: 0; border: 0; border-radius: 50%; background: rgba(252, 251, 247, .92); color: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .18); cursor: pointer; transition: opacity .2s; }
.band-arrow[hidden] { display: none; }
.band-prev { left: 6px; }
.band-next { right: 6px; }
/* Nos convictions: the section title in the title font, the convictions' titles in the text font */
.convictions { margin-top: 80px; }
.convictions-title { font-size: 32px; line-height: 1.25; text-align: center; text-transform: uppercase; }
.convictions-list { list-style: none; margin: 34px 0 0; padding: 0; counter-reset: conv; border-bottom: 1px solid var(--line); }
.conviction { counter-increment: conv; display: grid; grid-template-columns: 64px minmax(0, 300px) minmax(0, 1fr); column-gap: 28px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--line); }
.conviction::before { content: counter(conv, decimal-leading-zero); font-family: var(--title); font-size: 30px; line-height: 1; color: var(--green); }
.conviction-title { font-family: var(--text); font-weight: 500; font-size: 15px; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.conviction-text { font-size: 17px; line-height: 1.6; color: var(--grey); }
@media (max-width: 760px) {
  .manifesto > .page-head + .manifesto-body { margin-top: 26px; }
  .manifesto > .page-head + .manifesto-body p { text-align: center; -webkit-hyphens: manual; hyphens: manual; }
  /* on phones the banner scrolls sideways, edge to edge */
  .manifesto-photos { width: 100vw; margin: 40px 0 0 calc(50% - 50vw); padding: 0 20px; grid-auto-columns: 42%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none; }
  .manifesto-photos::-webkit-scrollbar { display: none; }
  .manifesto-photos figure { scroll-snap-align: start; }
  .convictions { margin-top: 56px; }
  .convictions-title { font-size: 24px; }
  .convictions-list { margin-top: 24px; }
  .conviction { grid-template-columns: 44px minmax(0, 1fr); row-gap: 8px; column-gap: 14px; padding: 22px 0; }
  .conviction::before { font-size: 24px; grid-row: span 2; }
  .conviction-title { font-size: 14px; }
  .conviction-text { font-size: 15.5px; grid-column: 2; }
}

/* ---------- Inner page heading ---------- */
.page-head { text-align: center; padding-top: 16px; }
.page-head h1 { font-size: 50px; line-height: 70px; }
.page-head--lg { padding-top: 49px; }
.page-head--lg h1 { font-size: 56px; line-height: 78.4px; }
.page-head-icon { margin: 0 auto; object-fit: contain; }
.page-head--team { padding-top: 45px; }
.page-head--team h1 { line-height: 58px; }
.page-head--team .page-head-icon { margin-top: 20px; }
.page-head--contrib { padding-top: 49px; }

/* ---------- Savoir-faire ---------- */
.sf-list { max-width: 706px; margin: 64px auto 0; padding-bottom: 110px; display: grid; gap: 58px; position: relative; left: -22px; }
.sf-item { display: grid; grid-template-columns: 265px 400px; column-gap: 41px; align-items: start; }
.sf-text { padding-top: 53px; }
.sf-item img { width: 265px; height: 265px; object-fit: cover; }
.sf-text h2 { font-size: 26px; line-height: 36.4px; }
.sf-text p { margin-top: 6px; font-size: 16px; line-height: 25.6px; text-align: justify; }

/* ---------- Équipe ---------- */
.team { max-width: 866px; margin: 83px auto 0; display: grid; grid-template-columns: 403px 403px; column-gap: 60px; row-gap: 47px; align-items: start; }
.member-photo { width: 403px; height: 366px; object-fit: cover; }
.member-text { padding: 11px 34px 0 31px; }
.member-role { font-size: 14px; line-height: 19.6px; color: var(--grey); }
.member-name { font-size: 20px; line-height: 23px; margin-top: 7px; }
.member-text p:not(.member-role) { font-size: 16px; line-height: 22.4px; text-align: justify; }
.member-bio { margin-top: 30px; }
.member-bio p + p { margin-top: 22.4px; }
.member-actions { display: flex; align-items: center; gap: 22px; margin-top: 26px; }
.member-social { display: inline-flex; color: var(--green); }
.member-more { display: inline-flex; align-items: center; gap: 9px; padding: 0 0 6px; border: 0; border-bottom: 1px solid currentColor; background: none; font: 500 12px var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); cursor: pointer; transition: color .2s, gap .2s; }
.member-more:hover { color: var(--green); gap: 12px; }
/* the bio is in the window; on the card only while editing (and when it is very short) */
html:not(.ed-on) .member:not(.member--short) .member-bio, .member--short .member-more, html.ed-on .member-more { display: none; }
/* Team member window */
.tm-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(10, 30, 13, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.tm-modal[hidden] { display: none; }
.tm-dialog { position: relative; display: grid; grid-template-columns: 40% minmax(0, 1fr); width: min(980px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: var(--bg); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: sf-in .28s cubic-bezier(.2, .75, .25, 1); }
.tm-photo { width: 100%; height: 100%; min-height: 420px; object-fit: cover; background: #E7E4DC; }
.tm-body { padding: 48px 50px 46px; }
.tm-body .member-role { color: var(--grey); }
.tm-body .member-name { margin-top: 8px; font-size: 30px; line-height: 1.15; }
.tm-bio { margin-top: 26px; }
.tm-bio p { font-size: 16px; line-height: 1.68; }
.tm-bio p + p { margin-top: 16px; }
.tm-body .member-social { margin-top: 28px; }
.tm-close { position: absolute; top: 12px; right: 12px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink); cursor: pointer; }
.tm-close:hover { background: var(--tint); }
.tm-nav { display: flex; gap: 8px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); }
.tm-nav button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; border: 0; background: none; font: 500 11px var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--grey); cursor: pointer; }
.tm-nav button:hover { color: var(--green); }
.tm-nav .tm-next { margin-left: auto; }
.tm-nav button[hidden] { display: none; }
html.tm-open { overflow: hidden; }
@media (max-width: 760px) {
  .tm-modal { padding: 0; }
  .tm-dialog { grid-template-columns: 1fr; align-content: start; height: 100%; max-height: 100vh; }
  .tm-photo { height: 300px; min-height: 0; }
  .tm-body { padding: 26px 22px 34px; }
  .tm-body .member-name { font-size: 25px; }
  .tm-close { position: fixed; top: 10px; right: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
}
.contact { text-align: center; margin: clamp(160px, 27vw, 680px) auto 0; padding-bottom: 114px; }
.contact h2 { font-size: 26px; line-height: 36.4px; margin-bottom: 7px; }
.contact p { font-size: 16px; line-height: 29px; }
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Buttons ---------- */
.text-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 100px; height: 40px; padding: 0 12px; font-family: var(--btn); font-weight: 300; font-size: 16px; color: var(--ink); text-decoration: none; background: none; }
.text-btn:hover { color: var(--grey); }
.prevnext { display: flex; justify-content: space-between; margin-top: 60px; }
.prevnext .text-btn:first-child { min-width: 132px; }
.is-off { opacity: .35; }

/* ---------- Contributions ---------- */
.contrib-intro { max-width: 480px; margin: 32px auto 0; text-align: center; font-size: 16px; line-height: 22.4px; }
.contrib-list { max-width: 743px; margin: 91px auto 0; padding-bottom: 387px; display: grid; gap: 50px; }
/* a thin line between two contributions */
.contrib-card + .contrib-card { padding-top: 50px; border-top: 1px solid var(--line); }
.contrib-card { display: grid; grid-template-columns: 400px 283px; column-gap: 60px; align-items: start; }
.contrib-card h2 { font-size: 20px; line-height: 28px; }
.contrib-card p { margin-top: 17px; font-size: 13px; line-height: 18.2px; color: var(--grey); }
/* the date / project line: its own style, in the title font, italic and green */
.contrib-card p.contrib-meta { margin-top: 8px; font-family: var(--title); font-weight: 400; font-style: italic; font-size: 16px; line-height: 1.4; color: var(--green); }
.contrib-card p.contrib-meta + .contrib-excerpt { margin-top: 12px; }
.partner-logos { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.partner-logos { flex-wrap: wrap; gap: 18px 28px; }
.partner-logos img { width: auto; height: auto; max-height: 72px; max-width: 200px; object-fit: contain; }
.more { display: inline-block; min-width: 109px; margin-top: 69px; font-size: 14px; line-height: 30px; color: var(--green); text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.contrib-img img { width: 283px; height: 276px; object-fit: cover; }

/* ---------- Article ---------- */
.article-top, .article { max-width: 680px; margin: 0 auto; }
.article-top { padding-top: 30px; }
.article-top .back { justify-content: flex-start; padding: 0; min-width: 0; height: 40px; font-size: 14px; }
.article-top h1 { margin-top: 13px; font-size: 56px; line-height: 72.8px; }
.article { padding: 28px 0 150px; }
.article-meta { font-size: 14px; line-height: 22.4px; margin-bottom: 7px; }
.article-top .article-sub { margin: 18px 0 2px; font-size: 16px; color: var(--grey); }
.article-top .article-date { margin: 0; font-size: 14px; letter-spacing: .02em; color: var(--grey); }
.article-top { padding-bottom: 26px; }
.article-lead { margin-top: 35px; font-size: 16px; line-height: 25.6px; }
.prose { margin-top: 38px; font-size: 16px; line-height: 24px; text-align: justify; }
.prose p { margin: 0 0 24px; }
.article .prose p { margin: 0; }
.section + .section { margin-top: 48px; }
.section-head { color: #000; }
.section-head strong { font-weight: 500; }
.prose strong { font-weight: 500; }
.download { margin-top: 24px; font-size: 14px; }
.download a { text-decoration: underline; text-underline-offset: 3px; }
.article .prevnext { margin-top: 60px; }

/* ---------- Legal pages ---------- */
.legal-page { max-width: 680px; margin: 0 auto; padding: 60px 0 150px; }
.legal-page h1 { font-size: 46px; line-height: 64.4px; margin-bottom: 30px; }
.legal-page .prose { margin-top: 0; }
.legal-page .prose h2 { font-family: var(--text); font-weight: 400; font-size: 16px; line-height: 24px; margin: 24px 0 0; }
.legal-page .prose ul { margin: 0 0 24px; padding-left: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { padding: 0 0 30px; text-align: center; font-size: 12px; line-height: 16px; color: var(--grey); }
.site-footer .symbol { display: inline-block; }
.site-footer .symbol img { width: 78px; height: 76px; margin: 0 auto; }
.footer-row { position: relative; max-width: 813px; margin: 17px auto 0; }
.footer-social { position: absolute; left: calc(50% + 251px); top: -3px; color: var(--green); display: inline-flex; }
.legal { list-style: none; margin: 16px 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; column-gap: 48px; row-gap: 6px; }
.legal a { text-decoration: none; }
.legal a:hover { color: var(--ink); }

/* ---------- Smaller screens (Wix shows a separate mobile layout) ---------- */
@media (max-width: 1000px) {
  .sf-list { left: 0; }
  .contrib-list { padding-bottom: 150px; }
  .contact { margin-top: 120px; }
  .header-inner { padding: 0 20px; }
  .team { grid-template-columns: 1fr; max-width: 403px; }
  .manifesto, .article-top, .article, .legal-page, .sf-list, .contrib-list { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 760px) {
  .header-inner { height: 80px; justify-content: space-between; align-items: center; }
  .brand { margin-top: 0; }
  .brand img { width: 112px; height: 48px; }
  .menu-toggle { display: block; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
  .bars, .bars::before, .bars::after { display: block; width: 24px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; } .bars::after { top: 7px; }
  .menu-toggle[aria-expanded="true"] .bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; z-index: 20; background: var(--bg); padding: 10px 20px 20px; }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 0; }
  .strip--home, .strip--project, .strip--article { --h: 300px; }
  .strip--project, .strip--article { margin-left: 0; margin-top: 0; }
  .manifesto h1, .page-head h1 { font-size: 36px; line-height: 46px; }
  .manifesto-body p { font-size: 16px; line-height: 24px; }
  .sf-item { grid-template-columns: 1fr; row-gap: 20px; justify-items: center; }
  .sf-text { text-align: center; }
  .member-photo { width: 100%; height: auto; aspect-ratio: 403 / 366; }
  .contrib-card { grid-template-columns: 1fr; row-gap: 26px; }
  .contrib-img { order: -1; } /* phones: the photo above its text, so it isn't read as the next article */
  .contrib-list { gap: 44px; }
  .contrib-card + .contrib-card { padding-top: 44px; }
  .contrib-img img { width: 100%; height: auto; aspect-ratio: 283 / 276; }
  .article-top h1, .legal-page h1 { font-size: 38px; line-height: 48px; }
  .footer-row { padding: 0 20px; }
  .footer-social { position: static; display: inline-flex; margin-top: 12px; }
  .legal { column-gap: 20px; padding: 0 20px; }
}

/* Font comparison page (/polices/) */
.fonts-intro { max-width: 760px; margin: 50px auto 10px; padding: 0 20px; text-align: center; }
.fonts-intro h1 { font-size: 46px; line-height: 1.2; margin-bottom: 12px; }
.fonts-intro p { font-size: 16px; line-height: 1.6; color: var(--grey); }
.font-sample { max-width: 928px; margin: 40px auto; padding: 36px 40px 40px; border-top: 1px solid #E3E0D7; }
.font-sample-label { margin: 0 0 22px; font-family: "Jost", sans-serif; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); font-weight: 500; }
.font-sample-label span { display: block; margin-top: 4px; text-transform: none; letter-spacing: 0; color: var(--grey); font-weight: 300; font-size: 14px; }
.font-sample-title { font-size: 50px; line-height: 70px; }
.font-sample-text { margin-top: 26px; font-size: 19px; line-height: 26.6px; color: var(--grey); text-align: justify; }
.font-sample-sub { margin-top: 30px; font-family: var(--title); font-weight: var(--title-weight); font-size: 26px; line-height: 36.4px; }
.font-sample-small { margin-top: 6px; font-size: 16px; line-height: 25.6px; text-align: justify; }

/* Editing login page (/connexion/) */
.login-page { max-width: 520px; margin: 70px auto 140px; padding: 0 20px; text-align: center; }
.login-page h1 { font-size: 46px; line-height: 1.2; margin-bottom: 26px; }
.login-box { padding: 34px 32px; border: 1px solid #E3E0D7; border-radius: 14px; background: #fff; }
.login-msg { font-size: 16px; line-height: 1.6; margin-bottom: 22px; }
.login-err { color: #8d2a24; margin: 0; }
.login-btn { display: inline-block; min-width: 220px; height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: 400 16px var(--text); cursor: pointer; }
.login-btn:hover { background: #000; }
.login-link { display: block; margin: 16px auto 0; border: 0; background: none; color: var(--grey); font: 300 14px var(--text); text-decoration: underline; cursor: pointer; }
.login-note { margin-top: 22px; font-size: 13px; line-height: 1.6; color: var(--grey); }

/* Font overview cards and preview bar */
.fonts-overview { max-width: 1180px; margin: 10px auto 30px; padding: 0 20px; }
.fonts-group { margin: 34px 0 14px; font-family: "Jost", sans-serif; font-weight: 500; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.fonts-group--big { max-width: 928px; margin: 70px auto 0; padding: 0 40px; font-size: 15px; }
.font-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.font-card { display: grid; gap: 8px; padding: 16px 18px 18px; border: 1px solid #E3E0D7; border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.font-card:hover { border-color: var(--green); }
.font-card.is-on { border-color: var(--green); box-shadow: 0 0 0 3px rgba(13, 53, 18, .1); }
.font-card-name { font: 500 11px/1.2 "Jost", sans-serif; letter-spacing: .09em; text-transform: uppercase; color: var(--green); }
.font-card-title { font-family: var(--title); font-weight: var(--title-weight); font-size: 30px; line-height: 1.1; }
.font-card-text { font-family: var(--text); font-weight: 300; font-size: 15px; line-height: 1.55; color: var(--grey); }
.font-sample-go { margin-top: 24px; font-family: "Jost", sans-serif; font-size: 15px; }
.font-sample-go a { color: var(--green); }
.font-sample { scroll-margin-top: 20px; }
.login-label { display: block; margin-bottom: 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.login-input { display: block; width: 100%; box-sizing: border-box; height: 48px; margin: 0 0 18px; padding: 0 16px; border: 1px solid #D6D3C9; border-radius: 10px; background: #fff; font: 400 17px var(--text); text-align: center; }
.login-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(13, 53, 18, .12); }
.login-err:not([hidden]) { margin: -6px 0 16px; color: #8d2a24; font-size: 14px; }
.login-btn:disabled { opacity: .6; cursor: default; }

/* ===================== October 2026: ESTIA's comments + Book de références ===================== */
:root { --paper: #FFFFFF; --line: #E3DED2; --tint: rgba(13, 53, 18, .06); }
.kicker, .sf-tag, .sf-kicker, .sf-sub, .p-sub, .p-fact dt, .p-tag, .partner-name { font-family: var(--text); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }

/* Header: Instagram and LinkedIn */
.header-social { margin: 49px 0 0 auto; display: flex; gap: 12px; color: var(--green); }
.social { display: inline-flex; transition: opacity .2s; }
.social:hover { opacity: .75; }

/* Section titles (clients, news, partners) */
.block-title { text-align: center; font-size: 30px; line-height: 1.25; text-transform: uppercase; }

/* Logos that scroll (clients) and Instagram posts */
.marquee { position: relative; overflow: hidden; margin-top: 38px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: estia-marquee calc(var(--n, 6) * 6s) linear infinite; }
/* pause under the mouse only: on phones a touch counts as « hover » and kept the logos stopped */
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee-track { animation-play-state: paused; } }
@keyframes estia-marquee { to { transform: translateX(calc(-100% / 3)); } }
/* phones: logos are smaller, so the same timing looked slow; about twice as fast */
@media (max-width: 760px) { .marquee-track { animation-duration: calc(var(--n, 6) * 1.6s); } }
.clients { padding: 0 0 110px; }
.client { margin: 0; flex: none; height: 110px; padding: 0 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.client-logo { max-height: 92px; max-width: 230px; width: auto; height: auto; object-fit: contain; } /* logos in their own colours */
.client-name { font-family: var(--title); font-weight: var(--title-weight); font-size: 24px; letter-spacing: .05em; text-transform: uppercase; color: var(--grey); white-space: nowrap; }
.client:has(.client-logo:not(.is-empty)) .client-name { display: none; }
html.ed-on .clients .marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }
html.ed-on .clients .marquee-track { animation: none; width: auto; max-width: 1080px; margin: 0 auto; flex-wrap: wrap; justify-content: center; row-gap: 26px; }
html.ed-on .clients .mq-clone { display: none; }
html.ed-on .client { height: auto; gap: 6px; padding: 6px 20px; }
html.ed-on .client:has(.client-logo:not(.is-empty)) .client-name { display: block; font: 300 12px var(--text); letter-spacing: 0; text-transform: none; }
/* Nos actualités: Instagram posts with their text, first section of the home page */
.news { padding: 44px 0 76px; }
.news-rail { position: relative; container-type: inline-size; max-width: 1220px; margin: 34px auto 0; padding: 0 20px; }
.news-track { --cw: calc((100cqw - 60px) / 4); display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; outline: none; }
.news-track::-webkit-scrollbar { display: none; }
.news-card { flex: 0 0 var(--cw); scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; }
.news-img { display: block; aspect-ratio: 1; overflow: hidden; background: #E7E4DC; }
.news-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-img img { transform: scale(1.04); }
.news-date { margin-top: 16px; font: 500 10.5px var(--text); letter-spacing: .14em; text-transform: uppercase; color: #8A8B83; }
.news-title { margin-top: 7px; font-family: var(--title); font-weight: var(--title-weight); font-size: 21px; line-height: 1.22; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.news-card:hover .news-title { color: var(--green); }
.news-text { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--grey); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-nav { position: absolute; z-index: 2; top: calc((100cqw - 60px) / 8); transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(252, 251, 247, .95); color: var(--green); box-shadow: 0 2px 14px rgba(0, 0, 0, .14); display: grid; place-items: center; cursor: pointer; }
.news-prev { left: 6px; } .news-next { right: 6px; }
.news-nav[hidden] { display: none; }
.news-nav:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.news-hint { display: none; }
html.ed-on .news.is-empty .news-hint { display: block; max-width: 540px; margin: 24px auto 0; padding: 18px 22px; border: 1px dashed #B9B8AF; border-radius: 10px; text-align: center; font-size: 14px; line-height: 1.6; color: var(--grey); }
.news-follow { margin-top: 34px; text-align: center; }
.news-follow .text-btn { color: var(--green); }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 20px; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .mq-clone { display: none; }
}

/* Savoir-faire: cards and their pop-up */
.sf-cards { max-width: 1240px; margin: 56px auto 0; padding: 0 20px 120px; display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 22px; }
/* no transform on the card: its pop-up (inside it) must cover the whole window */
.sf-card { flex: 0 1 calc((100% - 88px) / 5); min-width: 0; display: flex; flex-direction: column; cursor: pointer; }
html.ed-on .sf-card { cursor: default; }
html.ed-on .sf-card-title { display: block; flex: none; } /* plain block while typing in it */
/* the title takes the free height, so the photos line up even when a title runs on two or three lines */
.sf-card-title { flex: 1; display: flex; align-items: flex-end; justify-content: center; padding: 0 2px 14px; font-family: var(--text); font-weight: 500; font-size: 12.5px; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; text-align: center; overflow-wrap: anywhere; }
.sf-card-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #E7E4DC; }
.sf-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
html:not(.ed-on) .sf-card:hover .sf-card-img img { transform: scale(1.045); }
.sf-more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 13px 0 12px; border: 0; border-bottom: 1px solid var(--ink); background: none; font: 500 11.5px var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); cursor: pointer; transition: color .2s, border-color .2s; }
.sf-more svg { transition: transform .25s; }
.sf-card:hover .sf-more { color: var(--green); border-color: var(--green); }
.sf-card:hover .sf-more svg { transform: translateY(2px); }
/* the category and the text are shown in the pop-up; on the card only while editing, to change them */
html:not(.ed-on) .sf-card > .sf-tag, html:not(.ed-on) .sf-card > .sf-card-text, .sf-card-note { display: none; }
html.ed-on .sf-card-note { display: block; margin-top: 12px; font-size: 11.5px; font-style: italic; line-height: 1.4; color: #8A8B83; }
html.ed-on .sf-card > .sf-tag { margin-top: 6px; font-size: 11px; color: var(--green); }
html.ed-on .sf-card > .sf-card-text { margin: 6px 0 10px; font-size: 13.5px; line-height: 1.5; color: var(--grey); }
/* Text under the page title (savoir-faire, hospitality) */
.sf-lead-block { max-width: 820px; margin: 30px auto 0; padding: 0 20px; text-align: center; }
.sf-lead { font-family: var(--title); font-weight: var(--title-weight); font-size: 26px; line-height: 1.3; text-wrap: balance; }
.sf-lead-text { margin-top: 16px; font-size: 16px; line-height: 1.7; color: var(--grey); }
.sf-lead-block + .sf-cards { margin-top: 52px; }
.sf-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(10, 30, 13, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); cursor: default; }
.sf-modal[hidden] { display: none; }
.sf-dialog { display: flex; flex-direction: column; width: min(1100px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: var(--bg); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: sf-in .28s cubic-bezier(.2, .75, .25, 1); }
@keyframes sf-in { from { opacity: 0; transform: translateY(14px); } }
.sf-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--line); background: var(--bg); }
.sf-tabs { flex: 1; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.sf-tabs::-webkit-scrollbar { display: none; }
.sf-tab { flex: none; padding: 9px 14px; border: 0; border-radius: 999px; background: none; font: 500 11px var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--grey); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.sf-tab-short { display: none; }
.sf-tab:hover { color: var(--green); background: var(--tint); }
.sf-tab[aria-selected="true"] { background: var(--green); color: #fff; }
.sf-close { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.sf-close:hover { background: var(--tint); }
.sf-body { display: grid; grid-template-columns: 40% minmax(0, 1fr); min-height: 520px; }
.sf-photo { background: #E7E4DC; }
.sf-photo img { width: 100%; height: 100%; object-fit: cover; }
.sf-detail { padding: 42px 46px 46px; }
.sf-kicker { font-size: 11.5px; color: var(--green); }
.sf-headline { margin: 10px 0 0; font-family: var(--title); font-weight: var(--title-weight); font-size: 42px; line-height: 1.08; }
.sf-intro { margin-top: 16px; font-size: 16px; line-height: 1.65; color: var(--grey); }
.sf-sub { display: flex; align-items: center; gap: 10px; margin: 34px 0 16px; line-height: 1.2; font-size: 11.5px; color: var(--green); }
.sf-sub::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.sf-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); row-gap: 18px; counter-reset: step; }
.sf-step { counter-increment: step; display: grid; align-content: start; gap: 5px; padding: 0 18px; border-left: 1px solid var(--line); }
.sf-step:first-child { padding-left: 0; border-left: 0; }
.sf-step::before { content: counter(step, decimal-leading-zero); font-family: var(--title); font-size: 28px; line-height: 1; color: var(--green); }
.sf-step-title { font-weight: 500; font-size: 15px; }
.sf-step-text { font-size: 14px; line-height: 1.5; color: var(--grey); }
.sf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 13px; color: var(--ink); text-decoration: none; transition: border-color .2s, color .2s; }
.chip:hover { border-color: var(--green); color: var(--green); }
.btn-green { display: inline-flex; align-items: center; gap: 10px; height: 46px; margin-top: 34px; padding: 0 22px; border-radius: 999px; background: var(--green); color: #fff; font: 500 14px var(--text); text-decoration: none; transition: background .2s, gap .2s; }
.btn-green:hover { background: #07240b; gap: 14px; }
html.sf-open { overflow: hidden; }

/* Team: partners */
.partners { max-width: 980px; margin: 120px auto 0; padding: 0 20px; }
.partners-list { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.partner { display: grid; align-content: start; gap: 12px; padding: 26px; background: var(--paper); border: 1px solid var(--line); }
.partner-logo { height: 104px; display: flex; align-items: center; }
.partner-logo img { max-height: 100px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.partner-name { font-size: 12.5px; color: var(--green); }
.partner-text { font-size: 15px; line-height: 1.55; color: var(--grey); }
.partners:not(.is-empty) + .contact { margin-top: 150px; }
html.ed-on .partners + .contact { margin-top: 150px; }

/* References: photo cards */
.ref-grid { max-width: 1180px; margin: 64px auto 0; padding: 0 20px 120px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ref-card { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #E7E4DC; }
.ref-photo, .ref-photo img { display: block; width: 100%; height: 100%; }
.ref-photo img { object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.ref-card:hover .ref-photo img { transform: scale(1.04); }
.ref-label { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px; max-width: calc(100% - 28px); padding: 9px 15px 8px; background: rgba(252, 251, 247, .93); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
html.ed-on .ref-label { pointer-events: auto; }
.ref-name { font-size: 22px; line-height: 1.1; text-transform: uppercase; color: var(--ink); }
.ref-loc { font-size: 13px; letter-spacing: .04em; color: var(--grey); }
.ref-grid > .ed-add { aspect-ratio: 4 / 3; }

/* Project page */
.project { max-width: 1180px; margin: 36px auto 0; padding: 0 20px 110px; }
.project > .back { justify-content: flex-start; min-width: 0; padding: 0; }
.p-grid { display: grid; grid-template-columns: minmax(300px, 410px) minmax(0, 1fr); gap: 50px; align-items: start; margin-top: 14px; }
.p-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.p-tag-list { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.p-tag { padding: 6px 11px 5px; border-radius: 999px; background: var(--tint); font-size: 10.5px; color: var(--green); text-decoration: none; transition: background .2s, color .2s; }
.p-tag-list--missions .p-tag { background: none; box-shadow: inset 0 0 0 1px rgba(13, 53, 18, .28); }
html:not(.ed-on) a.p-tag:hover { background: var(--green); color: #fff; }
.p-title { margin-top: 16px; font-size: 54px; line-height: 1.04; text-transform: uppercase; }
.p-loc { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 15px; color: var(--grey); }
.p-programme { margin-top: 22px; font-weight: 500; font-size: 14px; line-height: 1.55; letter-spacing: .05em; text-transform: uppercase; color: var(--green); }
.p-facts { margin: 22px 0 0; padding: 4px 22px; background: var(--paper); border: 1px solid var(--line); }
.p-fact { display: grid; gap: 4px; padding: 13px 0; border-top: 1px solid var(--line); }
.p-fact:first-child { border-top: 0; }
.p-fact dt { font-size: 10.5px; color: var(--grey); }
.p-fact dd { margin: 0; font-size: 15.5px; line-height: 1.4; }
.p-about { margin-top: 24px; padding: 18px 22px 20px; background: var(--tint); }
.p-sub { font-size: 11.5px; color: var(--green); }
.p-about-text p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--grey); text-align: justify; }
.p-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 26px; }
.p-logos img { max-height: 40px; max-width: 140px; width: auto; height: auto; object-fit: contain; }
.p-media { position: sticky; top: 20px; }
.p-stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #E7E4DC; }
.p-main { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.p-main.is-fading { opacity: .25; }
.p-nav { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(252, 251, 247, .92); color: var(--ink); cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); transition: background .2s; }
.p-nav:hover { background: #fff; }
.p-nav[hidden] { display: none; }
.p-prev { left: 14px; } .p-next { right: 14px; }
.p-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 7px; }
.p-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 3px rgba(0, 0, 0, .3); }
.p-dots i.is-on { background: #fff; }
.p-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-top: 10px; }
.p-thumb { aspect-ratio: 4 / 3; padding: 0; border: 0; overflow: hidden; background: #E7E4DC; cursor: pointer; opacity: .7; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .2s, outline-color .2s; }
.p-thumb:hover { opacity: 1; }
.p-thumb.is-on { opacity: 1; outline-color: var(--green); }
.p-thumb img { width: 100%; height: 100%; object-fit: cover; }
.p-thumbs > .ed-add { aspect-ratio: 4 / 3; }
.project .prevnext { margin-top: 80px; }

/* Empty fields: shown with a hint in edit mode, hidden for visitors */
html.ed-on [data-placeholder]:empty::before { content: attr(data-placeholder); color: #A3A49C; font-style: italic; font-weight: 300; letter-spacing: 0; text-transform: none; }

@media (max-width: 1000px) {
  .news-track { --cw: calc((100cqw - 40px) / 3); }
  .news-nav { top: calc((100cqw - 40px) / 6); }
  .sf-card { flex-basis: calc((100% - 44px) / 3); }
  .ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-grid { grid-template-columns: 1fr; gap: 28px; }
  .p-media { order: -1; position: static; }
  .sf-body { grid-template-columns: 1fr; }
  .sf-photo { height: 260px; }
}
@media (max-width: 760px) {
  .header-social { order: 2; margin: 0 6px 0 auto; }
  .menu-toggle { order: 3; }
  .block-title { font-size: 25px; }
  .client { height: 84px; padding: 0 26px; }
  .client-logo { max-height: 66px; max-width: 160px; }
  .client-name { font-size: 19px; }
  .news { padding: 28px 0 54px; }
  .news-rail { margin-top: 24px; padding: 0; }
  .news-track { --cw: calc((100cqw - 40px) * .84); gap: 14px; padding: 0 20px; scroll-padding: 0 20px; }
  .news-nav { top: calc((100cqw - 40px) * .42); width: 38px; height: 38px; }
  .news-title { font-size: 19px; }
  .sf-cards { gap: 30px 14px; padding-bottom: 80px; }
  .sf-card { flex-basis: calc((100% - 14px) / 2); }
  .sf-card-title { font-size: 11.5px; letter-spacing: .12em; padding-bottom: 10px; }
  .sf-more { font-size: 10.5px; padding: 11px 0 10px; }
  .sf-lead { font-size: 21px; }
  .sf-lead-text { font-size: 15px; }
  .sf-lead-block { margin-top: 22px; }
  .sf-modal { padding: 0; }
  .sf-tab-long { display: none; }
  .sf-tab-short { display: inline; }
  .sf-dialog { max-height: 100vh; height: 100%; }
  .sf-detail { padding: 28px 22px 34px; }
  .sf-headline { font-size: 34px; }
  .sf-steps { grid-template-columns: 1fr; }
  .sf-step { padding: 0; border-left: 0; }
  .ref-grid { grid-template-columns: 1fr; }
  .p-title { font-size: 40px; }
}
.sf-edit-hint { display: none; }
html.ed-on .sf-edit-hint { display: block; margin-top: 10px; font-size: 12.5px; font-style: italic; color: #8A8B83; }
html.ed-on .client-logo.is-empty { width: 170px; height: 80px; max-width: none; }
html:not(.ed-on) .p-facts:not(:has(.p-fact:not(.is-empty))) { display: none; }

/* Références: two dropdown filters (usage, mission) */
.ref-filters { max-width: 1180px; margin: 44px auto 0; padding: 0 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; }
.ref-select { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 0 0 0 18px; border: 1px solid rgba(13, 53, 18, .25); border-radius: 999px; background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.ref-select:hover, .ref-select:focus-within { border-color: var(--green); }
.ref-select:focus-within { box-shadow: 0 0 0 3px rgba(13, 53, 18, .1); }
.ref-select.is-on { border-color: var(--green); background: var(--tint); }
.ref-select-label { font: 500 10.5px var(--text); letter-spacing: .14em; text-transform: uppercase; color: #8A8B83; }
.ref-select select { -webkit-appearance: none; appearance: none; min-width: 190px; height: 44px; padding: 0 44px 0 0; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%230D3512' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 18px center; font: 400 15px var(--text); color: var(--ink); cursor: pointer; outline: none; }
.ref-filters ~ .ref-grid { margin-top: 36px; }
.ref-none { max-width: 1180px; margin: 56px auto 0; padding: 0 20px; text-align: center; color: var(--grey); }
.ref-none .text-btn { margin-left: 6px; }
html:not(.ed-on) .ref-card.is-out { display: none; }
html.ed-on .ref-filters, html.ed-on .ref-none { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .ref-grid.ref-anim > .ref-card:not(.is-out) { animation: ref-in .4s ease both; }
  @keyframes ref-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 760px) {
  .ref-filters { margin-top: 30px; flex-direction: column; align-items: stretch; gap: 10px; }
  .ref-select select { flex: 1; min-width: 0; }
  .ref-filters ~ .ref-grid { margin-top: 26px; }
}

/* Home page: the three parts (manifesto, clients, actualités) share one title style */
.manifesto h1.home-title, .home-title { font-size: 40px; line-height: 1.2; text-align: center; text-transform: uppercase; }
.clients + .news { padding-top: 0; }
@media (max-width: 760px) {
  .manifesto h1.home-title, .home-title { font-size: 28px; line-height: 1.25; }
  /* justified text leaves big gaps on a narrow screen */
  .manifesto-body p, .member-text p:not(.member-role), .p-about-text p, .prose, .sf-text p { text-align: left; -webkit-hyphens: auto; hyphens: auto; }
}

/* Project pages: « Ils travaillent avec nous sur ce projet » (logos, like the clients of the home page) */
.p-team { max-width: 1180px; margin: 90px auto 0; padding: 0 0 20px; }
.p-team .block-title { font-size: 26px; }
.marquee--still { -webkit-mask-image: none; mask-image: none; }
.marquee--still .marquee-track { animation: none; width: auto; max-width: 1080px; margin: 0 auto; flex-wrap: wrap; justify-content: center; row-gap: 20px; }
@media (max-width: 760px) {
  .p-team { margin-top: 60px; }
  .p-team .block-title { font-size: 21px; padding: 0 20px; }
  .partner-logos img { max-height: 56px; max-width: 150px; }
}
