/* Delos Management website v3: base styles (charter v3, brand/02-charte-graphique-v3.md, D67 to D73).
   Desktop (>= 52rem): one flat light-grey background on every page, gold rules and borders, vivid blue in semi-bold.
   Mobile  (<  52rem): dark everywhere, framed sections over the dark moon (D56).
   Palette: brand/00-brief.md section 7. Typography: D41, D47.
   No external resources: fonts and images are self-hosted. */

@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 300; font-display: swap;
  src: url("../fonts/InterDisplay-Light-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 500; font-display: swap;
  src: url("../fonts/InterDisplay-Medium-latin.woff2") format("woff2"); }
/* Gold text is never Light: Medium (500) keeps the Kapton gold as vivid as the gold rule (D47). */

/* ---------- Tokens ---------- */
:root {
  /* Lunar neutrals */
  --c-white: #FFFFFF;
  --c-highlands: #EDE8E4;
  --c-regolith: #67625D;   /* secondary text on light: Poussiere, 5.0:1 on Hautes terres */
  --c-basalt: #C1BDB8;     /* hairlines on light */
  --c-mer: #191714;        /* main dark background */
  --c-space: #0B0A08;      /* deep background, text on gold */
  /* Accents */
  --c-gold: #FFB81C;       /* Pantone 1235 C */
  --c-blue: #0067B1;       /* vivid blue, semi-bold: 4.8:1 on Hautes terres (D69) */
  --c-paper: #EDE8E4;      /* page background, single colour (Hautes terres, D67) */
  --c-card: #F7F5F2;       /* cards and boxes (neutral 50) */
  --c-line: #C1BDB8;       /* neutral hairlines */
  --c-ink: #0B0A08;        /* text */

  /* Fluid type scale, 360 px (16 / 1.2) to 1440 px (18 / 1.25) */
  --step--1: clamp(0.8333rem, 0.8111rem + 0.0988vw, 0.9rem);
  --step-0: clamp(1rem, 0.9583rem + 0.1852vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1312rem + 0.3056vw, 1.4062rem);
  --step-2: clamp(1.44rem, 1.3341rem + 0.4708vw, 1.7578rem);
  --step-3: clamp(1.728rem, 1.5716rem + 0.6952vw, 2.1973rem);
  --step-4: clamp(2.0736rem, 1.8520rem + 0.9849vw, 2.7466rem);
  --step-5: clamp(2.4883rem, 2.1734rem + 1.3999vw, 3.4332rem);

  --space-s: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  --space-m: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
  --space-l: clamp(3rem, 2.4rem + 3vw, 5.5rem);
  --container: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter Display", "Inter", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-paper); color: var(--c-ink); font-family: var(--font);
  font-size: var(--step-0); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, ol { margin: 0; }
a { color: var(--c-blue); font-weight: 600; text-underline-offset: 0.2em; }
strong { font-weight: 600; }
/* Focus: ink outline plus gold halo (gold alone is 1.4:1 on light grey) */
:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--c-gold); border-radius: 2px; }
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--c-gold); color: var(--c-space); padding: 0.5rem 1rem; z-index: 10; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 2; padding-block: var(--space-s); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { color: var(--c-ink); }
.nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); list-style: none; margin: 0; padding: 0; font-size: var(--step--1); }
.nav a { color: var(--c-ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--c-blue); }
.nav [aria-current="page"] { color: var(--c-ink); box-shadow: inset 0 -2px 0 var(--c-gold); }

/* ---------- Hero: the one bold element ---------- */
.hero { position: relative; overflow-x: clip; padding-block: var(--space-l) var(--space-l); }
.hero__text { position: relative; z-index: 1; max-width: 46rem; }
.eyebrow { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-regolith); margin-bottom: var(--space-s); }
.hero h1 { font-family: var(--font-display); font-weight: 300; font-size: var(--step-5);
  line-height: 1.08; letter-spacing: -0.01em; }
.rule { width: 5.5rem; height: 5px; background: var(--c-gold); border: 0; margin: var(--space-m) 0 var(--space-s); }
.byline { margin-top: 0.35rem; font-size: var(--step--1); color: var(--c-regolith); }
.hero__lead { margin-top: var(--space-m); max-width: 40rem; font-size: var(--step-1); line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: var(--space-m); }
/* Contact button: gold fill, ink text and envelope icon (D71) */
.button { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--c-gold); color: var(--c-space); font-weight: 600;
  text-decoration: none; padding: 0.85rem 1.5rem; border-radius: 0.25rem; }
.button:hover { background: #FDD48F; }
.button .icon { flex: none; }
.link-down { color: var(--c-ink); font-weight: 500; text-decoration: none; box-shadow: inset 0 -2px 0 var(--c-gold); }
.link-down:hover { color: var(--c-blue); }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-l); border-top: 1px solid var(--c-gold); }
.section h2 { font-family: var(--font-display); font-weight: 300; font-size: var(--step-3); line-height: 1.15; max-width: 40rem; }
.section > .container > h2::after { content: ""; display: block; width: 5.5rem; height: 5px; background: var(--c-gold); margin-top: 0.9rem; }
.section__lead { margin-top: var(--space-s); max-width: 44rem; color: var(--c-regolith); }

/* Offer cards (fiches): equal weight, gold top border, numbered gold disc (D70) */
.fiches { display: grid; gap: var(--space-m); margin-top: var(--space-m); }
@media (min-width: 52rem) { .fiches { grid-template-columns: repeat(3, 1fr); } }
.fiche { position: relative; background: var(--c-card); border-top: 4px solid var(--c-gold); border-radius: 0 0 6px 6px;
  padding: calc(var(--space-m) + 0.5rem) var(--space-m) var(--space-m); }
.fiche__n { position: absolute; top: -1.15rem; left: var(--space-m); display: grid; place-items: center; width: 2.2rem; height: 2.2rem;
  border-radius: 50%; background: var(--c-gold); color: var(--c-space); font-weight: 700; font-size: var(--step--1); }
.fiche h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); line-height: 1.15; color: var(--c-blue); }
.fiche__sub { margin-top: 0.4rem; font-weight: 600; }
.fiche__meta { margin-top: var(--space-s); display: grid; gap: 0.5rem; font-size: var(--step--1); color: var(--c-regolith); }
.fiche__meta strong { color: var(--c-ink); }
.fiche ul { margin: var(--space-s) 0 0; padding: var(--space-s) 0 0; list-style: none; display: grid; gap: 0.6rem;
  border-top: 1px solid var(--c-line); font-size: var(--step--1); }
.fiche li { padding-left: 1rem; position: relative; }
.fiche li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--c-gold); }

/* Key achievements: one column per area, same order as the cards */
.axes { display: grid; gap: var(--space-m); margin-top: var(--space-m); }
@media (min-width: 52rem) { .axes { grid-template-columns: repeat(3, 1fr); gap: var(--space-l); } }
.axe h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); padding-bottom: 0.6rem; border-bottom: 2px solid var(--c-gold); }
@media (min-width: 52rem) {   /* same heading height in the three columns, so the rows line up */
  .axe h3 { min-height: calc(2.5em + 0.6rem + 4px); display: flex; align-items: flex-end; line-height: 1.25; } }
.axe dl { margin: 0; display: grid; }
.axe dl > div { padding-block: 0.9rem; border-bottom: 1px solid var(--c-line); }
.axe dt { font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); line-height: 1.2; color: var(--c-blue); }
.axe dd { margin: 0.3rem 0 0; font-size: var(--step--1); }

/* Who you work with: small portrait (D73), three lines */
.intervenant { display: grid; grid-template-columns: auto 1fr; gap: var(--space-m); align-items: start; margin-top: var(--space-m); max-width: 52rem; }
.intervenant img { width: 10rem; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; border-radius: 50%; border: 2px solid var(--c-gold); }
.intervenant p + p { margin-top: 0.6rem; }

/* Contact */
.contact p { margin-top: var(--space-s); max-width: 42rem; }
.contact .button { margin-top: var(--space-m); }
.contact .email { display: block; margin-top: var(--space-s); font-size: var(--step-0); }

/* Footer */
.site-footer { background: var(--c-paper); border-top: 4px solid var(--c-gold); padding-block: var(--space-l) var(--space-m); font-size: var(--step--1); color: var(--c-regolith); }
.site-footer .container { display: grid; gap: var(--space-m); }
@media (min-width: 52rem) { .site-footer .container { grid-template-columns: 1fr auto; align-items: end; } }
.site-footer address { font-style: normal; line-height: 1.7; margin-top: 0.6rem; }
.site-footer .tagline { font-family: var(--font-display); font-weight: 500; font-size: var(--step-0); color: var(--c-ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.site-footer a { color: var(--c-ink); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Inner pages (v2) ---------- */
.page-head { padding-block: calc(var(--space-l) + 0.5rem) var(--space-m); }
.page-head h1 { font-family: var(--font-display); font-weight: 300; font-size: var(--step-4); line-height: 1.1; letter-spacing: -0.01em; }
.page-head p { margin-top: var(--space-s); max-width: 40rem; font-size: var(--step-1); color: var(--c-regolith); }
.prose { max-width: 42rem; }
.prose h2 { font-family: var(--font-display); font-weight: 300; font-size: var(--step-2); margin-top: var(--space-m); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); color: var(--c-blue); margin-top: var(--space-m); }
.prose h4 { font-weight: 500; margin-top: var(--space-s); }
.prose p, .prose ul { margin-top: 0.75rem; }
.prose ul { padding-left: 1.1rem; }
.prose li + li { margin-top: 0.35rem; }
.split { display: grid; gap: var(--space-l); margin-top: var(--space-m); }
.split figure { margin: 0; }
.split img { border-radius: 0.25rem; filter: grayscale(0.15); max-width: 22rem; border-top: 4px solid var(--c-gold); }
.split figcaption { font-size: var(--step--1); color: var(--c-regolith); margin-top: 0.6rem; }
@media (min-width: 52rem) { .split { grid-template-columns: minmax(14rem, 22rem) 1fr; align-items: start; } }
mark { background: #FDD48F; color: #0B0A08; padding: 0 0.2em; }   /* [À VÉRIFIER] markers, visible in previews only */
.cards { display: grid; gap: var(--space-m); margin-top: var(--space-m); }
@media (min-width: 52rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.cards article { background: var(--c-card); border-top: 4px solid var(--c-gold); border-radius: 0 0 6px 6px; padding: var(--space-m); }
.cards h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); color: var(--c-blue); }
.cards p { margin-top: 0.5rem; }
.lang-switch a { font-weight: 500; }

.videos { display: grid; gap: var(--space-m); margin-top: var(--space-m); }
@media (min-width: 52rem) { .videos { grid-template-columns: repeat(2, 1fr); } }
.video { margin: 0; }
.video video { width: 100%; height: auto; display: block; border-radius: 0.25rem; background: #0B0A08; }
.video figcaption { font-size: var(--step--1); color: var(--c-regolith); margin-top: 0.5rem; }
.videos__intro { margin-top: var(--space-s); max-width: 42rem; }

/* ---------- Covers and mobile frames ---------- */
/* Desktop: no picture, the hero sits on the flat page colour (D67).
   Mobile: one fixed dark-moon layer behind the page, every section in a frosted dark frame (D56). */

/* ---------- Shared cover mechanics ---------- */
.cover { position: relative; isolation: isolate; overflow: clip; }
.cover::before, .cover::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.cover::before { inset: 0; }
.cover::after  { inset: 0 0 auto 0; height: 8rem; }          /* header band: logo and menu stay legible */
.cover .hero__text { max-width: 46rem; }

/* Header floats over the cover; the hero reserves its height (keeps <header> outside <main>). */
.site-header--over { position: absolute; inset: 0 0 auto 0; z-index: 3; }
.cover.hero { padding-top: calc(var(--space-l) + 5.5rem); padding-bottom: calc(var(--space-l) * 1.4); }




/* ---------- Desktop: flat light grey, no background picture (D85) ---------- */
@media (min-width: 52rem) {
  .cover.hero { background: var(--c-paper); }
  .cover::before, .cover::after { display: none; }
}

/* ---------- Mobile: dark everywhere, framed sections ---------- */
@media (max-width: 51.99rem) {
  :root {
    --c-paper: #191714;                 /* Mer */
    --c-ink: #FFFFFF;
    --c-regolith: #C1BDB8;              /* secondary text on frosted frames (neutral 300): >= 4.5:1 over crater highlights */
    --c-basalt: rgb(255 255 255 / .16); /* hairlines */
    --c-highlands: transparent;
    --c-blue: #24B8FD;                  /* same blue as on black: 8.0:1 on Mer (D69) */
    --c-card: rgb(255 255 255 / .05);
    --c-line: rgb(255 255 255 / .16);
  }
  :focus-visible { outline-color: var(--c-gold); box-shadow: none; }
  /* Flat dark background, no picture (D85) */
  body { background: #191714; }

  .cover { isolation: auto; }
  .cover::before { display: none; }
  .cover::after { background: linear-gradient(180deg, rgb(25 23 20 / .85), rgb(25 23 20 / 0)); }
  .cover.hero { padding-top: calc(var(--space-m) + 5rem); padding-bottom: var(--space-s); }

  /* Frames: hero text and every section container */
  .section, .section:nth-of-type(odd), .site-footer { background: transparent; border: 0; }
  .section { padding-block: var(--space-s); }
  .hero__text, .section > .container, .site-footer > .container {
    margin-inline: 1rem; width: auto; max-width: none;
    padding: 1.5rem; border-radius: 6px;
    background: rgb(25 23 20 / .58); border: 1px solid rgb(255 255 255 / .14);
    -webkit-backdrop-filter: blur(6px) saturate(1.1); backdrop-filter: blur(6px) saturate(1.1); }
  .site-footer { padding-block: var(--space-s) var(--space-m); }
  .site-footer > .container { background: rgb(11 10 8 / .78); }
  .container { padding-inline: 0; }
  .site-header > .container { padding-inline: 1.25rem; }
  .logo svg { width: 124px; height: auto; }
  .nav { gap: 1rem; } .nav a { white-space: nowrap; }

  /* Dark-theme accents: gold titles and dates (Inter Display Medium, D47) */
  .fiche h3, .axe h3, .cards h3, .prose h3 { color: var(--c-gold); }
  .axe dt { color: #FFFFFF; }
  .fiche { padding: calc(var(--space-s) + 1.1rem) var(--space-s) var(--space-s); }
  .fiche__n { left: var(--space-s); }
  .fiches { gap: calc(var(--space-m) + 0.5rem); margin-top: calc(var(--space-m) + 0.75rem); }
  /* 96 px portrait beside the name, description below (D73) */
  .intervenant { grid-template-columns: 6rem 1fr; gap: 0.6rem 1rem; align-items: center; }
  .intervenant img { width: 6rem; }
  .intervenant > div { display: contents; }
  .intervenant p:not(:first-child) { grid-column: 1 / -1; }
  .contact .button { display: flex; justify-content: center; }
  .site-footer { border-top: 0; }
  .site-footer > .container { border-top: 4px solid var(--c-gold); }
  .split img { max-width: 100%; height: auto; }
  .site-header:not(.site-header--over) { background: linear-gradient(180deg, rgb(25 23 20 / .88), rgb(25 23 20 / .55)); }   /* inner pages: menu legible over the moon */
  .split { gap: var(--space-m); }
  /* Logo: gold crescent kept (D68), white wordmark */
  .logo, .site-header--on-dark .logo, .site-header--on-dark .nav a { color: #FFFFFF; }
}
@supports not (backdrop-filter: blur(1px)) {
  @media (max-width: 51.99rem) { .hero__text, .section > .container, .site-footer > .container { background: rgb(25 23 20 / .92); } }
}
@media (prefers-reduced-transparency: reduce) {
  .hero__text, .section > .container, .site-footer > .container { -webkit-backdrop-filter: none; backdrop-filter: none; }
}


/* ---------- Desktop hero fits the screen height: text centred, button always above the fold ---------- */
@media (min-width: 52rem) {
  .cover.hero { min-height: min(100svh, 52rem); display: flex; flex-direction: column; justify-content: center;
    padding-top: calc(var(--space-s) + 5rem); padding-bottom: var(--space-m); }
}
@media (min-width: 52rem) and (max-height: 46rem) {
  .hero h1 { font-size: clamp(2.3rem, 0.8rem + 4.4vh, 3.4332rem); }
  .rule { margin: 1.25rem 0 0.9rem; }
  .hero__lead, .actions { margin-top: 1.25rem; }
}
@media (min-width: 52rem) and (max-height: 38rem) {
  .hero__lead { font-size: var(--step--1); }
  .rule { margin: 0.9rem 0 0.7rem; }
}
