/* ============================================
   Meeting Interim — style.css
   Palette nickel/minerai + orange brûlé
   ============================================ */

:root {
  --nickel: #1a2e2a;
  --nickel-deep: #0f1c1a;
  --ore: #c87f3e;
  --ore-bright: #e29550;
  --bone: #f2efe9;
  --bone-dim: #d8d3c8;
  --line: rgba(242, 239, 233, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--nickel);
  color: var(--bone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 { margin: 0 0 16px; font-weight: 800; letter-spacing: -0.02em; color: var(--bone); }
p { margin: 0 0 16px; color: var(--bone-dim); }
a { color: inherit; }
ul { color: var(--bone-dim); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.96rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ore); color: var(--nickel-deep); }
.btn-primary:hover { background: var(--ore-bright); }
.btn-ghost { background: transparent; color: var(--bone); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ore); }

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

/* ---------- Navigation ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 28, 26, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--bone);
}
.logo-icon { width: 34px; height: 34px; object-fit: contain; }
.logo-stack { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text { font-size: 1.05rem; font-weight: 800; }
.logo-nav-tagline {
  font-size: 0.62rem;
  font-weight: 500;
  font-style: italic;
  color: var(--bone-dim);
  opacity: 0.85;
}
.logo-tagline {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--bone-dim);
  opacity: 0.8;
  margin: 4px 0 12px;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  text-decoration: none;
  color: var(--bone-dim);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.actif { color: var(--bone); }
.nav-links a.actif { color: var(--ore-bright); }
.nav-phone { color: var(--bone-dim); }
.nav-cta {
  background: var(--ore);
  color: var(--nickel-deep) !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--ore-bright); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 150px 0 110px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--nickel);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(100deg, rgba(15,28,26,0.94) 0%, rgba(15,28,26,0.88) 45%, rgba(15,28,26,0.68) 100%), var(--hero-img, none);
  background-size: cover;
  background-position: center;
  background-color: var(--nickel);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-image: repeating-linear-gradient(115deg, rgba(200,127,62,0.09) 0px, rgba(200,127,62,0.09) 1px, transparent 1px, transparent 46px);
}
.hero .wrap { position: relative; z-index: 1; max-width: 760px; }
.hero .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ore-bright);
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
}
.hero h1 em { color: var(--ore-bright); font-style: normal; }
.hero .lead { font-size: 1.08rem; max-width: 620px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Bannière de page ---------- */
.page-banner {
  position: relative;
  overflow: hidden;
  padding: 90px 0 60px;
  border-bottom: 1px solid var(--line);
  background: var(--nickel);
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(100deg, rgba(15,28,26,0.94) 5%, rgba(15,28,26,0.8) 100%), var(--banner-img, none);
  background-size: cover;
  background-position: center;
  background-color: var(--nickel);
}
.page-banner .wrap { position: relative; z-index: 1; max-width: 720px; }
.page-banner h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); line-height: 1.12; }
.page-banner .lead { font-size: 1.02rem; }

/* ---------- Bande CTA (bas de page) ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  text-align: center;
  background: var(--nickel-deep);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(700px 400px at 50% 0%, rgba(200,127,62,0.2), transparent 65%), linear-gradient(rgba(15,28,26,0.94), rgba(15,28,26,0.94)), var(--cta-img, none);
  background-size: cover;
  background-position: center;
  background-color: var(--nickel-deep);
}
.cta-band .wrap { position: relative; z-index: 1; max-width: 620px; }
.cta-band h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
.cta-band p { font-size: 1.02rem; margin-bottom: 28px; }

/* ---------- Stats strip ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.strip .num { font-size: 2.2rem; font-weight: 800; color: var(--ore-bright); letter-spacing: -0.02em; }
.strip .lbl { font-size: 0.86rem; color: var(--bone-dim); margin-top: 4px; }

/* ---------- Recrutement en cours ---------- */
.jobs-now {
  background: var(--nickel-deep);
  padding: 56px 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.jobs-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.job-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--ore);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--bone);
}
.job-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ore-bright);
  flex-shrink: 0;
}

/* ---------- Sections génériques ---------- */
section { padding: 88px 0; }
.sec-head { max-width: 640px; margin: 0 auto 48px; text-align: left; }
.sec-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); }

.how { background: var(--nickel-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Secteurs ---------- */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.sector {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--nickel-deep);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.sector.in-view { opacity: 1; transform: translateY(0); }
.sector:hover {
  border-color: var(--ore);
  box-shadow: 0 18px 34px rgba(0,0,0,0.35);
}
.sector:hover .sector-photo { transform: scale(1.05); }
.sector-photo {
  height: 180px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  background-color: var(--nickel-deep);
  transition: transform 0.4s ease;
}
.sector-photo.placeholder {
  background-image: radial-gradient(circle at 50% 40%, rgba(200,127,62,0.18), var(--nickel-deep) 70%);
}
.sector-body { padding: 24px; }
.sector .idx { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ore); font-weight: 700; margin-bottom: 10px; }
.sector h3 { font-size: 1.2rem; margin-bottom: 10px; }
.sector p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Étapes / process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.step.in-view { opacity: 1; transform: translateY(0); }
.step-n {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--ore);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  opacity: 0.9;
}
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { font-size: 0.94rem; }

/* ---------- Citation "voice" ---------- */
.voice {
  padding: 72px 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.voice .wrap { max-width: 760px; }
.voice p {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-style: italic;
  color: var(--bone);
  line-height: 1.5;
  margin-bottom: 20px;
}
.voice-signature { color: var(--ore-bright); font-weight: 700; font-size: 0.92rem; }

/* ---------- Split (recrutement) ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.split ul { list-style: none; padding: 0; margin: 24px 0 0; }
.split ul li {
  padding: 10px 0 10px 26px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
  color: var(--bone-dim);
}
.split ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ore);
}

.panel {
  background: var(--nickel-deep);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
}
.panel h3 { font-size: 1.15rem; margin-bottom: 12px; }

/* ---------- Prestations ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--nickel-deep);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-card.in-view { opacity: 1; transform: translateY(0); }
.service-card:hover {
  border-color: var(--ore);
  box-shadow: 0 18px 34px rgba(0,0,0,0.35);
}
.service-card:hover .photo { transform: scale(1.05); }
.service-card .photo {
  height: 190px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  background-color: var(--nickel-deep);
  transition: transform 0.4s ease;
}
.service-card .body { padding: 26px; }
.service-card .idx { font-size: 0.78rem; letter-spacing: 0.12em; color: var(--ore); font-weight: 700; margin-bottom: 8px; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service-card ul { list-style: none; padding: 0; margin: 16px 0 0; }
.service-card ul li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 0.9rem;
  color: var(--bone-dim);
}
.service-card ul li::before { content: "—"; position: absolute; left: 0; color: var(--ore); }

/* ---------- Nos offres ---------- */
.offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.offer-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--nickel-deep);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.offer-card.in-view { opacity: 1; transform: translateY(0); }
.offer-card:hover {
  border-color: var(--ore);
  box-shadow: 0 18px 34px rgba(0,0,0,0.35);
}
.offer-card:hover .photo { transform: scale(1.05); }
.offer-card.new::before {
  content: "Nouveau";
  position: absolute;
  top: 16px;
  right: -32px;
  z-index: 2;
  background: var(--ore);
  color: var(--nickel-deep);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 38px;
  transform: rotate(35deg);
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}
.offer-card .photo {
  height: 200px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
  background-color: var(--nickel-deep);
  transition: transform 0.4s ease;
}
.offer-card .body { padding: 26px; }
.offer-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.offer-card .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.offer-card .badge {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ore-bright);
  border: 1px solid var(--ore);
  border-radius: 999px;
  padding: 4px 12px;
}
.offer-card p { font-size: 0.92rem; margin-bottom: 18px; }
.offer-card .btn { padding: 10px 20px; font-size: 0.88rem; }

/* ---------- Infos intérimaires ---------- */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.info-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  background: var(--nickel-deep);
}
.info-box h3 { font-size: 1.1rem; margin-bottom: 12px; }
.info-box ul { list-style: none; padding: 0; margin: 0; }
.info-box ul li { padding: 6px 0; font-size: 0.94rem; color: var(--bone-dim); border-bottom: 1px solid var(--line); }
.info-box ul li:last-child { border-bottom: none; }
.info-note { font-size: 0.84rem; font-style: italic; color: var(--bone-dim); opacity: 0.75; margin-top: 10px; margin-bottom: 0; }

/* ---------- Footer ---------- */
footer {
  background: var(--nickel-deep);
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
}
.foot-in {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}
footer .logo { font-size: 1rem; margin-bottom: 6px; }
.foot-links { display: flex; flex-direction: column; gap: 10px; }
.foot-links a { text-decoration: none; color: var(--bone-dim); font-size: 0.92rem; }
.foot-links a:hover { color: var(--bone); }
.foot-contact a { text-decoration: none; color: var(--bone-dim); font-size: 0.92rem; line-height: 2; }
.foot-contact a:hover { color: var(--bone); }

/* ---------- Assistant questions fréquentes ---------- */
#faq-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--ore);
  color: var(--nickel-deep);
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}
#faq-toggle:hover { background: var(--ore-bright); transform: translateY(-2px); }
#faq-toggle.faq-hidden { display: none; }

#faq-panel {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 91;
  width: 340px;
  max-width: calc(100vw - 40px);
  max-height: min(520px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  background: var(--nickel-deep);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
#faq-panel.faq-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

#faq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  color: var(--bone);
}
#faq-close {
  background: none;
  border: none;
  color: var(--bone-dim);
  font-size: 1rem;
  cursor: pointer;
}
#faq-close:hover { color: var(--bone); }

#faq-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-msg {
  font-size: 0.88rem;
  line-height: 1.5;
  padding: 10px 13px;
  border-radius: 12px;
  max-width: 88%;
}
.faq-msg a { color: var(--ore-bright); }
.faq-bot { background: rgba(242,239,233,0.06); color: var(--bone-dim); align-self: flex-start; border-bottom-left-radius: 4px; }
.faq-user { background: var(--ore); color: var(--nickel-deep); align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 600; }

#faq-suggestions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.faq-suggestion {
  text-align: left;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--bone-dim);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.faq-suggestion:hover { border-color: var(--ore); color: var(--bone); }

#faq-inputrow {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}
#faq-input {
  flex: 1;
  background: rgba(242,239,233,0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--bone);
  font-size: 0.86rem;
}
#faq-input:focus { outline: none; border-color: var(--ore); }
#faq-send {
  background: var(--ore);
  color: var(--nickel-deep);
  border: none;
  border-radius: 8px;
  width: 40px;
  font-size: 1rem;
  cursor: pointer;
}
#faq-send:hover { background: var(--ore-bright); }

@media (max-width: 480px) {
  #faq-panel { right: 12px; left: 12px; width: auto; bottom: 84px; }
  #faq-toggle { right: 16px; bottom: 16px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .sectors, .services, .steps, .info-grid, .offers { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .foot-in { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-links { gap: 14px; }
  .nav-phone { display: none; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .nav-in { padding: 14px 20px; }
  .logo-text, .logo-nav-tagline, .nav-phone { display: none; }
  .hero { padding: 100px 0 70px; }
  .page-banner { padding: 70px 0 44px; }
  .strip { grid-template-columns: repeat(2, 1fr); }
}
