/* ORVANCE, charte graphique V1.0 (novembre 2026) */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --nuit: #07192F;
  --or: #D9951B;
  --or-lumineux: #F2BC50;
  --ivoire: #FAFAF7;
  --ardoise: #566378;
  --blanc: #FFFFFF;
  --ligne: #E3E5E2;
  --surface: #F0F1EE;
  --nuit-2: #0D2340;

  --font: "Inter", "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 14px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivoire);
  color: var(--nuit);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--nuit); color: var(--blanc); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 4px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ivoire) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-top: 6px solid var(--or);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--ligne), 0 8px 24px -18px rgba(7, 25, 47, .35); }
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid var(--ligne);
}
.site-header.is-scrolled .header-inner { border-bottom-color: transparent; }
.brand img { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  text-decoration: none; font-size: .875rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ardoise); transition: color .2s;
}
.nav a:hover { color: var(--nuit); }
.nav a.nav-cta {
  color: var(--blanc); background: var(--nuit); padding: 11px 20px; border-radius: 10px;
  transition: background .2s;
}
.nav a.nav-cta:hover { background: var(--nuit-2); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  position: relative; border-radius: 10px;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--nuit); border-radius: 2px;
  transition: transform .25s ease, top .25s ease;
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 10px;
  font: inherit; font-size: .9375rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--nuit); color: var(--blanc); }
.btn-primary:hover { background: var(--nuit-2); }
.btn-ghost { color: var(--nuit); border-color: rgba(7, 25, 47, .2); background: transparent; }
.btn-ghost:hover { border-color: var(--nuit); }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center; gap: clamp(32px, 5vw, 72px);
}
.eyebrow, .label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--nuit);
}
.eyebrow::before, .label::before {
  content: ""; width: 28px; height: 2px; background: var(--or); border-radius: 2px; flex: none;
}
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
  line-height: 1.08; letter-spacing: -0.028em;
  text-wrap: balance;
}
.lead {
  margin-top: 26px; max-width: 36rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--ardoise);
}
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% 18%;
  background: radial-gradient(closest-side, rgba(242, 188, 80, .22), rgba(242, 188, 80, 0) 70%);
  filter: blur(10px);
}
.emblem { position: relative; width: min(100%, 400px); animation: breathe 9s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.012); }
}

.pillars {
  margin-top: clamp(48px, 7vw, 88px); padding-top: 22px; border-top: 1px solid var(--ligne);
  display: flex; flex-wrap: wrap; gap: 8px 0;
  font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ardoise);
}
.pillars span { display: inline-flex; align-items: center; }
.pillars span + span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--or); margin: 0 16px;
}

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--blanc); border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.section-head { max-width: 46rem; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2, .contact-text h2 {
  margin-top: 18px; font-size: clamp(1.9rem, 3.8vw, 3rem); text-wrap: balance;
}
.section-sub { margin-top: 18px; font-size: 1.125rem; color: var(--ardoise); max-width: 40rem; }

/* Approche */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px);
}
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--or); }
.step-num {
  display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; color: var(--ardoise);
}
.step h3 { margin-top: 14px; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em; }
.step-lead { margin-top: 12px; font-weight: 600; font-size: 1.0625rem; line-height: 1.5; }
.step p:last-child { margin-top: 12px; color: var(--ardoise); font-size: 1rem; }

/* Expertise */
.grid-6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  background: var(--ivoire); border: 1px solid var(--ligne); border-radius: var(--radius);
  padding: 30px 28px 32px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(217, 149, 27, .45); box-shadow: 0 18px 40px -28px rgba(7, 25, 47, .45); }
.icon { width: 34px; height: 34px; fill: none; stroke: var(--or); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon .dot { fill: var(--or); stroke: none; }
.card h3 { margin-top: 22px; font-size: 1.1875rem; letter-spacing: -0.01em; }
.card p { margin-top: 10px; color: var(--ardoise); font-size: .98rem; }

/* Gains */
.gains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 5vw, 72px); }
.gain { padding: 30px 0; border-top: 1px solid var(--ligne); }
.gain:nth-last-child(-n+2) { border-bottom: 1px solid var(--ligne); }
.gain h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 700; letter-spacing: -0.015em; }
.gain h3::before { content: "«\00a0"; color: var(--or); }
.gain h3::after { content: "\00a0»"; color: var(--or); }
.gain p { margin-top: 10px; color: var(--ardoise); }

/* Suisse romande */
.terrain-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.terrain h2 { margin-top: 18px; font-size: clamp(1.9rem, 3.6vw, 2.9rem); text-wrap: balance; }
.terrain-card { background: var(--nuit); color: var(--blanc); border-radius: 18px; padding: clamp(28px, 4vw, 44px); display: grid; gap: 26px; justify-items: start; box-shadow: 0 30px 60px -40px rgba(7, 25, 47, .6); }
.terrain-claim { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.terrain-claim span { color: var(--or-lumineux); }
.btn-gold { background: var(--or-lumineux); color: var(--nuit); }
.btn-gold:hover { background: #F6CB72; }

/* Band */
.band { background: var(--nuit); color: var(--blanc); padding: clamp(72px, 10vw, 120px) 0; overflow: hidden; }
.band-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 6vw, 88px); }
.band-emblem { width: min(100%, 340px); justify-self: center; }
.band-title {
  font-size: clamp(2.2rem, 4.6vw, 3.75rem); text-transform: uppercase; line-height: 1.04; letter-spacing: -0.01em;
}
.band-title span { color: var(--or-lumineux); }
.band-text p { margin-top: 28px; max-width: 34rem; font-size: 1.125rem; line-height: 1.65; color: rgba(255, 255, 255, .82); }

/* Contact */
.contact-inner { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact-direct { margin-top: 24px; color: var(--ardoise); }
.contact-direct a { color: var(--nuit); font-weight: 600; text-decoration-color: var(--or); text-underline-offset: 4px; }
.contact-form {
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: 18px;
  padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px;
  box-shadow: 0 24px 60px -44px rgba(7, 25, 47, .5);
}
.field { display: grid; gap: 8px; }
.field label { font-size: .875rem; font-weight: 600; color: var(--nuit); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--nuit);
  background: var(--ivoire); border: 1px solid #D5D9D4; border-radius: 10px; padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--nuit); background: var(--blanc); box-shadow: 0 0 0 3px rgba(217, 149, 27, .25);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: #B4472F; }
.form-status { min-height: 1.4em; font-size: .9375rem; color: var(--ardoise); }
.form-status.is-error { color: #A13A24; }

/* Footer */
.site-footer { background: var(--nuit); color: rgba(255, 255, 255, .78); padding: 64px 0 48px; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-logo { width: 320px; }
.footer-meta { display: grid; gap: 18px; justify-items: end; text-align: right; }
.footer-tagline { color: var(--blanc); font-weight: 500; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: flex-end; }
.footer-nav a { text-decoration: none; font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.footer-nav a:hover { color: var(--or-lumineux); }
.footer-copy { font-size: .875rem; color: rgba(255, 255, 255, .55); }
.footer-social { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .18); transition: color .2s, border-color .2s; }
.footer-social:hover { color: var(--or-lumineux); border-color: var(--or-lumineux); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.linkedin-link { margin-top: 26px; display: inline-flex; align-items: center; gap: 12px; color: var(--nuit); font-weight: 600; text-decoration: none; padding: 12px 18px 12px 14px; border: 1px solid #D5D9D4; border-radius: 10px; background: var(--blanc); transition: border-color .2s, box-shadow .2s; }
.linkedin-link:hover { border-color: var(--nuit); box-shadow: 0 10px 24px -18px rgba(7, 25, 47, .5); }
.linkedin-link svg { width: 22px; height: 22px; fill: #0A66C2; flex: none; }

/* Reveal on scroll (only when JS is active) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .card.reveal.is-visible { transition: opacity .7s ease, transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.js .card.reveal.is-visible:hover { transform: translateY(-3px); }
@media print { .js .reveal { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .emblem { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card:hover { transition: none; transform: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivoire); border-bottom: 1px solid var(--ligne);
    padding: 8px var(--gutter) 20px;
    box-shadow: 0 18px 30px -24px rgba(7, 25, 47, .4);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--ligne); font-size: .9375rem; }
  .nav a.nav-cta { margin-top: 16px; text-align: center; border-bottom: 0; padding: 14px 20px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .emblem { width: min(64%, 280px); }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .gains { grid-template-columns: 1fr; }
  .gain:nth-last-child(-n+2) { border-bottom: 0; }
  .gain:last-child { border-bottom: 1px solid var(--ligne); }
  .band-inner { grid-template-columns: 1fr; }
  .terrain-inner { grid-template-columns: 1fr; }
  .band-emblem { width: min(60%, 240px); }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { justify-items: start; text-align: left; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .grid-6 { grid-template-columns: 1fr; }
  .brand img { height: 46px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .pillars { flex-direction: column; gap: 10px; }
  .pillars span::before,
  .pillars span + span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--or); margin: 0 12px 0 0; }
}
