/* ============================================================
   Souvio Labs — feuille de style partagée
   Reprend les jetons de la page d'accueil et les étend
   aux pages Fabricants, Technologie et Entreprise.
   ============================================================ */

:root {
  --bg-light: #F9F9FB;
  --text-dark: #121214;
  --text-muted: #5A5A64;
  --accent-warm: #E27D43;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.8);
  --hairline: rgba(0, 0, 0, 0.07);

  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.ambient-light {
  position: fixed; top: -10%; left: 50%;
  width: 80vw; height: 80vw; max-width: 800px; max-height: 800px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(226,125,67,0.15) 0%, rgba(249,249,251,0) 70%);
  border-radius: 50%; z-index: -1;
  animation: pulse 10s ease-in-out infinite alternate;
}
@keyframes pulse {
  0%   { transform: translateX(-50%) scale(0.9); opacity: 0.8; }
  100% { transform: translateX(-50%) scale(1.1); opacity: 1; }
}

/* ---------- Navigation ---------- */
nav {
  position: fixed; top: 0; width: 100%;
  padding: 24px 5vw;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 100;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(249, 249, 251, 0.8);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}
.logo-container {
  display: flex; align-items: center; gap: 12px;
  font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; font-size: 14px;
  color: var(--text-dark); text-decoration: none;
}
.house-icon {
  width: 24px; height: 24px;
  stroke: var(--text-dark); stroke-width: 1.5; fill: none;
  stroke-linecap: square; stroke-linejoin: miter;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 12px; font-weight: 300; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
  padding-bottom: 3px; border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text-dark); border-bottom-color: var(--accent-warm); }
.nav-links a.current { color: var(--text-dark); border-bottom-color: var(--accent-warm); }

.lang-toggle {
  font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.12em;
  background: none; border: 1px solid rgba(0,0,0,0.12); border-radius: 100px;
  padding: 6px 14px; cursor: pointer; color: var(--text-muted);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.lang-toggle:hover, .lang-toggle:focus-visible { border-color: var(--accent-warm); color: var(--accent-warm); }

/* ---------- Structure ---------- */
main { padding-top: 12vh; }

section {
  padding: 8vh 5vw;
  max-width: 1280px;
  margin: 0 auto;
}
section.hero { padding-top: 10vh; padding-bottom: 4vh; text-align: center; display: flex; flex-direction: column; align-items: center; }

.pill {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em;
  padding: 8px 16px; border: 1px solid rgba(0,0,0,0.1); border-radius: 100px;
  margin-bottom: 40px; font-weight: 500; color: var(--accent-warm);
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.4vw, 76px);
  font-weight: 300; line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 30px; max-width: 940px;
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent-warm); }

.lead {
  font-size: clamp(16px, 1.5vw, 21px); line-height: 1.65;
  color: var(--text-muted); max-width: 680px; font-weight: 300;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 300; line-height: 1.06; letter-spacing: -0.02em;
}

.kicker {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--accent-warm); margin-bottom: 18px; font-weight: 500;
}

.rule { display: block; width: 42px; height: 1px; background: var(--accent-warm); margin: 26px 0; }

.body-copy {
  color: var(--text-muted); font-size: 17px; line-height: 1.8; font-weight: 300; max-width: 680px;
}
.body-copy strong { color: var(--text-dark); font-weight: 500; }
.body-copy + .body-copy { margin-top: 18px; }

/* ---------- Blocs deux colonnes ---------- */
.split {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 7vw;
  align-items: start; padding: 76px 0; border-top: 1px solid var(--hairline);
}
.split:last-of-type { border-bottom: 1px solid var(--hairline); }

/* ---------- Grilles ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--hairline); border: 1px solid var(--hairline); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--hairline); border: 1px solid var(--hairline); }
.cell { padding: 40px; background: rgba(249,249,251,0.82); transition: background 0.4s ease; }
.cell:hover { background: rgba(255,255,255,0.95); }
.cell h3 { font-family: var(--font-serif); font-size: 30px; line-height: 1.08;
  font-weight: 400; margin-bottom: 18px; }
.cell p { color: var(--text-muted); font-size: 14.5px; line-height: 1.75; font-weight: 300; }
.cell .step { font-size: 10px; letter-spacing: 0.18em; color: var(--accent-warm); margin-bottom: 42px; display: block; }

/* ---------- Panneau verre ---------- */
.panel {
  padding: 64px 5vw; margin: 6vh 0;
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(0,0,0,0.06); border-radius: 30px;
  box-shadow: inset 0 0 35px rgba(255,255,255,0.8);
}
.panel-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 48px; padding-bottom: 20px; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.panel-head span { font-family: var(--font-serif); font-size: 30px; }
.panel-head small { color: var(--text-muted); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.16em; }

/* ---------- Mesures ---------- */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.figure .value { font-family: var(--font-serif); font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 300; color: var(--accent-warm); line-height: 1; letter-spacing: -0.02em; }
.figure .label { font-size: 13px; font-weight: 500; margin: 14px 0 8px; }
.figure .note { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; font-weight: 300; }

/* ---------- Liste définitions ---------- */
.deflist { border-top: 1px solid var(--hairline); }
.deflist-row {
  display: grid; grid-template-columns: 0.32fr 0.68fr; gap: 4vw;
  padding: 26px 0; border-bottom: 1px solid var(--hairline); align-items: start;
}
.deflist-row dt { font-size: 15px; font-weight: 500; }
.deflist-row dd { color: var(--text-muted); font-size: 15px; line-height: 1.7; font-weight: 300; }

/* ---------- Appel à l'action ---------- */
.cta { text-align: center; padding: 12vh 5vw 8vh; }
.cta h2 { margin-bottom: 26px; }
.btn {
  display: inline-block; margin-top: 34px;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  color: var(--bg-light); background: var(--text-dark);
  padding: 17px 38px; border-radius: 100px; text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}
.btn:hover, .btn:focus-visible { background: var(--accent-warm); transform: translateY(-2px); }
.btn-ghost { background: none; color: var(--text-dark); border: 1px solid rgba(0,0,0,0.15); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: none; border-color: var(--accent-warm); color: var(--accent-warm); }

/* ---------- Pied de page ---------- */
footer {
  padding: 60px 5vw; text-align: center;
  border-top: 1px solid rgba(0,0,0,0.05); margin-top: 8vh;
  color: var(--text-muted); font-size: 13px; font-weight: 300; letter-spacing: 0.05em;
}
footer a { color: var(--text-muted); text-decoration: none; border-bottom: 1px solid rgba(0,0,0,0.12); }
footer a:hover, footer a:focus-visible { color: var(--accent-warm); border-bottom-color: var(--accent-warm); }
.footer-legal { display: block; margin-top: 14px; opacity: 0.7; font-size: 12px; }

/* ---------- Apparition ---------- */
/* Le contenu reste visible si le script ne s'exécute pas. */
.js .reveal { opacity: 0; transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.16,1,0.3,1), transform 1.2s cubic-bezier(0.16,1,0.3,1); }
.js .reveal.visible { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 2px solid var(--accent-warm); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .ambient-light { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Adaptatif ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 34px; padding: 54px 0; }
  .figures { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .deflist-row { grid-template-columns: 1fr; gap: 10px; }
  .panel { padding: 44px 26px; }
  .panel-head { display: block; }
  .panel-head small { display: block; margin-top: 10px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 11px; }
}
@media (max-width: 620px) {
  .nav-links a.hide-sm { display: none; }
  .figures { grid-template-columns: 1fr; }
  main { padding-top: 14vh; }
}
