/* Hallmark · shared system for nine versions · theme: custom · idea: "les ronds du logo e-sotop, en bleus, portent les références réelles" · vibe: "clair, bleu, premium, concret" · job: hire
 * nav: sticky bar, logo left, three anchors, one action · footer: logo, one line, anchors
 * paper: light cool white · accent: logo blue with sky blue · posture: committed · axes: light/grotesk-sans/cool · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V5 · weakest: P, nine routes compared side by side; each version carries one idea in its hero */

:root {
  color-scheme: light;
  --blue: oklch(46% 0.17 262);
  --blue-hover: oklch(40% 0.16 262);
  --blue-deep: oklch(27% 0.11 264);
  --blue-mid: oklch(70% 0.12 255);
  --blue-soft: oklch(94% 0.03 258);
  --sky: oklch(82% 0.09 225);
  --sky-soft: oklch(95.5% 0.03 225);
  --sky-ink: oklch(30% 0.08 240);
  --paper: oklch(99% 0.004 250);
  --paper-2: oklch(96.5% 0.009 255);
  --paper-3: oklch(93% 0.014 255);
  --ink: oklch(22% 0.05 264);
  --ink-2: oklch(42% 0.035 262);
  --muted: oklch(52% 0.03 260);
  --rule: oklch(89% 0.015 255);
  --rule-2: oklch(80% 0.02 255);
  --white: oklch(99.5% 0.002 250);
  --on-blue: oklch(99% 0.005 250);
  --focus: oklch(55% 0.2 262);
  --error: oklch(52% 0.18 27);
  --shadow: 0 30px 60px -30px oklch(25% 0.08 264 / 0.45);
  --shadow-s: 0 16px 30px -18px oklch(25% 0.08 264 / 0.4);
  --shadow-deep: 0 30px 50px -24px oklch(15% 0.1 264 / 0.6);
  --shadow-panel: 0 40px 80px -30px oklch(25% 0.08 264 / 0.5);
  --shadow-tile: 0 30px 40px -20px oklch(25% 0.08 264 / 0.45);
  --shadow-up: 0 -24px 48px -32px oklch(20% 0.1 264 / 0.45);
  --ghost-hover: oklch(50% 0.05 262 / 0.08);
  --veil-1: oklch(30% 0.14 262 / 0.94); --veil-2: oklch(30% 0.14 262 / 0.82); --veil-3: oklch(30% 0.14 262 / 0.2); --veil-m: oklch(30% 0.14 262 / 0.85);
  --glass: oklch(100% 0 0 / 0.14); --glass-edge: oklch(100% 0 0 / 0.28);
  --land: oklch(91% 0.012 255);

  --font-display: "League Spartan", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --font-switcher: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --display-weight: 800;
  --tracking: -0.03em;

  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.1875rem; --text-xl: 1.5rem;
  --text-title: clamp(1.375rem, 0.8vw + 1rem, 1.875rem);
  --text-section: clamp(2.25rem, 3vw + 1rem, 4rem);
  --text-display: clamp(3rem, 5vw + 1rem, 5.75rem);
  --radius: 24px; --radius-s: 14px; --radius-pill: 999px;
  --container: 1440px; --gutter: 56px; --gap: 24px;
  --section-gap: 128px;
  --nav-h: 88px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 520ms;
  --z-raised: 10; --z-sticky: 200; --z-nav: 300; --z-switcher: 400;
}
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap: 88px; --nav-h: 72px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); scrollbar-color: var(--rule-2) var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--blue); }
::selection { background: var(--sky); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--tracking); line-height: 0.98; text-wrap: balance; overflow-wrap: break-word; min-width: 0; font-synthesis: none; }
h2 { font-size: var(--text-section); }
h3 { font-size: var(--text-title); line-height: 1.1; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-switcher); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-s); background: var(--ink); color: var(--white); }
.skip:focus-visible { top: var(--space-md); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 50px; padding: 0 var(--space-lg); border: 2px solid transparent; border-radius: var(--radius-pill); background: var(--blue); color: var(--on-blue); font: 600 var(--text-md)/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out), color var(--dur-short) var(--ease-out); }
.btn:hover { background: var(--blue-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn--light { background: var(--white); color: var(--blue-deep); }
.btn--light:hover { background: var(--sky-soft); }
.btn--sky { background: var(--sky); color: var(--sky-ink); }
.btn--sky:hover { background: var(--sky-soft); }
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: var(--ghost-hover); }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--sky); transition: text-decoration-color var(--dur-short) var(--ease-out); }
.link:hover { text-decoration-color: currentColor; }

/* nav */
.nav { position: sticky; top: 0; z-index: var(--z-nav); background: color-mix(in oklab, var(--paper) 92%, transparent); border-bottom: 1px solid transparent; transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.nav.is-scrolled { border-bottom-color: var(--rule); }
.nav__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: var(--nav-h); }
.nav__logo img { height: 44px; width: auto; }
.nav__links { display: none; gap: var(--space-xl); margin: 0; padding: 0; list-style: none; font-weight: 500; }
.nav__links a { text-decoration: none; padding: var(--space-xs) 0; border-bottom: 2px solid transparent; transition: border-color var(--dur-short) var(--ease-out); }
.nav__links a:hover { border-bottom-color: var(--sky); }
.nav .btn { min-height: 44px; }
@media (min-width: 60rem) { .nav__links { display: flex; } }

/* sections */
.section { padding-block: var(--section-gap); }
.section-head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); max-width: 52rem; }
.section-head p { font-size: var(--text-lg); line-height: 1.5; color: var(--ink-2); max-width: 40rem; }
.band-sky { background: var(--sky-soft); color: var(--ink); }
.band-blue { background: var(--blue); color: var(--on-blue); }
.band-blue .section-head p { color: var(--on-blue); opacity: 0.9; }

/* pôles, default grid */
.poles-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.pole { padding: var(--space-xl) var(--space-lg); border-radius: var(--radius); background: var(--paper-2); display: grid; gap: var(--space-sm); align-content: start; }
.pole__dot { width: 18px; height: 18px; border-radius: 50%; background: var(--blue); }
.pole h3 { font-size: var(--text-xl); }
.pole p { color: var(--ink-2); }
.pole ul { margin: var(--space-xs) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-2xs); font-size: var(--text-sm); color: var(--ink-2); }
.pole li { padding-top: var(--space-xs); border-top: 1px solid var(--rule); }
@media (max-width: 70rem) { .poles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .poles-grid { grid-template-columns: minmax(0, 1fr); } }

/* références, default cards */
.refs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.ref { border-radius: var(--radius); background: var(--paper-2); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.ref__pic { aspect-ratio: 16 / 10; background: var(--sky-soft); display: grid; place-items: center; overflow: hidden; }
.ref__pic img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.ref__pic.is-phone img { width: auto; height: 92%; object-fit: contain; border-radius: var(--radius-s); }
.ref__body { padding: var(--space-lg); display: grid; gap: var(--space-xs); align-content: start; }
.ref__sector { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: var(--text-sm); color: var(--ink-2); }
.ref__sector::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--blue)); }
.ref h3 { font-size: var(--text-title); }
.ref p { color: var(--ink-2); }
.ref__link { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: transparent; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.ref__link:hover { text-decoration-color: var(--sky); }
.ref__link:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 70rem) { .refs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .refs-grid { grid-template-columns: minmax(0, 1fr); } }

/* cibles */
.targets { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--tracking); font-size: clamp(1.75rem, 2.4vw + 0.8rem, 3.25rem); line-height: 1.15; max-width: 60rem; text-wrap: balance; }
.targets-countries { margin-top: var(--space-xl); color: var(--ink-2); font-size: var(--text-lg); }

/* engagements */
.engage { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.engage li { display: grid; gap: var(--space-sm); align-content: start; min-height: 180px; padding: var(--space-xl) var(--space-lg); border-radius: var(--radius); border: 1px solid var(--rule-2); }
.engage b { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--tracking); font-size: var(--text-title); }
.engage span { font-size: var(--text-lg); color: var(--ink-2); }
@media (max-width: 60rem) { .engage { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .engage { grid-template-columns: minmax(0, 1fr); } .engage li { min-height: 0; } }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; }
.contact__facts { display: grid; gap: var(--space-md); margin: var(--space-xl) 0 0; }
.contact__facts div { padding-top: var(--space-md); border-top: 1px solid var(--rule-2); display: grid; gap: var(--space-2xs); }
.contact__facts dt { font-size: var(--text-sm); font-weight: 600; color: var(--ink-2); }
.contact__facts dd { margin: 0; font-size: var(--text-lg); }
.fill { padding: 0 var(--space-2xs); border: 1px dashed var(--muted); border-radius: 6px; color: var(--ink-2); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); padding: var(--space-xl); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-s); color: var(--ink); }
.field { display: grid; gap: var(--space-xs); }
.field--wide, .form__foot { grid-column: 1 / -1; }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 0 var(--space-md); border: 1px solid var(--muted); border-radius: var(--radius-s); background: var(--paper); color: var(--ink); font: 400 var(--text-md)/1.4 var(--font-body); outline: 3px solid transparent; outline-offset: -1px; transition: background-color var(--dur-short) var(--ease-out); }
.field textarea { min-height: 150px; padding: var(--space-sm) var(--space-md); resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { background: var(--white); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-color: var(--focus); }
.field [aria-invalid] { border-color: var(--error); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }
.form__help { min-height: 1lh; font-size: var(--text-sm); color: var(--ink-2); }
@media (max-width: 60rem) { .contact { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } }
@media (max-width: 40rem) { .form { grid-template-columns: minmax(0, 1fr); padding: var(--space-lg); } }

/* footer */
.foot { padding-block: var(--space-3xl) var(--space-xl); background: var(--paper-2); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: var(--space-xl); align-items: start; }
.foot__logo img { height: 40px; width: auto; }
.foot__text { color: var(--ink-2); max-width: 32rem; }
.foot__links { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-xs); }
.foot__links a { text-decoration: none; }
.foot__links a:hover { text-decoration: underline; text-decoration-color: var(--sky); text-underline-offset: 4px; }
.foot__legal { margin-top: var(--space-2xl); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); font-size: var(--text-sm); color: var(--ink-2); }
@media (max-width: 60rem) { .foot__grid { grid-template-columns: minmax(0, 1fr); } }

/* the version switcher */
.switcher { position: fixed; left: var(--space-md); bottom: var(--space-md); z-index: var(--z-switcher); font-family: var(--font-switcher); color: var(--ink); }
.switcher summary { list-style: none; display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-pill); background: var(--ink); color: var(--on-blue); font-size: var(--text-sm); font-weight: 600; cursor: pointer; box-shadow: var(--shadow-s); transition: background-color var(--dur-short) var(--ease-out); }
.switcher summary::-webkit-details-marker { display: none; }
.switcher summary:hover { background: var(--blue-deep); }
.switcher summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.switcher summary i { width: 10px; height: 10px; border-radius: 50%; background: var(--sky); display: block; }
.switcher__panel { position: absolute; left: 0; bottom: calc(100% + var(--space-xs)); width: 320px; padding: var(--space-xs); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
.switcher__panel p { padding: var(--space-xs) var(--space-sm) var(--space-2xs); font-size: var(--text-sm); color: var(--ink-2); }
.switcher__panel ol { margin: 0; padding: 0; list-style: none; }
@media (max-width: 24rem) { .switcher__panel { width: 280px; } }
.switcher__panel a { display: block; padding: var(--space-xs) var(--space-sm); border-radius: 10px; text-decoration: none; font-size: var(--text-sm); color: var(--ink); }
.switcher__panel li:last-child { margin-top: var(--space-2xs); padding-top: var(--space-2xs); border-top: 1px solid var(--rule); }
.switcher__panel a b { font-weight: 700; color: var(--blue); }
.switcher__panel a:hover { background: var(--sky-soft); }
.switcher__panel a[aria-current="page"] { background: var(--blue); color: var(--on-blue); }
.switcher__panel a[aria-current="page"] b { color: var(--sky); }
.switcher__panel a:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }

/* pause control for loops */
.pause { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 36px; padding: 0 var(--space-sm); border: 1px solid currentColor; border-radius: var(--radius-pill); background: transparent; color: inherit; font: 600 var(--text-sm)/1 var(--font-body); cursor: pointer; opacity: 0.85; transition: opacity var(--dur-short) var(--ease-out); }
.pause:hover { opacity: 1; }
html:not(.js) .pause { display: none; }
.is-paused, .is-paused * { animation-play-state: paused !important; }

/* one reveal, visible without script */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .pause { display: none; }
}
