/* Ridgeway Conseil Emploi — Brass Mechanism theme */

:root {
  --gold: #B8860B;
  --gold-light: #D4AF37;
  --gold-dark: #8B6914;
  --brass: #C9A227;
  --tobacco: #5C4033;
  --tobacco-light: #7A5C4A;
  --oxidized: #6B8E6B;
  --charcoal: #2C2416;
  --charcoal-mid: #3D3428;
  --steel: #8A8A8A;
  --steel-light: #B0B0B0;
  --ivory: #F5F0E6;
  --ivory-dark: #E8DFD0;
  --walnut: #4A3728;
  --error: #8B3A3A;
  --success: #4A6B4A;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-mono: "IBM Plex Mono", monospace;
  --radius: 2px;
  --shadow: 0 4px 24px rgba(44, 36, 22, 0.18);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  margin: 0;
  font-family: var(--font-serif);
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 0.5rem 1rem;
  z-index: 9999;
}

.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  background: var(--charcoal);
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ivory);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.logo-mark { color: var(--gold); flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--gold);
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a {
  color: var(--ivory-dark);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-light);
}

.nav-cta {
  border: 1px solid var(--gold);
  padding: 0.4rem 0.9rem !important;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--charcoal);
    border-bottom: 2px solid var(--gold);
    padding: 1rem 1.5rem;
    display: none;
  }

  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--charcoal);
  border: 1px solid var(--gold-dark);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--charcoal);
}

.btn-secondary {
  background: transparent;
  color: var(--tobacco);
  border: 1px solid var(--tobacco);
}

.btn-secondary:hover {
  background: var(--tobacco);
  color: var(--ivory);
}

.btn-gear::before {
  content: "⚙";
  display: inline-block;
  transition: transform 0.5s ease;
}

.btn-gear:hover::before,
.btn-gear:focus::before {
  transform: rotate(90deg);
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: var(--ivory-dark);
  border-top: 3px solid var(--gold);
  margin-top: 4rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold-light);
  margin: 0 0 0.5rem;
}

.footer-tagline { margin: 0; font-size: 0.95rem; opacity: 0.85; }

.site-footer h2 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin: 0 0 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li { margin-bottom: 0.4rem; }

.site-footer a {
  color: var(--ivory-dark);
  text-decoration: none;
}

.site-footer a:hover { color: var(--gold-light); }

.site-footer address { font-style: normal; }

.footer-bottom {
  border-top: 1px solid var(--walnut);
  text-align: center;
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--charcoal-mid);
  border-top: 2px solid var(--gold);
  padding: 1.25rem 1.5rem;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.cookie-banner[hidden] { display: none; }

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-inner p {
  margin: 0;
  flex: 1;
  min-width: 200px;
  color: var(--ivory);
  font-size: 0.9rem;
}

.cookie-inner a { color: var(--gold-light); }

.cookie-actions { display: flex; gap: 0.75rem; }

/* Layout utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--ivory-dark);
  border-top: 1px solid rgba(184, 134, 11, 0.2);
  border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title .index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.5rem;
}

/* Hero — asymmetric composition */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
  background: var(--charcoal);
  color: var(--ivory);
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2rem 3rem 3rem;
  position: relative;
}

.hero-content::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: 2rem;
  width: 60px;
  height: 60px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0.3;
}

.hero-index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1.25rem;
  color: var(--ivory);
}

.hero-lead {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 32ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  position: relative;
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(15%) contrast(1.05);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--charcoal) 0%, transparent 30%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual { height: 280px; order: -1; }

  .hero-content { padding: 2rem 1.5rem; }
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--ivory);
  border: 1px solid rgba(184, 134, 11, 0.3);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--charcoal-mid);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(10%);
}

.card-body { padding: 1.5rem; }

.card-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.card h3 { margin: 0 0 0.75rem; }

.card p { margin: 0 0 1rem; font-size: 0.95rem; }

.card-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--gold-dark);
}

.card-link:hover { color: var(--gold); }

/* Page header */
.page-header {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 3rem 0;
  border-bottom: 2px solid var(--gold);
}

.page-header h1 { margin: 0 0 0.75rem; color: var(--ivory); }

.page-header .lead {
  margin: 0;
  opacity: 0.85;
  max-width: 60ch;
}

.page-header-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.page-header-with-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border: 1px solid var(--gold);
  filter: sepia(12%);
}

@media (max-width: 768px) {
  .page-header-with-image { grid-template-columns: 1fr; }
}

/* Prose */
.prose {
  max-width: 68ch;
}

.prose p { margin: 0 0 1.25rem; }

.prose ul, .prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.prose li { margin-bottom: 0.4rem; }

/* Testimonials */
.testimonial {
  background: var(--ivory);
  border-left: 3px solid var(--gold);
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.testimonial blockquote {
  margin: 0 0 1rem;
  font-style: italic;
  font-size: 1.05rem;
}

.testimonial cite {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-style: normal;
  color: var(--tobacco);
}

/* Forms */
.form-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .form-section { grid-template-columns: 1fr; }
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
  color: var(--tobacco);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--steel);
  background: var(--ivory);
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--charcoal);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-error {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.3rem;
  display: none;
}

.form-group.is-invalid .form-error { display: block; }

.form-group.is-invalid input,
.form-group.is-invalid select,
.form-group.is-invalid textarea {
  border-color: var(--error);
}

.form-status {
  padding: 1rem;
  margin-top: 1rem;
  display: none;
}

.form-status.is-success {
  display: block;
  background: rgba(74, 107, 74, 0.15);
  border: 1px solid var(--success);
  color: var(--success);
}

.form-status.is-error {
  display: block;
  background: rgba(139, 58, 58, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
}

.contact-block {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 2rem;
  border: 1px solid var(--gold);
}

.contact-block h2 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin: 0 0 1.5rem;
}

.contact-block address {
  font-style: normal;
  line-height: 1.8;
}

.contact-block a { color: var(--gold-light); }

/* Pricing table */
.pricing-block {
  border: 1px solid rgba(184, 134, 11, 0.4);
  padding: 2rem;
  margin-bottom: 1.5rem;
  background: var(--ivory);
}

.pricing-block h3 {
  margin: 0 0 0.5rem;
  color: var(--tobacco);
}

.pricing-amount {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}

.pricing-note {
  font-size: 0.9rem;
  color: var(--tobacco-light);
  font-style: italic;
}

/* Process steps */
.process-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(184, 134, 11, 0.2);
  counter-increment: step;
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}

.process-step h3 { margin: 0 0 0.5rem; }

.process-step p { margin: 0; }

/* Legal pages */
.legal-content {
  max-width: 72ch;
  padding: 3rem 0 4rem;
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.3rem;
  color: var(--tobacco);
}

.legal-content h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

/* Cookie table */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid rgba(184, 134, 11, 0.3);
  padding: 0.75rem;
  text-align: left;
}

.cookie-table th {
  background: var(--ivory-dark);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 6rem 1.5rem;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
}

/* Service detail */
.service-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding: 3rem 0;
}

@media (max-width: 768px) {
  .service-detail-grid { grid-template-columns: 1fr; }
}

.service-sidebar {
  background: var(--ivory-dark);
  border: 1px solid rgba(184, 134, 11, 0.3);
  padding: 1.5rem;
  height: fit-content;
}

.service-sidebar dt {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  margin-top: 1rem;
}

.service-sidebar dt:first-child { margin-top: 0; }

.service-sidebar dd {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}

.service-hero-image {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-bottom: 2px solid var(--gold);
  filter: sepia(12%);
}

/* Instrument decoration */
.instrument-border {
  position: relative;
  padding: 2rem;
}

.instrument-border::before,
.instrument-border::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid var(--gold);
}

.instrument-border::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.instrument-border::after { bottom: 0; right: 0; border-left: none; border-top: none; }

/* Stats strip — qualitative */
.evidence-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 2rem;
  background: var(--charcoal);
  color: var(--ivory);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

.evidence-item {
  text-align: center;
  max-width: 200px;
}

.evidence-item .label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.3rem;
}

.evidence-item .value {
  font-size: 1rem;
  opacity: 0.9;
}
