/* ─── Variables globales ────────────────────────────────── */
:root {
  --bleu-sineo: rgb(23, 67, 140);
  --vert-sineo: rgb(195, 215, 20);
  --bleu-2: rgb(16, 49, 101);
  --bleu-3: rgba(16, 49, 101, 0.5);
  --jaune: rgb(255, 222, 89);
  --gris-test: #525252;
  --color-transparent: transparent;
  --blanc: white;
  --texte-intro: var(--bleu-sineo);
  --underline-intro: yellow;
}

/* ─── Reset & Base ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght=700;900&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Geneva, Verdana, sans-serif;
  font-size: 1rem;
  background-color: #f4f6f9;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* ─── Header ────────────────────────────────────────────── */
header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bleu-sineo);
  color: var(--vert-sineo);
  padding: 0 1.25rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header img {
  width: clamp(120px, 20vw, 250px);
  margin: 0.625rem 1.875rem;
}

.underline-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 2vw, 1.875rem);
  align-items: center;
}

.underline-nav a {
  position: relative;
  color: var(--blanc);
  text-decoration: none;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  padding: 0.625rem 0;
  transition: 0.5s ease;
}

.underline-nav a:hover {
  color: var(--vert-sineo);
}

.underline-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--vert-sineo);
  transition: width 0.3s ease;
}

.underline-nav a:hover::after {
  width: 100%;
}

/* ─── Section introduction ──────────────────────────────── */
section.introduction-recrutement {
  min-height: unset;
  height: auto;
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  background-color: var(--bleu-2);
  /* CORRECTION DU CHEMIN POUR DJANGO */
  background-image: url('/static/Pics/index-acceuil.webp');
  background-size: cover;
  background-position: center;
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 0;
  padding: 0;
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
}

section.introduction-recrutement::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(16,49,101,0.88) 42%, transparent 42%),
    linear-gradient(135deg, transparent 55%, rgba(195,215,20,0.75) 55%, rgba(195,215,20,0.75) 68%, transparent 68%);
  z-index: 1;
  pointer-events: none;
}

section.introduction-recrutement > * {
  position: relative;
  z-index: 2;
}

.intro-content {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
  min-height: 320px;
}

.center {
  text-align: center;
}
 
.hl {
  display: inline;
  font-size: 38px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.65;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 2px 10px;
  background: #0E1C4E;
  color: #ffffff;
  box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.45);
}
 
.hl span {
  color: var(--vert-sineo);
}

/* ─── Blocs 2 Colonnes Fix Propre ──────────────────────── */

section.recherche-emploi,
section.nous-rejoindre {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  min-height: 400px;
  position: relative;
  z-index: 1;
}

.texte-recherche-emploi,
.texte-nous-rejoindre {
  width: 50%;
  min-width: min(50%, 300px);
  text-align: left;
  margin: 0;
  padding: 2.5rem 1.25rem;
  color: var(--bleu-sineo);
  letter-spacing: 0.1em;
  font-size: clamp(1rem, 2vw, 1.5625rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}


/* Effet de surlignage vert SINEO sous le titre */
.titre-section .surlignage {
  background: linear-gradient(0deg, var(--vert-sineo) 43%, var(--color-transparent) 40%);
  padding: 0 0.125rem;
}

.image-recherche-emploi,
.image-nous-rejoindre {
  width: 50%;
  min-width: min(50%, 300px);
  margin: 0;
  display: flex;
  align-items: center;
}

.image-recherche-emploi img,
.image-nous-rejoindre img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

/* ─── Section Mission ───────────────────────────────────── */
section.votre-mission {
  background-color: var(--bleu-2);
  min-height: 20vh;
  padding: 2.5rem;
  margin: 0;
  display: block;
  text-align: center;
  position: relative;
  overflow: hidden;
}

section.votre-mission::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--bleu-sineo) 35%, transparent 35%),
    linear-gradient(225deg, var(--jaune) 25%, transparent 25%),
    linear-gradient(45deg, var(--vert-sineo) 25%, transparent 25%),
    linear-gradient(315deg, var(--bleu-2) 30%, transparent 30%);
  z-index: 0;
  pointer-events: none;
}

section.votre-mission > * {
  position: relative;
  z-index: 1;
}

.hl-votre-mission {
  display: inline;
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.65;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 2px 5px;
  background: #0E1C4E;
  color: #ffffff;
  box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.45);
}

.hl-votre-mission span {
  color: var(--vert-sineo);
}

.missions {
    display: flex;
    flex-direction: column;
    align-items: center;    
    gap: 2rem;              
    margin-top: 3rem;
    padding-bottom: 2rem;
    width: 100%;
}

.mission {
    width: 90%;             
    max-width: 1100px;      
    padding: 2rem 2.5rem;
    background: rgba(23, 67, 140, 0.65); 
    backdrop-filter: blur(4px);
    border-radius: 6px;
    text-align: left;       
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    border-top: 4px solid var(--vert-sineo);
    border-bottom: 1px solid rgba(195, 215, 20, 0.3);
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mission:hover {
    transform: translateY(-4px);
    background: rgba(23, 67, 140, 0.8);
    box-shadow: 5px 8px 0px rgba(0, 0, 0, 0.35);
}

.texte-mission ul {
    list-style: none;       
    padding: 0;
    margin: 0;
}

.texte-mission li {
    position: relative;
    padding-left: 1.8rem;   
    margin-bottom: 0.75rem;
    color: #ffffff;         
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    line-height: 1.6;
    letter-spacing: 0.02em;
}

.texte-mission li::before {
    content: "➔";           
    position: absolute;
    left: 0;
    top: 0;
    color: var(--vert-sineo); 
    font-weight: bold;
    font-size: 1rem;
}

.texte-mission p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}



/* ─── Section témoignage ───────────────────────────────── */
section.temoignage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.25rem;
  background-color: white;
}

div.temoignage-titre {
  min-width: min(50%, 300px);
  text-align: center;
  margin: 0;
  padding: 1.25rem;
  color: var(--bleu-sineo);
  letter-spacing: 0.1em;
  font-size: clamp(1rem, 2vw, 1.5625rem);
}

span.texte-temoignage {
  background: linear-gradient(
    0deg,
    var(--vert-sineo) 43%,
    var(--color-transparent) 40%
  );
  padding: 0 0.125rem;
}

div.temoignage-video {
  width: 100%;
  max-width: 800px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(23, 67, 140, 0.2);
  border-top: 4px solid var(--vert-sineo);
}

div.temoignage-video video {
  width: 100%;
  display: block;
  max-height: 300px; /* Ajustez selon vos préférences */
  object-fit: contain; /* Garde la vidéo entière sans la couper */
}



/* ─── Formulaire de Candidature Spontanée ───────────────── */
section.formulaire-recrutement {
  display: flex;
  flex-direction: column; 
  justify-content: center;
  align-items: center;
  padding: 3rem 1.25rem 5rem 1.25rem;
  background-color: var(--bleu-2); 
}

section.formulaire-recrutement h2 {
  margin-bottom: 2rem;
  width: 100%;
}

form {
  background: #fff;
  width: 100%;
  max-width: 750px; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3); 
  padding: 3rem 2.5rem;
}

.info {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.info input {
  display: block;
  width: 100%;
  height: 52px;
  outline: none;
  border: 1px solid rgba(16, 49, 101, 0.15);
  padding: 0 1.25rem;
  background: #fafafa;
  border-radius: 6px;
  font-size: 1rem;
  color: var(--bleu-sineo);
  transition: all 0.2s ease;
}

.info input:focus {
  background: #fff;
  border-color: var(--bleu-sineo);
  box-shadow: 0 0 0 3px rgba(23, 67, 140, 0.1);
}

/* ─── Boutons de recherche d'insertion ─────────────────── */
.insertion-sociale-wrapper {
  width: 100%;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.insertion-label {
  color: var(--bleu-sineo);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.insertion-options {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.radio-button {
  flex: 1;
  cursor: pointer;
  position: relative;
}

.radio-button input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  background-color: #fafafa;
  border: 1px solid rgba(16, 49, 101, 0.15);
  border-radius: 6px;
  color: var(--bleu-sineo);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  user-select: none;
}

.radio-button:hover .radio-tile {
  border-color: var(--bleu-sineo);
  background-color: rgba(23, 67, 140, 0.02);
}

.radio-button input[type="radio"]:checked + .radio-tile {
  background-color: var(--bleu-sineo);
  border-color: var(--bleu-sineo);
  color: var(--blanc);
  box-shadow: 0 4px 10px rgba(16, 49, 101, 0.2);
}

.radio-button input[type="radio"]:checked[value="oui"] + .radio-tile {
  background-color: var(--vert-sineo);
  border-color: var(--vert-sineo);
  color: var(--bleu-sineo);
}

.btn-cv.file-loaded {
  border-color: var(--vert-sineo); 
  background-color: rgba(231, 76, 60, 0.05);
}

.btn-cv.file-loaded:hover {
  background-color: rgba(231, 76, 60, 0.15);
  border-color: #c0392b;
}

.remove-alert {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: #e74c3c;
  font-weight: bold;
}

.message-recrutement {
  width: 100%;
  margin-bottom: 1.5rem;
}

.message-recrutement textarea {
  width: 100%;
  padding: 1.25rem;
  border: 1px solid rgba(16, 49, 101, 0.15);
  background: #fafafa;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--bleu-sineo);
  outline: none;
  resize: vertical;
  transition: all 0.2s ease;
}

.message-recrutement textarea:focus {
  background: #fff;
  border-color: var(--bleu-sineo);
  box-shadow: 0 0 0 3px rgba(23, 67, 140, 0.1);
}

.btn-cv {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 14px;
  width: 100%;
  min-height: 140px;
  font-weight: 500;
  cursor: pointer;
  border: 2px dashed rgba(23, 67, 140, 0.4);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  background: rgba(23, 67, 140, 0.01);
  transition: all 0.25s ease-in-out;
}

.btn-cv label {
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.btn-cv:hover, .btn-cv.drag-over {
  background-color: rgba(195, 215, 20, 0.12);
  border-color: var(--bleu-sineo);
  color: var(--bleu-sineo);
}

#fileUpload {
  display: none;
}

/* ─── Boutons globaux style SINEO ───────────────────────── */
.lien-index, form button.lien-index {
  display: inline-block;
  text-decoration: none;
  padding: 1rem 1.75rem;
  background-color: var(--vert-sineo);
  border-radius: 3px;
  color: var(--bleu-sineo);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  position: relative;
  border: none; 
  cursor: pointer;
  font-family: inherit;
}
 
.lien-index::after, form button.lien-index::after {
  content: ' →';
  opacity: 0;
  transform: translateX(-6px);
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
 
.lien-index:hover, form button.lien-index:hover {
  background-color: var(--underline-intro);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
 
.lien-index:hover::after, form button.lien-index:hover::after {
  opacity: 1;
  transform: translateX(4px);
}
 
.lien-index:active, form button.lien-index:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

form button.lien-index {
  display: block;
  width: 100%;
  height: 54px;
  text-align: center;
}

form button.lien-index:hover {
  background-color: var(--underline-intro);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ─── Footer ────────────────────────────────────────────── */
footer {
  color: rgba(255, 255, 255, 0.5);
  padding: 2.5rem 0;
  text-align: center;
  background-color: rgb(23, 67, 140);
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

footer a:hover {
  color: var(--vert-sineo);
}

/* ─── Media queries ─────────────────────────────────────── */

/* Tablettes (≤ 1024px) */
@media (max-width: 1024px) {
  section.recherche-emploi,
  section.nous-rejoindre {
    flex-direction: column;
  }

  .texte-recherche-emploi,
  .image-recherche-emploi,
  .texte-nous-rejoindre,
  .image-nous-rejoindre {
    width: 100%;
    min-width: unset;
  }

  .image-recherche-emploi img,
  .image-nous-rejoindre img {
    height: 300px;
    object-fit: cover;
  }
}

/* ─── Tablette portrait (≤ 768px) ──────────────────────── */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 0.25rem;
  }

  header img {
    margin: 0.5rem auto;
    width: clamp(100px, 40vw, 180px);
  }

  .underline-nav {
    justify-content: center;
    gap: 0.6rem;
    padding-bottom: 0.5rem;
  }

  .underline-nav a {
    font-size: 0.8rem;
    padding: 0.4rem 0;
  }

  section.introduction-recrutement {
    flex-direction: column;
  }

  .intro-content {
    flex: none;
    width: 100%;
    padding: 2.5rem 1.25rem 2rem;
    min-height: unset;
  }

  .hl {
    font-size: clamp(22px, 5vw, 32px);
  }

  .texte-recherche-emploi,
  .texte-nous-rejoindre {
    padding: 1.5rem 1.25rem;
    font-size: 1rem;
    letter-spacing: 0.05em;
  }

  .image-recherche-emploi img,
  .image-nous-rejoindre img {
    height: 240px;
  }

  section.votre-mission {
    padding: 2rem 1.25rem;
  }

  .hl-votre-mission {
    font-size: clamp(18px, 4.5vw, 24px);
  }

  .mission {
    width: 100%;
    padding: 1.5rem 1.25rem;
  }

  div.temoignage-video {
    max-width: 100%;
  }

  form {
    padding: 2rem 1.5rem;
  }

  .info {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  footer {
    padding: 2rem 1rem;
    font-size: 0.85rem;
    line-height: 2;
  }
}

/* ─── Mobiles (≤ 480px) ─────────────────────────────────── */
@media (max-width: 480px) {
  .underline-nav {
    gap: 0.5rem 0.75rem;
  }

  .underline-nav a {
    font-size: 0.75rem;
  }

  .hl {
    font-size: clamp(18px, 5.5vw, 26px);
    padding: 2px 6px;
  }

  .hl-votre-mission {
    font-size: clamp(15px, 4.5vw, 20px);
  }

  .texte-recherche-emploi,
  .texte-nous-rejoindre {
    padding: 1.25rem 1rem;
  }

  .texte-recherche-emploi h2,
  .texte-nous-rejoindre h2 {
    font-size: 1.2rem;
  }

  .texte-recherche-emploi p,
  .texte-nous-rejoindre p {
    font-size: 0.9rem;
  }

  div.temoignage-video video {
    max-height: 200px;
  }

  form {
    padding: 1.5rem 1rem;
  }

  .lien-index {
    padding: 0.55rem 0.9rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
  }

  footer {
    padding: 1.5rem 1rem;
    font-size: 0.8rem;
  }

  footer a {
    display: inline-block;
    margin: 0.15rem 0;
  }
}