/* ══════════════════════════════════════════════════════════════════
   romucorp.fr — style.css  (charte graphique V1)
   ──────────────────────────────────────────────────────────────────
   Feuille unique (accueil, fiches société, pages d'erreur). Externe : couverte par
   style-src 'self', aucun style en ligne dans les pages (la CSP les interdit).
   Approche « mobile d'abord » : les règles de base visent le téléphone ; les @media (min-width)
   ajoutent la tablette (≥ 640 px) puis le PC (≥ 1024 px).

   Plan : 1 Police · 2 Tokens · 3 Base · 4 Layout · 5 Boutons · 6 Cartes & logos
          7 Portefeuille · 8 Sociétés & fiches · 9 Pages d'erreur · 10 Animations
          11 Tablette & PC · 12 Interactions (souris / tactile)
   ══════════════════════════════════════════════════════════════════ */


/* ══ 1. Police (Inter variable, auto-hébergée) ═══════════════════
   Aucune requête tierce. Licence SIL OFL 1.1 : fonts/OFL-LICENSE.txt.
   Remplacer le fichier = le renommer (cache « immutable »). */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}


/* ══ 2. Tokens — Noir / Bleu électrique / Rouge néon ═════════════ */
:root {
  color-scheme: dark;

  /* Noirs (surfaces) */
  --bg:           #050507;
  --surface:      #0c0d11;
  --surface-hi:   #14161c;
  --logo-bg:      #08090c;

  /* Texte */
  --text:         #f5f7fa;
  --text-muted:   #98a2b3;   /* 7,9:1 sur --bg */

  /* Bleu électrique — couleur principale */
  --accent:       #007bff;   /* fonds de boutons, grands chiffres (5,1:1 sur --bg, 4,9:1 sur --surface) */
  --accent-hi:    #3395ff;   /* texte courant, liens, focus (6,7:1) */
  --accent-soft:  rgba(0, 123, 255, .14);
  --on-accent:    #050507;   /* texte sur fond bleu : noir = 5,1:1 (le blanc ne ferait que 3,7:1, insuffisant en petit texte) */

  /* Rouge néon — signal, avec parcimonie : repère des titres, voyant LIVE, valeur négative, erreur */
  --alert:        #ff073a;   /* 5,2:1 sur --bg */
  --alert-soft:   rgba(255, 7, 58, .14);

  /* Traits */
  --border:       rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .18);

  /* Forme */
  --radius-lg: 20px;
  --radius-md: 14px;
  --maxw:      1120px;
  --gutter:    clamp(1rem, 4.5vw, 2rem);
  --section-y: clamp(1.75rem, 1rem + 3vw, 3.25rem);

  /* Typographie fluide */
  --font:     'Inter', 'Helvetica Neue', Arial, sans-serif;
  --fs-h1:    clamp(2.25rem, 1.3rem + 4.6vw, 4.25rem);
  --fs-h2:    clamp(1.2rem, 1.05rem + .7vw, 1.55rem);
  --fs-lead:  clamp(1rem, .95rem + .3vw, 1.15rem);

  /* Mouvement */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur:  .25s;
}


/* ══ 3. Base ═════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img, svg { display: block; max-width: 100%; }
button   { font: inherit; color: inherit; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--border-strong) var(--bg);
}
body {
  min-height: 100vh;
  font-family: var(--font); font-size: 1rem; line-height: 1.6;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);   /* encoche en paysage */
}
::selection { background: var(--accent); color: var(--on-accent); }
[id] { scroll-margin-top: 5.5rem; }                                       /* sous l'en-tête collant */
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }

.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 200;
  padding: .6rem 1rem; border-radius: 8px;
  background: var(--accent); color: var(--on-accent);
  font-size: .875rem; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Sprite d'icônes SVG (<symbol>) : présent dans le DOM, invisible */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }


/* ══ 4. Layout ═══════════════════════════════════════════════════ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* En-tête collant et translucide */
.site-header {
  position: sticky; top: 0; z-index: 40;
  padding-top: env(safe-area-inset-top);
  background: rgba(5, 5, 7, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: .75rem; min-height: 4rem; }

.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  font-weight: 900; font-size: .95rem; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--text);
}
.brand-logo { height: 28px; width: auto; }       /* monogramme RT blanc (images/logo-romucorp-white.png) */

.site-nav { display: none; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .9rem; border-radius: 100px;
  font-size: .875rem; font-weight: 700; color: var(--text-muted); text-decoration: none;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.lang-btn {
  margin-left: auto; min-width: 3rem; min-height: 2.75rem; padding: 0 1rem;
  border: 1px solid var(--border-strong); border-radius: 100px; background: var(--surface);
  font-size: .78rem; font-weight: 900; letter-spacing: .1em; cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

/* Hero */
.hero { padding-block: clamp(2.25rem, 7vw, 5rem) 0; }
.hero h1 { font-weight: 900; font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.hero h1 .accent { color: var(--accent); }
.lead { margin-top: 1rem; max-width: 52ch; font-size: var(--fs-lead); color: var(--text-muted); }

/* Badge d'accroche : pastille bleue */
.badge {
  display: inline-flex; align-items: center; gap: .55rem; max-width: 100%;
  margin-bottom: 1.25rem; padding: .4rem .9rem; border-radius: 100px;
  background: var(--accent-soft); border: 1px solid rgba(0, 123, 255, .45);
  font-size: .8rem; font-weight: 700; line-height: 1.3; color: var(--accent-hi);
}
.badge::before { content: ""; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--accent-hi); }

/* Sections */
.section { padding-block: var(--section-y); }
.hero + .section { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-bottom: 1.25rem; }
.section-title { font-weight: 900; font-size: var(--fs-h2); line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; }
/* Repère rouge néon devant chaque titre de section : le « signal » de la charte (petit, régulier, jamais en aplat) */
.section-title::before {
  content: ""; display: inline-block; width: 4px; height: .95em; margin-right: .6rem; vertical-align: -.1em;
  border-radius: 2px; background: var(--alert); box-shadow: 0 0 12px rgba(255, 7, 58, .55);
}
.section-head .section-title { margin: 0; }
.section > .wrap > .section-title { margin-bottom: 1.25rem; }
.section-desc { max-width: 60ch; margin: -.6rem 0 1.5rem; font-size: .95rem; color: var(--text-muted); }

/* Pied de page */
.site-footer { margin-top: 2rem; padding-block: 2.5rem calc(2rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
.footer-brand { grid-column: 1 / -1; }
.footer-col h3 { margin-bottom: .8rem; font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.footer-col ul { display: grid; list-style: none; }
.footer-col a {
  display: inline-flex; align-items: center; min-height: 2.75rem;   /* zone tactile 44 px */
  font-size: .9rem; color: var(--text-muted); text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.footer-legal { margin-top: 2rem; }
.copyright { padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: .75rem; color: var(--text-muted); }


/* ══ 5. Boutons ══════════════════════════════════════════════════
   .btn           pilule bleue pleine (action principale), texte noir
   .btn--ghost    pilule contour (action secondaire)
   .btn--icon     carré arrondi, icône seule (liens sociaux)           */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.75rem; padding: 0 1.5rem; border: 0; border-radius: 100px;
  background: var(--accent); color: var(--on-accent);
  font-size: .9rem; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.btn--ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border-strong); font-size: .85rem; padding-inline: 1.1rem; }
.btn--ghost svg { width: 14px; height: 14px; stroke-width: 2; }

.btn--icon { width: 2.75rem; padding: 0; border-radius: 12px; background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn--icon svg { width: 18px; height: 18px; stroke: none; fill: currentColor; }
.btn svg.ico-stroke { fill: none; stroke: currentColor; stroke-width: 2; }
.btn svg.ico-fill   { fill: currentColor; stroke: none; }

/* Icône œil pilotée par aria-pressed (pas de style inline : la CSP les bloque) */
.btn[aria-pressed="false"] #eyeHid,
.btn[aria-pressed="true"]  #eyeVis { display: none; }


/* ══ 6. Cartes & logos ═══════════════════════════════════════════ */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

/* Cadre logo — IDENTIQUE pour VARSAT et FYND GROUP : 16:9, logo contenu (object-fit) avec marge fluide,
   quelle que soit sa proportion. Les nouveaux logos s'adaptent donc sans réglage. */
.media-wrap { position: relative; aspect-ratio: 16 / 9; background: var(--logo-bg); overflow: hidden; }
.logo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: clamp(1.25rem, 6vw, 3.5rem); }

.card-footer { padding: 1.1rem 1.25rem; border-top: 1px solid var(--border); }
.link-row    { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }


/* ══ 7. Portefeuille ═════════════════════════════════════════════
   Mobile : en-tête empilé, KPI 2 + 1, graphique compact.
   Tablette / PC : en-tête sur une ligne, KPI ×3, graphique plus haut (voir §11). */
.pf { padding: 1.25rem; }
.pf-head { display: grid; gap: 1rem; margin-bottom: 1.25rem; }
.pf-id   { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.pf-icon {
  display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0;
  border-radius: var(--radius-md); background: var(--accent-soft);
}
.pf-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-hi); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pf-title { font-weight: 900; font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.25; }
.pf-sub   { margin-top: 2px; font-size: .85rem; color: var(--text-muted); }
.pf-actions { display: flex; gap: .6rem; }
.pf-actions .btn:not(.btn--ghost) { flex: 1; }

/* KPI */
.kpis {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 1.5rem;
  overflow: hidden; background: var(--border); border-radius: 16px;
}
.kpi { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.1rem; background: var(--bg); min-width: 0; }
.kpi:last-child { grid-column: 1 / -1; }
.kpi-label { font-size: .78rem; font-weight: 700; color: var(--text-muted); }
.kpi-value {
  font-weight: 900; font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.1rem); line-height: 1.05; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; transition: filter .2s;
}
.kpi-value.positive { color: var(--accent); }
.kpi-value.negative { color: var(--alert); }
.kpi-value.neutral  { color: var(--text); }
.kpi-sub { font-size: .74rem; color: var(--text-muted); }
[data-hidden="true"] .kpi-value { filter: blur(8px); user-select: none; }

.kpi-value.loading {
  display: inline-block; align-self: flex-start; min-width: 4.5rem; border-radius: 6px; color: transparent;
  background: linear-gradient(90deg, var(--border) 25%, var(--border-strong) 50%, var(--border) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Graphique : une colonne par mois = barre + libellé (aucune marge négative, rien ne peut se décaler) */
.chart {
  --chart-h: 64px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; margin-bottom: 1.5rem;
}
.chart-col   { display: grid; grid-template-rows: var(--chart-h) auto; row-gap: .45rem; min-width: 0; }
.bar-track   { display: flex; align-items: flex-end; }
.bar { width: 100%; height: 0; border-radius: 3px 3px 0 0; background: var(--accent); opacity: .32; transition: height .6s var(--ease), opacity .3s; }
.bar.animated { opacity: .4; }
.bar.active   { opacity: 1; box-shadow: 0 0 14px -2px rgba(0, 123, 255, .65); }
.chart-label  { font-size: .62rem; line-height: 1; text-align: center; white-space: nowrap; color: var(--text-muted); opacity: .85; }
/* Téléphone : 1 libellé sur 4 (+ premier et dernier) pour éviter tout chevauchement */
.chart-col:not(:first-child):not(:last-child):not(:nth-child(4n+1)) .chart-label { visibility: hidden; }

/* Pied de carte */
.pf-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem;
  padding-top: 1.1rem; border-top: 1px solid var(--border);
}
.pf-status { display: flex; align-items: center; gap: .55rem; font-size: .75rem; color: var(--text-muted); }
.pf-next   { font-size: .75rem; color: var(--text-muted); opacity: .85; }
.pf-next.is-error { color: var(--alert); opacity: 1; }          /* « Données indisponibles » */

/* Point d'état : rouge néon pulsant = LIVE (données récentes) ; gris = données anciennes */
.dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--alert); }
.dot.synced { animation: pulse-dot 2s infinite; }
.dot.stale  { background: var(--text-muted); opacity: .6; }
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(255, 7, 58, .55); }
  70%  { box-shadow: 0 0 0 7px rgba(255, 7, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 7, 58, 0); }
}

/* Retour en haut */
.btt {
  position: fixed; z-index: 50; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 3rem; height: 3rem; border: 0; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .55);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btt svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.btt.show { opacity: 1; visibility: visible; transform: none; }


/* ══ 8. Sociétés & fiches ════════════════════════════════════════ */

/* Grille de cartes (accueil) : 1 colonne sur téléphone, 2 dès que la place le permet */
.company-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.25rem; }
.company-card { display: flex; flex-direction: column; }
.company-body { padding: 1.25rem 1.25rem 1.1rem; }
.company-name { font-weight: 900; font-size: 1.2rem; letter-spacing: .02em; text-transform: uppercase; }
.company-tagline { margin-top: .4rem; font-size: .92rem; color: var(--text-muted); }
.company-card .card-footer { margin-top: auto; }

/* Texte éditorial */
.prose { max-width: 68ch; }
.prose p { color: var(--text-muted); }
.prose p + p { margin-top: 1rem; }

/* Fil d'Ariane */
.breadcrumb { padding-top: .5rem; font-size: .82rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .35rem; list-style: none; color: var(--text-muted); }
.breadcrumb li { display: inline-flex; align-items: center; min-height: 2.75rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; opacity: .5; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb [aria-current] { color: var(--text); }

/* Bandeau « brouillon » (fiche contenant encore des TODO) */
.draft-banner {
  margin-top: 1rem; padding: .75rem 1rem; border-radius: var(--radius-md);
  background: var(--alert-soft); border: 1px solid rgba(255, 7, 58, .5); font-size: .85rem;
}

/* En-tête de fiche */
.company-hero { display: grid; gap: 1.75rem; padding-block: clamp(1.5rem, 5vw, 3.5rem) 1rem; }
.company-hero h1 { font-weight: 900; font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -.03em; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; }
.company-hero .hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.5rem; }

/* Chiffres clés */
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: 1px; margin-top: 1.5rem;
  overflow: hidden; background: var(--border); border: 1px solid var(--border); border-radius: 16px;
}
.fact { padding: 1rem 1.25rem; background: var(--surface); }
.fact dt { font-size: .76rem; font-weight: 700; color: var(--text-muted); }
.fact dd { margin-top: .2rem; font-size: 1.1rem; font-weight: 900; letter-spacing: -.01em; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1.1rem; list-style: none; counter-reset: service; }
.service { padding: 1.35rem; counter-increment: service; }
.service::before {
  content: counter(service, decimal-leading-zero); display: block; margin-bottom: .7rem;
  font-size: .8rem; font-weight: 900; letter-spacing: .1em; color: var(--accent-hi);
}
.service h3 { font-size: 1.05rem; font-weight: 900; line-height: 1.3; }
.service p  { margin-top: .5rem; font-size: .92rem; color: var(--text-muted); }

/* FAQ (details/summary : zéro JS, contenu indexable) */
.faq { display: grid; gap: .7rem; max-width: 800px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3rem; padding: .75rem 1.25rem; font-weight: 700; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent-hi); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 1.25rem 1.1rem; font-size: .95rem; color: var(--text-muted); }

/* Bandeau d'appel à l'action */
.cta-band { display: grid; gap: 1.1rem; padding: 1.5rem; }
.cta-band h2 { font-size: 1.3rem; font-weight: 900; line-height: 1.25; }
.cta-band p  { margin-top: .3rem; font-size: .95rem; color: var(--text-muted); }


/* ══ 9. Pages d'erreur (403 / 404) ═══════════════════════════════ */
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem; text-align: center; }
.error-box  { max-width: 480px; }
.error-code { font-weight: 900; font-size: clamp(4rem, 15vw, 7rem); line-height: 1; color: var(--text-muted); opacity: .6; }
.error-code--danger { color: var(--alert); opacity: 1; text-shadow: 0 0 28px rgba(255, 7, 58, .45); }
.error-title { margin: 1rem 0 .5rem; font-weight: 700; font-size: 1.25rem; letter-spacing: .05em; text-transform: uppercase; }
.error-text  { font-size: .9rem; color: var(--text-muted); }
.error-box .btn { margin-top: 2rem; }


/* ══ 10. Animations ══════════════════════════════════════════════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero, .card { animation: fadeUp .55s var(--ease) both; }
.section:nth-of-type(1) .card { animation-delay: .06s; }
.section:nth-of-type(2) .card { animation-delay: .14s; }
.company-card:nth-child(2)    { animation-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* ══ 11. Tablette (≥ 640 px) et PC (≥ 1024 px) ═══════════════════ */

/* — Petit téléphone (≤ 340 px) : une seule colonne de KPI — */
@media (max-width: 340px) {
  .kpis { grid-template-columns: 1fr; }
  .kpi:last-child { grid-column: auto; }
  .brand { letter-spacing: .1em; }
}

/* — Téléphone large / petite tablette (≥ 520 px) : KPI ×3 — */
@media (min-width: 520px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .kpi:last-child { grid-column: auto; }
}

/* — Tablette (≥ 640 px) — */
@media (min-width: 640px) {
  .site-nav { display: flex; gap: .15rem; margin-left: auto; }
  .lang-btn { margin-left: .5rem; }
  .brand    { font-size: 1rem; letter-spacing: .2em; }

  .pf { padding: 2rem; }
  .pf-head { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.75rem; }
  .pf-title { font-size: 1.3rem; }
  .pf-actions .btn:not(.btn--ghost) { flex: none; }
  .kpi { padding: 1.15rem 1.35rem; }
  .chart { --chart-h: 84px; gap: 4px; }
  .chart-label { font-size: .66rem; }
  .chart-col:not(:first-child):not(:last-child):not(:nth-child(4n+1)) .chart-label { visibility: visible; }   /* tous les mois */

  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 2rem 2.5rem; }
  .footer-brand { grid-column: auto; }

  .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 2rem; }
}

/* — Tablette large / PC (≥ 860 px) : fiche société sur 2 colonnes — */
@media (min-width: 860px) {
  .company-hero { grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: center; }
}

/* — PC (≥ 1024 px) — */
@media (min-width: 1024px) {
  .pf { padding: 2.5rem; }
  .pf-icon { width: 54px; height: 54px; }
  .pf-icon svg { width: 25px; height: 25px; }
  .pf-title { font-size: 1.45rem; }
  .pf-sub { font-size: .9rem; }
  .kpi { padding: 1.35rem 1.6rem; }
  .kpi-label { font-size: .82rem; }
  .chart { --chart-h: 112px; gap: 6px; margin-bottom: 1.75rem; }
  .chart-label { font-size: .7rem; }
  .company-body { padding: 1.5rem 1.5rem 1.25rem; }
}


/* ══ 12. Interactions : souris vs tactile ════════════════════════
   Les effets de survol ne s'appliquent qu'aux appareils qui savent survoler
   (évite le « survol collant » sur mobile). */
@media (hover: hover) {
  .site-nav a:hover      { color: var(--text); background: var(--surface-hi); }
  .lang-btn:hover        { background: var(--surface-hi); border-color: var(--accent); }
  .btn:hover             { background: var(--accent-hi); box-shadow: 0 0 22px -4px rgba(0, 123, 255, .65); }
  .btn--ghost:hover      { background: transparent; color: var(--text); border-color: var(--accent); box-shadow: none; }
  .btn--icon:hover       { background: var(--accent-soft); color: var(--accent-hi); border-color: var(--accent); box-shadow: none; }
  .btt:hover             { background: var(--accent-hi); }
  .bar:hover             { opacity: .75; }
  .bar.active:hover      { opacity: 1; }
  .footer-col a:hover,
  .breadcrumb a:hover    { color: var(--accent-hi); }
}
