/* ============================================================
   VARIABLES
============================================================ */
:root {
  --bg:           #e7e6d3;
  --surface:      #FFFFFF;
  --border:       #d9d7c4;
  --text:         #231f20;
  --muted:        #5c5850;
  --accent:       #231f20;
  --accent-hover: #3a3436;
  --tag-bg:       #f0efe2;
  --tag-text:     #231f20;
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    14px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.07);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.09);
  --nav-height:   60px;
  --max-w:        1080px;
  --pad:          24px;
}

/* ============================================================
   RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ============================================================
   CONTAINER
============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}
.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.navbar__brand {
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 1.05rem;
  color: var(--accent);
}
.navbar__links {
  display: flex;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 500;
  flex: 1;
  justify-content: center;
}
.navbar__links a:hover { color: var(--accent-hover); }

.navbar__lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--muted);
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.lang-btn.is-active,
.lang-btn:hover {
  color: var(--text);
  background: var(--tag-bg);
}
.lang-sep { color: var(--muted); }

.mobile-lang {
  display: flex;
  gap: 6px;
  padding: 12px 0;
  justify-content: center;
}

.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 6px;
}
.navbar__burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.navbar__mobile {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px var(--pad);
}
.navbar__mobile.is-open { display: flex; }
.mobile-link {
  padding: 10px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.mobile-link:last-of-type { border-bottom: none; }

/* ============================================================
   BANNER / HERO
============================================================ */
.banner {
  background: linear-gradient(135deg, #231f20 0%, #2a2727 100%);
  padding: 80px 0;
  width: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
}

.banner .container {
  max-width: 900px;
  padding: 0 48px;
}

.banner__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}

.banner__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bg);
  opacity: 0.65;
}

.banner__title {
  font-family: 'Anton', sans-serif;
  font-weight: 600;
  font-size: 3.2rem;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: var(--bg);
}

.banner__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: var(--bg);
  opacity: 0.85;
  max-width: 620px;
  line-height: 1.6;
}

.banner__cta-group {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn--solid-light {
  background: var(--bg);
  color: var(--text);
}
.btn--solid-light:hover { 
  background: #d9d7c4; 
}

.btn--solid-light-muted {
  background: rgba(35, 31, 32, 1);
  color: rgba(217, 215, 196, 1);
  border: 1px solid rgba(217, 215, 196, 1) !important;
}


.btn--outline-light {
  background: var(--bg);
  border: 1.5px solid var(--bg);
  color: var(--bg);
}

/* ============================================================
   SECTION HEADER — CENTRER
============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   SECTIONS GÉNÉRALES
============================================================ */
.section { padding: 64px 0; }
.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.section-title {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}
.section-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 560px;
}
.section-header { margin-bottom: 32px; }

/* ============================================================
   ABOUT
============================================================ */
.about__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}
.about__image img {
  width: 100%;
  box-shadow: var(--shadow-md);
}
.about__content p { margin-bottom: 14px; color: var(--text); font-size: 0.98rem; }
.about__stats {
  display: flex;
  gap: 32px;
  margin: 24px 0;
}
.stat { display: flex; flex-direction: column; }
.stat__number {
  font-family: 'Anton', sans-serif;
  font-size: 2rem;
  color: var(--text);
}
.stat__label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 1.5px solid transparent;
}
.btn--solid {
  background: var(--accent);
  color: var(--bg);
}
.btn--solid:hover { background: var(--accent-hover); }
.btn--outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn--outline:hover { background: var(--tag-bg); }
.btn--full { width: 100%; }
.link--accent { color: var(--accent); font-weight: 600; text-decoration: underline; }

/* ============================================================
   VACANCIES / FILTERS
============================================================ */
.vacancies__filters {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.filter-input,
.filter-select {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-input:focus,
.filter-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(35, 31, 32, 0.1);
}

.filter-input::placeholder {
  color: var(--muted);
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.job-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s;
  cursor: pointer;
  grid-column: auto;
  grid-template-columns: unset;
}

.job-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(35, 31, 32, 0.12);
  transform: translateY(-4px);
}

.job-card__top {
  grid-column: unset;
  grid-row: unset;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.job-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.job-card__company {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

.job-card__meta {
  grid-column: unset;
  grid-row: unset;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 12px;
}

.job-card__location,
.job-card__school,
.job-card__salary {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
}

.job-card__salary {
  color: var(--accent);
  font-weight: 600;
}

.job-card__description {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 12px;
  display: block;
}

.job-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.job-card__cta {
  grid-column: unset;
  grid-row: unset;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  white-space: normal;
  align-self: flex-start;
}

.job-card__cta:hover {
  opacity: 0.8;
}

.job-card__type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--tag-text);
  background: var(--tag-bg);
  border-radius: 20px;
  padding: 4px 12px;
}

.jobs-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 1rem;
}

.jobs-state--error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}


/* ============================================================
   JOB CARD
============================================================ */
.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.job-card:hover { box-shadow: var(--shadow-sm); border-color: var(--accent); }
.job-card__top {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.job-card__title { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.job-card__type {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--tag-text);
  background: var(--tag-bg);
  border-radius: 20px;
  padding: 2px 10px;
}
.job-card__meta {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.job-card__location { display: flex; align-items: center; gap: 3px; font-size: 0.82rem; color: var(--muted); }
.job-card__school { font-size: 0.82rem; color: var(--muted); }
.job-card__salary { font-size: 0.82rem; font-weight: 500; color: var(--accent); }
.job-card__cta {
  grid-column: 2;
  grid-row: 1 / 3;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.15s;
  align-self: center;
}
.job-card:hover .job-card__cta { color: var(--accent); }
.job-card__desc { display: none; }

/* ============================================================
   CONTACT
============================================================ */
.contact__cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.contact__card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  flex: 1;
  min-width: 220px;
}
.contact__card svg { color: var(--accent); flex-shrink: 0; }
.contact__card-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.contact__card-value { font-size: 0.92rem; font-weight: 500; color: var(--text); }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--text);
  color: var(--bg);
  padding: 20px 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   MODALS
============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(35,31,32,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-md);
}
.modal--job { max-width: 640px; }
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--muted);
  line-height: 1;
}
.modal__close:hover { color: var(--text); }
.modal__subtitle { color: var(--muted); font-size: 0.9rem; margin: 8px 0 24px; }

/* Job detail */
.job-detail__header { margin-bottom: 20px; }
.job-detail__header h2 { font-size: 1.4rem; margin: 8px 0; }
.job-detail__meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); }
.job-detail__text h3 { font-size: 1rem; margin: 20px 0 8px; color: var(--text); }
.job-detail__text p { font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }
.job-detail__text li { font-size: 0.9rem; color: var(--muted); margin-bottom: 4px; }
.job-detail__footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.job-detail__footer .btn svg { flex-shrink: 0; margin-right: 6px; }

/* Success / Error states */
.modal__success, .modal__error { text-align: center; padding: 40px 20px; }
.success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #d4edda;
  color: #276749;
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.error-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fde8e8;
  color: #c0392b;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.modal__success h3, .modal__error h3 { margin-bottom: 10px; }
.modal__success p, .modal__error p { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }

/* ============================================================
   FORM
============================================================ */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row .form-group { margin-bottom: 0; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--text); }
.required { color: #c0392b; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.input-error { border-color: #c0392b !important; }
.form-error { font-size: 0.78rem; color: #c0392b; min-height: 14px; }
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text);
}
.checkbox-group label { display: flex; align-items: center; gap: 6px; font-weight: 400; }

/* File upload */
.file-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.2s;
  overflow: hidden;
}
.file-upload:hover, .file-upload.is-dragging { border-color: var(--accent); }
.file-upload input[type="file"] { display: none; }
.file-upload__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 0.88rem;
}
.file-upload__hint { font-size: 0.78rem; color: var(--muted); }
.file-upload__preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: 0.85rem;
  gap: 12px;
}
.file-upload__remove {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.78rem;
  color: var(--muted);
}
.file-upload__remove:hover { border-color: #c0392b; color: #c0392b; }

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(231,230,211,0.4);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .banner__inner { align-items: center; text-align: center; }
  .banner__subtitle { margin: 0 auto; }
  .banner__cta-group { justify-content: center; }
}
 

@media (max-width: 768px) {
  .navbar__links { display: none; }
  .navbar__burger { display: flex; }
  .about__inner { grid-template-columns: 1fr; }
  .about__image { max-width: 260px; margin: 0 auto; }
  .banner__title { font-size: 1.9rem; }
  .section-title { font-size: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .modal { padding: 24px; }
  .about__stats { gap: 20px; }
}

@media (max-width: 480px) {
  .banner { padding: 28px 0; }
  .section { padding: 48px 0; }
  .contact__card { width: 100%; }
}
