/* Upscale Conseil — tokens issus de la charte */
:root {
  --ink-strong: #1b232f;
  --ink: #3a3a3a;
  --ink-slate: #545f6e;
  --ink-muted: #6c6c6c;
  --accent-taupe: #8f8171;
  --paper: #ffffff;
  --surface-tint: #f8f7f4;
  --surface-cream: #eeece1;
  --band-sand: #d8d4ce;
  --logo-navy: #060d17;
  --logo-gold: #d6ba79;
  --font-display: "Aptos Display", Aptos, "Segoe UI", Calibri, system-ui, sans-serif;
  --font-sans: Aptos, "Segoe UI", Calibri, system-ui, sans-serif;
  --wrap: 1120px;
  --text: 72ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--ink-strong); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink-strong); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* En-tête */
.site-header { border-bottom: 1px solid var(--surface-cream); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 52px; height: 52px; }
.brand span { font-family: var(--font-display); font-weight: 700; letter-spacing: .08em; color: var(--ink-strong); font-size: 15px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-slate); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink-strong); border-bottom-color: var(--accent-taupe); }

/* Héros */
.hero { background: var(--logo-navy); color: #e9e6df; }
.hero .wrap { display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.hero .eyebrow { color: var(--logo-gold); }
.hero h1 { color: #ffffff; }
.hero .lead { color: #c9ccd2; }
.hero .pillars { color: var(--logo-gold); font-weight: 600; letter-spacing: .02em; }
.hero-logo { width: 260px; height: 260px; }

/* Héros photographique : aplat bleu nuit translucide sur la photo (pas de dégradé) */
.hero.photo { background: var(--logo-navy) url("images/hero-boardroom.jpg") center / cover no-repeat; position: relative; }
.hero.photo::before { content: ""; position: absolute; inset: 0; background: rgba(6, 13, 23, .72); z-index: 1; }
.hero.photo > *:not(img) { position: relative; z-index: 2; }
.hero.photo .wrap { position: relative; z-index: 2; grid-template-columns: minmax(0, 760px); padding-top: 140px; padding-bottom: 140px; }

/* Visuels */
.media { margin: 0; background: var(--surface-tint); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.r43 { aspect-ratio: 4 / 3; }
.media.r32 { aspect-ratio: 3 / 2; }
.media figcaption { font-size: 13px; font-style: italic; color: var(--ink-muted); padding-top: 10px; background: var(--paper); }
.card.has-media { padding: 0; }
.card.has-media .media { aspect-ratio: 16 / 9; }
.card.has-media .card-body { padding: 28px; }
.page-head.with-media .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.page-head.with-media .media { aspect-ratio: 3 / 2; }
.two-col.media-left { align-items: center; }
.col-media { margin-top: 28px; }

.page-head { background: var(--surface-tint); border-bottom: 6px solid var(--band-sand); }
.page-head .wrap { padding-top: 64px; padding-bottom: 56px; }

/* Typo */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-slate); margin: 0 0 14px; }
h1, h2 { font-family: var(--font-display); font-weight: 700; color: var(--ink-strong); line-height: 1.15; margin: 0 0 18px; }
h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(26px, 3.4vw, 32px); }
h3 { font-size: 18px; font-weight: 700; color: var(--accent-taupe); margin: 32px 0 8px; line-height: 1.35; }
p { margin: 0 0 16px; max-width: var(--text); }
.lead { font-size: 19px; color: var(--ink-slate); max-width: 62ch; }
.note { font-style: italic; color: var(--ink-muted); font-size: 15px; }
strong { color: var(--ink-strong); }

.rule { width: 72px; height: 4px; background: var(--band-sand); border: 0; margin: 0 0 24px; }

/* Sections */
.section { padding: 80px 0; }
.section.tint { background: var(--surface-tint); }
.section + .section:not(.tint) { border-top: 1px solid var(--surface-cream); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

ul.bullets { list-style: none; padding: 0; margin: 0 0 16px; max-width: var(--text); }
ul.bullets li { position: relative; padding-left: 22px; margin-bottom: 10px; }
ul.bullets li::before { content: "•"; position: absolute; left: 4px; color: var(--accent-taupe); font-weight: 700; }

/* Cartes (angles droits, sans ombre) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--band-sand); border: 1px solid var(--band-sand); margin-top: 32px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--paper); padding: 32px 28px; }
.section.tint .card { background: var(--paper); }
.card .num { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .12em; color: var(--ink-slate); text-transform: uppercase; display: block; margin-bottom: 10px; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* Tableau d'infos */
.info { width: 100%; max-width: 820px; border-collapse: collapse; margin: 24px 0; font-size: 16px; }
.info th, .info td { border: 1px solid var(--band-sand); padding: 14px 18px; text-align: left; vertical-align: top; }
.info th { background: var(--surface-tint); color: var(--ink-strong); width: 34%; font-weight: 700; }

/* Encadré / CTA */
.callout { border: 1px solid var(--band-sand); background: var(--surface-tint); padding: 28px 32px; max-width: 820px; margin: 32px 0 0; }
.callout p { margin: 0; font-weight: 700; color: var(--ink-strong); }

.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 16px; padding: 14px 26px; border: 2px solid var(--ink-strong); background: var(--ink-strong); color: #fff; }
.btn:hover { background: var(--logo-navy); border-color: var(--logo-navy); color: #fff; }
.btn.gold { background: var(--logo-gold); border-color: var(--logo-gold); color: var(--logo-navy); }
.btn.gold:hover { background: transparent; color: var(--logo-gold); }
.btn.ghost { background: transparent; color: var(--ink-strong); }
.btn.ghost:hover { background: var(--ink-strong); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.cta-band { background: var(--logo-navy); color: #c9ccd2; }
.cta-band .wrap { padding-top: 64px; padding-bottom: 64px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; }

/* Pied de page */
.site-footer { background: var(--logo-navy); color: #b4b8bf; font-size: 14px; border-top: 1px solid #1c2533; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.site-footer strong { color: var(--logo-gold); font-family: var(--font-display); letter-spacing: .08em; }
.site-footer a { color: #e9e6df; }
.site-footer p { margin: 0 0 6px; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; gap: 32px; }
  .hero-logo { width: 160px; height: 160px; order: -1; }
  .hero.photo .wrap { padding-top: 88px; padding-bottom: 88px; }
  .page-head.with-media .wrap { grid-template-columns: 1fr; gap: 32px; }
  .two-col, .cards, .cards.two, .site-footer .wrap { grid-template-columns: 1fr; }
  .two-col { gap: 16px; }
  .section { padding: 56px 0; }
  .site-header .wrap { padding-top: 14px; padding-bottom: 14px; }
  .nav { gap: 4px 18px; }
  .info th { width: 40%; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .info th, .info td { display: block; width: 100%; }
}

/* ===== Mobile : menu ☰, contact, contenus repliables ===== */
.mnav { display: none; }

.contact-lines { max-width: 820px; margin: 24px 0; border-top: 1px solid var(--band-sand); }
.contact-lines p { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: baseline; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--band-sand); max-width: none; }
.contact-lines .label { min-width: 120px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-slate); }
.contact-lines a { font-size: 18px; font-weight: 600; }

details.more { margin-top: 8px; }
details.more > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; color: var(--ink-strong); border-bottom: 2px solid var(--accent-taupe); }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--accent-taupe); }
details.more[open] > summary::after { content: "–"; }
details.more[open] > summary { margin-bottom: 8px; }

@media (max-width: 860px) {
  /* En-tête compact sur une ligne */
  .site-header { position: sticky; top: 0; z-index: 50; }
  .site-header .wrap { min-height: 64px; padding-top: 8px; padding-bottom: 8px; flex-wrap: nowrap; position: relative; }
  .brand img { width: 40px; height: 40px; }
  .brand span { font-size: 14px; }
  .nav-desktop { display: none; }
  .mnav { display: block; }
  .mnav > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--band-sand); font-weight: 700; font-size: 15px; color: var(--ink-strong); }
  .mnav > summary::-webkit-details-marker { display: none; }
  .mnav > summary::before { content: "☰"; font-size: 18px; line-height: 1; }
  .mnav[open] > summary::before { content: "✕"; }
  .mnav-list { position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 8px 16px 16px; list-style: none; background: var(--paper); border-bottom: 1px solid var(--band-sand); }
  .mnav-list a { display: flex; align-items: center; min-height: 52px; font-size: 18px; font-weight: 600; text-decoration: none; color: var(--ink-strong); border-bottom: 1px solid var(--surface-cream); }
  .mnav-list a[aria-current="page"] { color: var(--accent-taupe); }

  /* Bandeau d'accueil plus direct */
  .hero .pillars { display: none; }
  .hero.photo .wrap { padding-top: 48px; padding-bottom: 48px; }
  .hero .lead { font-size: 17px; }
  .hero .actions { margin-top: 20px; }

  /* Pages plus courtes */
  .section { padding: 44px 0; }
  .page-head .wrap { padding-top: 36px; padding-bottom: 32px; }
  .media.r43, .media.r32, .page-head.with-media .media, .card.has-media .media { aspect-ratio: 16 / 9; }
  .col-media { margin-top: 16px; }
  .card { padding: 22px 20px; }
  .card.has-media .card-body { padding: 20px; }
  .card .num { margin-bottom: 4px; }
  .cards { margin-top: 20px; }
  .rule { margin-bottom: 16px; }
  .cta-band .wrap { padding-top: 40px; padding-bottom: 40px; }

  /* Contact */
  .btn-wide { display: block; width: 100%; text-align: center; }
  .contact-lines a { font-size: 17px; }
}

/* iPhone : neutraliser les liens créés automatiquement par Safari (SIRET pris pour un numéro de téléphone) */
a[x-apple-data-detectors], a[href^="tel:"] { color: inherit !important; text-decoration: none !important; font: inherit !important; pointer-events: none !important; cursor: default !important; }

/* Pied de page mobile : lignes resserrées (marque, e-mail, SIRET) */
@media (max-width: 860px) {
  .site-footer .wrap { gap: 2px !important; row-gap: 2px !important; padding-top: 28px; padding-bottom: 28px; }
  .site-footer .wrap > *, .site-footer .wrap > * > * { margin-top: 0 !important; margin-bottom: 0 !important; }
  .site-footer p { margin: 0 !important; line-height: 1.6; }
}

/* ===== Ordinateur uniquement (≥ 861 px) — la version iPhone n'est pas concernée ===== */
.desk-only { display: none; }
@media (min-width: 861px) {
  /* Détails des missions dépliés */
  .mob-only { display: none !important; }
  .desk-only { display: block; }

  /* En-tête plus bas et fixé en haut de l'écran (position fixe : indépendante du conteneur ajouté par WordPress) */
  .site-header { position: fixed !important; top: 0; left: 0; right: 0; z-index: 50; }
  body { padding-top: 65px; }
  .site-header .wrap { min-height: 64px !important; padding-top: 8px; padding-bottom: 8px; }
  .brand img { width: 42px; height: 42px; }

  /* Ascenseur toujours visible, y compris sur le bandeau bleu nuit de l'accueil */
  html { overflow-y: scroll; }
  ::-webkit-scrollbar { width: 12px; }
  ::-webkit-scrollbar-track { background: var(--surface-tint); }
  ::-webkit-scrollbar-thumb { background: var(--accent-taupe); border: 3px solid var(--surface-tint); border-radius: 6px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--ink-slate); }
}
@supports not selector(::-webkit-scrollbar) {
  @media (min-width: 861px) { html { scrollbar-color: var(--accent-taupe) var(--surface-tint); scrollbar-width: auto; } }
}

/* Pages Mentions légales et Confidentialité + liens légaux du pied de page */
.legal .wrap > * { max-width: 820px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal .info { margin-top: 8px; }
.site-footer .legal-links { font-size: 13px; }
.site-footer .legal-links a { color: #b4b8bf; }
.site-footer .legal-links a:hover { color: #e9e6df; }
