/* ============================================================
   FK & Partners — Feuille de style principale
   Design : cabinet de conseil, sobre et premium
   Palette : bleu nuit / or / blanc cassé
   ============================================================ */

:root {
  --navy: #0b1d33;
  --navy-2: #12283f;
  --navy-3: #1a3657;
  --gold: #c8a24b;
  --gold-soft: #e6d3a3;
  --ink: #1c2733;
  --muted: #5d6b7a;
  --bg: #faf8f4;
  --white: #ffffff;
  --line: #e6e1d6;
  --radius: 6px;
  --shadow-sm: 0 2px 12px rgba(11, 29, 51, 0.08);
  --shadow-md: 0 10px 32px rgba(11, 29, 51, 0.14);
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --container: 1180px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* ---------- Typo utilitaires ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-label::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  background: var(--gold);
  margin-top: 10px;
}

.section-label.centered { text-align: center; }
.section-label.centered::after { margin: 10px auto 0; }

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 720px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header .header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.site-header.solid,
.site-header.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand-logo {
  height: 58px;
  width: auto;
  display: block;
}

.footer-logo {
  height: 66px;
}

/* ---------- Navigation ---------- */
.main-nav ul {
  display: flex;
  gap: 24px;
}

@media (min-width: 861px) {
  .main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: 8px 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  position: relative;
  z-index: 1100;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  margin: 5px auto;
  transition: 0.3s;
}

.language-menu {
  position: relative;
  margin-left: 28px;
  z-index: 1100;
}

.language-switcher {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: transparent;
  color: var(--white);
  min-width: 58px;
  padding: 8px 10px;
  border-radius: 3px;
  font: 700 0.72rem var(--font-body);
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.language-switcher:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--gold); }
.language-switcher span { color: var(--gold); font-size: 0.6rem; margin-left: 3px; }

.language-options {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 142px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.language-menu.open .language-options,
.language-menu:focus-within .language-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-options button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: 600 0.78rem var(--font-body);
  text-align: left;
  cursor: pointer;
}

.language-options button:hover,
.language-options button.active { background: var(--bg); color: var(--gold); }
.language-options button span { color: var(--muted); font-size: 0.68rem; }

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  background: var(--navy);
}

.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide.active .hero-content { animation: hero-content-in 0.8s ease both; }

@keyframes hero-content-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.92;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(8, 22, 39, 0.78) 0%, rgba(8, 22, 39, 0.52) 43%, rgba(8, 22, 39, 0.08) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -140px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(200, 162, 75, 0.35);
  border-radius: 50%;
}

.hero .container { position: relative; z-index: 2; }

.hero-content { max-width: 640px; padding: 140px 0 110px; }

.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-controls {
  position: absolute;
  z-index: 4;
  right: 24px;
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow,
.hero-dot {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.hero-arrow { width: 38px; height: 38px; border-radius: 50%; font-size: 1.1rem; }
.hero-arrow:hover { border-color: var(--gold); color: var(--gold); }
.hero-dots { display: flex; gap: 8px; }
.hero-dot { width: 28px; height: 3px; border: 0; background: rgba(255, 255, 255, 0.38); }
.hero-dot.active { background: var(--gold); }

/* ---------- Contact rapide ---------- */
.quick-contact {
  position: fixed;
  right: 0;
  bottom: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.social-rail,
.messaging-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.social-rail a,
.messaging-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(11, 29, 51, 0.18);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.social-rail a:hover,
.messaging-links a:hover {
  transform: translateY(-3px);
  background: var(--gold);
  color: var(--navy);
}

.chat-button {
  width: 58px !important;
  height: 58px !important;
  background: #178a56;
  border-color: #e5a21a;
  background: #e5a21a;
}

.social-rail svg,
.messaging-links svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.mail-button { background: var(--navy-2) !important; }

@media (max-width: 560px) {
  .quick-contact { right: 10px; bottom: 14px; }
  .social-rail a { width: 38px; height: 38px; }
  .chat-button { width: 48px !important; height: 48px !important; }
}

/* Bandeau stats */
.hero-stats {
  position: relative;
  z-index: 3;
  margin-top: -60px;
}

.hero-stats .stats-card {
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 34px 20px;
  text-align: center;
}

.stat {
  padding: 6px 14px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }

.stat .num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
}

.stat .lbl {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ---------- Bandeau page interne ---------- */
.page-banner {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 190px 0 90px;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(11, 29, 51, 0.72) 12%, rgba(11, 29, 51, 0.34) 72%),
    var(--banner-img, none) center/cover no-repeat;
  opacity: 1;
}

.page-banner .container { position: relative; z-index: 2; }

.page-banner h1 { color: var(--white); margin-bottom: 14px; }

.page-banner p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  font-size: 1.08rem;
}

.breadcrumb {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}

/* ---------- Sections génériques ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--white); }
.section.navy {
  background: var(--navy);
  color: var(--white);
}
.section.navy h2,
.section.navy h3 { color: var(--white); }
.section.navy .lead { color: rgba(255, 255, 255, 0.72); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.centered { margin: 0 auto 56px; text-align: center; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col .media {
  position: relative;
}

.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 380px;
  background:
    linear-gradient(150deg, rgba(11, 29, 51, 0.14), rgba(11, 29, 51, 0.42)),
    var(--img, var(--navy-2)) center/cover no-repeat;
  filter: brightness(1.08) saturate(1.04);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(200, 162, 75, 0.5);
  border-radius: 4px;
  pointer-events: none;
}

/* ---------- Cartes ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card .icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 1.3rem;
}

.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.96rem; }

.card.tinted {
  background: var(--navy);
  border: none;
  color: rgba(255, 255, 255, 0.8);
}
.card.tinted h3 { color: var(--white); }
.card.tinted p { color: rgba(255, 255, 255, 0.7); }

/* ---------- Listes métiers / secteurs ---------- */
.list-check li {
  position: relative;
  padding: 7px 0 7px 26px;
  color: var(--muted);
  font-size: 0.95rem;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 9px;
  height: 9px;
  background: var(--gold);
  border-radius: 2px;
  transform: rotate(45deg);
}

.metier-card {
  background: var(--white);
  border-radius: var(--radius);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.metier-card .metier-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  filter: brightness(1.08) saturate(1.05);
}

.metier-card .metier-body {
  padding: 28px 30px 34px;
}

.metier-card h3 {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.sector-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s ease;
}

.sector-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.sector-card .sector-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  filter: brightness(1.08) saturate(1.05);
}

.sector-card .sector-body {
  padding: 24px 26px 30px;
}

.sector-card .sector-tag {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.sector-card h3 { font-size: 1.15rem; margin-bottom: 14px; }

/* ---------- Processus (carrière) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 30px;
  border: 1px solid var(--line);
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-soft);
  display: block;
  margin-bottom: 14px;
  line-height: 1;
}

.step h3 { margin-bottom: 12px; }
.step .duration {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold-soft);
  padding: 5px 14px;
  border-radius: 20px;
}

/* ---------- Formulaires ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 46px 42px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid .full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.field label .req { color: var(--gold); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 162, 75, 0.18);
}

.field textarea { resize: vertical; min-height: 140px; }

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 14px;
}

.form-success {
  display: none;
  background: #e8f5ec;
  border: 1px solid #b8dfc4;
  color: #256b3d;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-top: 18px;
  font-size: 0.95rem;
}

.form-success.show { display: block; }

/* ---------- Infos contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.info-item {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.info-item:last-child { border-bottom: none; }

.info-item .info-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.info-item h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.info-item p { font-size: 1.02rem; color: var(--navy); font-weight: 500; }
.info-item a:hover { color: var(--gold); }

.map-frame {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.map-frame iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

/* ---------- Bandeau CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto 32px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #081627;
  color: rgba(255, 255, 255, 0.68);
  padding: 70px 0 0;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 50px;
}

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--gold); }

.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { max-width: 300px; }

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Animations au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .stats-card { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .stat:nth-child(2) { border-right: none; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    left: 0;
    inset: 0;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
    z-index: 1050;
  }

  .main-nav.open { transform: translateY(0); }

  .main-nav ul {
    flex-direction: column;
    gap: 26px;
    text-align: center;
  }

  .main-nav a { font-size: 1.15rem; }
  .nav-toggle { display: block; }
  .language-menu { margin-left: auto; margin-right: 14px; }

  .two-col,
  .grid-2,
  .grid-3,
  .contact-grid,
  .steps { grid-template-columns: 1fr; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 70px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 78vh; }
}

@media (max-width: 560px) {
  .grid-4,
  .form-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 32px 24px; }
  .hero-stats .stats-card { grid-template-columns: 1fr; }
  .language-menu { margin-right: 8px; }
  .language-options { right: -8px; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); padding: 14px; }
  .stat:last-child { border-bottom: none; }
}
