/* ======================= GLOBAL ======================= */

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: #f5f7fb;
  color: #172b4d;
}

section:not(.page-hero) {
  padding: clamp(60px, 10%, 120px) 0;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 800;
  text-align: center;
  color: #0b2545;
  margin-bottom: clamp(10px, 2%, 15px);
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  color: #4c5d73;
  font-size: 1.2rem;
  margin-bottom: clamp(35px, 7%, 60px);
  padding: 0% 8%;
}

.blue-line {
  width: 80px;
  height: 4px;
  margin: clamp(10px, 2%, 15px) auto clamp(15px, 3%, 25px);
  background: linear-gradient(90deg, #0b5e92, #0f82c9);
  border-radius: 2px;
}

/* ======================= HERO ======================= */

/* Hero styles are now managed globally in global.css */


/* =========================================================
   HERO CTA — SAME ADN AS CONTACT
========================================================= */

.hero-btn {
  background: #ffffff;
  padding: 12px 30px;
  /* Match global premium feel more closely */
  font-size: 1rem;
  font-weight: 600;

  color: #0B5E92;
  border-radius: 45px;

  display: inline-flex;
  align-items: center;
  gap: 12px;

  border: none;
  cursor: pointer;
  text-decoration: none;

  transition: background 0.3s ease, color 0.3s ease;
}

.hero-btn:hover {
  background: #e6eef5;
  color: #073e65;
}


/* ======================= VALEURS — Grid premium ======================= */

.premium-section {
  padding-top: 60px;
  /* Reduced gap after hero */
}

.values-grid {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 4%, 40px);
  padding: 0 clamp(15px, 3%, 40px);
}

.value-card {
  background: #fff;
  padding: clamp(30px, 5%, 45px) clamp(25px, 4%, 40px);
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: 0.3s;
  animation: fadeUp 1s ease-out forwards;
  opacity: 0;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(15, 118, 175, 0.25);
}

.icon-circle {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #0b5e92, #0e7cb6);
  color: white;
  font-size: 28px;
  border-radius: 14px;
}

.value-card h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
  font-weight: 700;
}

/* ======================= MÉTIERS — Alternance horizontale ======================= */

/* =============== ANIMATION PREMIUM =============== */

.card-fade {
  opacity: 0;
  transform: translateY(25px);
  animation: fadeUp 0.8s ease-out forwards;
}

.card-fade:nth-child(1) {
  animation-delay: 0.1s;
}

.card-fade:nth-child(2) {
  animation-delay: 0.25s;
}

.card-fade:nth-child(3) {
  animation-delay: 0.4s;
}

.card-fade:nth-child(4) {
  animation-delay: 0.55s;
}

/* Using global animation system */

/* =============== CARDS STYLING =============== */
.metiers-clean {
  padding: clamp(60px, 10%, 120px) 0;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

/* Titre */
.metiers-header {
  text-align: center;
  margin-bottom: 70px;
}

.metiers-header h2 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #0b2545;
  margin-bottom: 10px;
}

.underline {
  display: inline-block;
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, #0b5e92, #0f82c9);
  border-radius: 4px;
  margin-bottom: 18px;
}

.metiers-subtitle {
  color: #3d4a57;
  font-size: 1.1rem;
  padding: (0%,8% )
}

.metier-card {
  background: linear-gradient(135deg,
      #0b5e92 0%,
      #0a4a74 55%,
      #071e34 100%);
  border-radius: 22px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  padding-bottom: 28px;
  transition: 0.25s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.metier-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* TITRE AMÉLIORÉ */
.metier-card h3 {
  font-size: 1.25rem;
  margin: 18px 22px 6px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  letter-spacing: -0.5px;
  /* Premium look */
}

/* TEXTE */
.metier-card p {
  font-size: 0.97rem;
  color: #ffffff;
  margin: 0 22px 16px;
  line-height: 1.55;
}

/* LIEN */
.metier-card a {
  margin-left: 22px;
  margin-top: auto;
  margin-bottom: auto;

  font-size: 0.95rem;
  font-weight: 600;
  color: #0b5e92;
  text-decoration: none;
  position: relative;
}

.metier-card a:hover {
  color: #06476a;
}

.metier-card a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #0b5e92;
  transition: 0.25s;
}

.metier-card a:hover::after {
  width: 100%;
}

/* =============== GRID RESPONSIVE =============== */

.metiers-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 35px;
  padding: 0 20px;
}

/* =============== VALUE CARDS RESPONSIVE =============== */

@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: 1fr;
    gap: clamp(20px, 4%, 40px);
  }
}

@media (max-width: 768px) {
  .values-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: clamp(15px, 3%, 30px);
    padding: 0 clamp(10px, 2%, 20px);
  }

  .value-card {
    width: 100%;
    padding: clamp(20px, 4%, 30px) clamp(15px, 3%, 25px);
  }

  .icon-circle {
    width: clamp(50px, 8%, 60px);
    height: clamp(50px, 8%, 60px);
    font-size: clamp(20px, 3vw, 28px);
    margin: 0 auto clamp(12px, 2%, 18px);
  }

  .value-card h3 {
    font-size: clamp(1.2rem, 4vw, 1.45rem);
  }

  .value-card p {
    font-size: clamp(0.85rem, 2vw, 1rem);
  }
}

@media (max-width: 480px) {
  .values-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: clamp(12px, 2%, 20px);
    padding: 0 clamp(8px, 1.5%, 15px);
  }

  .value-card {
    width: 100%;
    padding: clamp(18px, 3%, 25px) clamp(12px, 2%, 20px);
  }

  .icon-circle {
    width: clamp(45px, 10%, 55px);
    height: clamp(45px, 10%, 55px);
    margin: 0 auto clamp(10px, 2%, 15px);
  }

  .value-card h3 {
    font-size: clamp(1rem, 3.5vw, 1.3rem);
  }
}

/* =============== MOBILE RESPONSIVE =============== */

@media (max-width: 768px) {
  .metiers-header h2 {
    font-size: 2.2rem;
  }

  .metiers-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .metier-card img {
    height: 200px;
  }

  .metier-card h3 {
    font-size: 1.3rem;
    margin-top: 14px;
  }

  .metier-card p {
    font-size: 1rem;
  }

  .metier-card {
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .metier-card img {
    height: 170px;
  }

  .metier-card h3 {
    font-size: 1.25rem;
  }
}



/* =======================
   JOBS — SECTION & GRID
======================= */

.jobs-section {
  padding-top: 140px;
}

.jobs-grid {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
  padding-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 35px;
}

/* =======================
   JOB CARD BASE
======================= */

.job-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.job-card {
  position: relative;
  background: #fff;
  padding: 24px 22px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;

  animation: fadeUp 1.1s ease-out forwards;
  opacity: 0;
}

/* =======================
   TYPOGRAPHY
======================= */

.job-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.job-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0b5e92;
  margin: 6px 0 16px;
}

.job-card p {
  line-height: 1.6;
  color: #3a4a5c;
}

.job-card h3 {
  margin-bottom: 6px;
}

.job-card .job-location {
  font-size: 0.9rem;
  color: #5b6e82;
  margin-bottom: 12px;
}

.job-card .postuler {
  display: inline-block;
  margin-top: 12px;
}


/* =======================
   PREMIUM FRAME & ACCENT
======================= */

/* Gradient border frame */
.job-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg,
      rgba(11, 94, 146, 0.6),
      rgba(15, 130, 201, 0.15),
      transparent);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Left vertical accent */
.job-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 4px;
  background: linear-gradient(180deg, #0b5e92, #0f82c9);
  border-radius: 4px;
  opacity: 0.9;
}

/* =======================
   HOVER ELEVATION
======================= */

.job-card-link:hover .job-card {
  transform: translateY(-10px);
  box-shadow:
    0 18px 50px rgba(11, 94, 146, 0.18),
    0 6px 18px rgba(0, 0, 0, 0.08);
}

/* =======================
   OVERLAY CTA
======================= */

.job-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 94, 146, 0.95);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.2rem;
  font-weight: 600;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.job-card-overlay span {
  transition: transform 0.2s ease;
}

/* Overlay activation */
.job-card-link:hover .job-card-overlay {
  opacity: 1;
  pointer-events: auto;
}

.job-card-link:hover .job-card-overlay span {
  transform: translateX(6px);
}

/* Fade content slightly under overlay */
.job-card-link:hover h3,
.job-card-link:hover p,
.job-card-link:hover .job-location {
  opacity: 0.85;
}

/* =======================
   ACCESSIBILITY
======================= */

.job-card-link:focus-visible {
  outline: 3px solid #0b5e92;
  outline-offset: 4px;
}

/* =======================
   MOBILE BEHAVIOR
======================= */

@media (max-width: 768px) {

  .job-card {
    padding: 36px;
  }

  /* Disable overlay layer on mobile */
  .job-card-overlay {
    position: static;
    background: none;
    color: #0b5e92;
    opacity: 1;
    pointer-events: auto;
    margin-top: 16px;
    font-size: 1rem;
  }

  .job-card-overlay span {
    transform: none !important;
  }

  .job-card-link:hover .job-card {
    transform: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  }
}








/* ======================= APPLY — full horizontal section ======================= */

/* ===================== APPLY SECTION PREMIUM ===================== */

/* ===================== APPLY SECTION PREMIUM ===================== */

.apply-section {
  padding: clamp(70px, 12%, 140px) 0;
  background: #f5f8fc;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.apply-header {
  text-align: center;
  margin-bottom: 60px;
}

.apply-header h2 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #0b2545;
}

.apply-header p {
  color: #49586d;
  font-size: 1.15rem;
  padding: 0% 8%;
}

/* Wrapper */
.apply-wrapper {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: clamp(30px, 5%, 55px);
  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  position: relative;
}

/* BLUE GRADIENT DECOR */
.apply-bg-gradient {
  position: absolute;
  top: 0;
  left: -40px;
  width: 320px;
  height: 100%;
  background: linear-gradient(180deg, rgba(11, 94, 146, 0.25), rgba(15, 130, 201, 0.12));
  border-radius: 30px;
  filter: blur(8px);
  z-index: -1;
}

/* IMAGE */
.apply-visual img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  object-position: left;
  height: 100%;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

/* ===================== FORMULAIRE ===================== */

.apply-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.two-cols {
  display: flex;
  gap: 22px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 700;
  font-size: 1rem;
  color: #0b2545;
  margin-bottom: 6px;
}

.apply-form input,
.apply-form textarea {
  padding: clamp(12px, 2%, 16px);
  border-radius: 12px;
  border: 1px solid #ccd5de;
  background: #fbfcfe;
  font-size: 1rem;
  transition: 0.25s;
}

.apply-form input:focus,
.apply-form textarea:focus {
  border-color: #0b5e92;
  box-shadow: 0 0 0 3px rgba(11, 94, 146, 0.22);
  outline: none;
}

/* ===================== CTA PREMIUM ===================== */

.btn-submit {
  padding: clamp(12px, 2%, 16px) clamp(18px, 3%, 24px);
  background: linear-gradient(90deg, #0b5e92, #0e7fbe);
  color: #ffffff;
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
  letter-spacing: 0.3px;
}

.btn-submit:hover {
  background: linear-gradient(90deg, #06476a, #0c6ea5);
  transform: translateY(-3px);
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1024px) {
  .apply-wrapper {
    grid-template-columns: 1fr;
    padding: clamp(25px, 4%, 40px);
    gap: clamp(20px, 4%, 40px);
  }

  .apply-bg-gradient {
    display: none;
  }

  .apply-visual img {
    height: 300px;
    object-fit: cover;
  }

  .apply-form {
    gap: clamp(15px, 3%, 25px);
  }

  .two-cols {
    gap: clamp(12px, 2%, 22px);
  }
}

@media (max-width: 768px) {
  .apply-section {
    padding: clamp(40px, 8%, 70px) clamp(12px, 3%, 40px);
  }

  .apply-wrapper {
    grid-template-columns: 1fr;
    padding: clamp(18px, 3%, 30px);
    gap: clamp(15px, 3%, 25px);
    border-radius: clamp(16px, 3%, 32px);
  }

  .apply-header {
    margin-bottom: clamp(25px, 5%, 40px);
  }

  .apply-header h2 {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
  }

  .apply-header p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    padding: 0 clamp(8px, 3%, 8%);
  }

  .apply-form {
    gap: clamp(12px, 2%, 20px);
  }

  .two-cols {
    flex-direction: column;
    gap: clamp(12px, 2%, 20px);
  }

  .form-group {
    width: 100%;
  }

  .form-group label {
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin-bottom: clamp(4px, 1%, 6px);
  }

  .apply-form input,
  .apply-form textarea {
    padding: clamp(10px, 1.5%, 14px);
    font-size: clamp(0.9rem, 2vw, 1rem);
  }

  .btn-submit {
    width: 100%;
    padding: clamp(12px, 2%, 16px) clamp(16px, 3%, 24px);
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    margin-top: clamp(8px, 2%, 15px);
  }
}

@media (max-width: 480px) {
  .apply-section {
    padding: clamp(30px, 6%, 50px) clamp(10px, 2%, 20px);
  }

  .apply-wrapper {
    grid-template-columns: 1fr;
    padding: clamp(14px, 2.5%, 22px);
    gap: clamp(12px, 2%, 18px);
    border-radius: clamp(14px, 2%, 24px);
    margin: 0 clamp(8px, 2%, 16px);
  }

  .apply-header {
    margin-bottom: clamp(18px, 4%, 28px);
  }

  .apply-header h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  .apply-header p {
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    padding: 0 clamp(5px, 2%, 5%);
  }

  .apply-form {
    gap: clamp(10px, 1.5%, 16px);
  }

  .two-cols {
    flex-direction: column;
    gap: clamp(10px, 1.5%, 16px);
  }

  .form-group {
    width: 100%;
  }

  .form-group label {
    font-size: clamp(0.8rem, 1.8vw, 0.95rem);
    margin-bottom: clamp(3px, 0.8%, 5px);
  }

  .apply-form input,
  .apply-form textarea {
    padding: clamp(8px, 1.2%, 12px);
    font-size: clamp(0.8rem, 1.8vw, 0.95rem);
    border-radius: clamp(8px, 1%, 12px);
  }

  .apply-form textarea {
    min-height: clamp(100px, 30vw, 150px);
    resize: vertical;
  }

  .btn-submit {
    width: 100%;
    padding: clamp(10px, 1.8%, 14px) clamp(14px, 2.5%, 20px);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    margin-top: clamp(6px, 1.5%, 12px);
    border-radius: clamp(8px, 1%, 14px);
  }
}



/* ======================= ANIMATIONS ======================= */

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}




/* Using global animation system */