/*
 * Kit de charte JOBPUBLIC
 * ------------------------------------------------------------------
 * Feuille de style autonome reprenant la charte du site jobpublic.fr :
 * polices, couleurs, typographie et principaux composants.
 * Aucune dépendance : il suffit de charger ce fichier, en gardant le
 * dossier « fonts » à côté de lui.
 *
 * Toutes les classes des composants commencent par « jp- » pour ne pas
 * entrer en conflit avec celles d'un thème ou d'un autre outil.
 *
 * Chaque valeur reprend celle du site (configuration du site et vues de
 * ses pages, dont le fichier est cité au-dessus de chaque composant).
 */


/* ==================================================================
   1. Polices
   Montserrat (titres, boutons) et Inter (texte courant), servies par
   le site lui-même. Sous-ensembles « latin » et « latin étendu » :
   le navigateur ne télécharge que celui dont la page a besoin.
   Source : resources/css/app.css
   ================================================================== */

/* Montserrat italique, latin étendu */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/montserrat-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Montserrat italique, latin */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/montserrat-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Montserrat, latin étendu */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/montserrat-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Montserrat, latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/montserrat-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter, latin étendu */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter, latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ==================================================================
   2. Variables
   Couleurs : palette du site (tailwind.config.js, theme.extend.colors).
   À utiliser partout sous la forme var(--jp-primary).
   ================================================================== */

:root {
  /* Bleus (couleur principale) */
  --jp-primary-dark: #134395;
  --jp-primary: #355CE4;
  --jp-primary-medium: #29418B;
  --jp-primary-light: #e3e7f5;
  --jp-primary-lighter: #FFF6F3;
  --jp-secondary-bright: #275DED;

  /* Roses et rouges */
  --jp-secondary-dark: #E1AFB0;
  --jp-secondary: #FFE4E4;
  --jp-secondary-medium: #D01519;
  --jp-secondary-red: #DE3163;

  /* Fonds */
  --jp-portal: #D3DBE8;
  --jp-gray-background-darker: #D3DBE8;
  --jp-gray-background-dark: #E8E8E8;
  --jp-gray-background: #F8F8F8;
  --jp-main-grey: #F6F6F6;
  --jp-main-light-blue: #EEF2FF;

  /* Gris et textes */
  --jp-gray-darker: #0F0F0F;
  --jp-gray-dark: #23293B;
  --jp-gray: #475374;
  --jp-gray-medium: #656564;
  --jp-gray-light: #9FA5B7;
  --jp-gray-lighter: #A7A7A7;
  --jp-main-dark: #424242;
  --jp-black-grey: #00000080;
  --jp-black-grey-light: #0000004D;

  /* Autres */
  --jp-brown: #7D4A00;
  --jp-main-light-yellow: #FFC067;
  --jp-linkedin: #2B66BC;
  --jp-linkedin-darker: #225196;

  /* Polices : Montserrat pour les titres et les boutons, Inter pour le texte
     (resources/css/app.css, tailwind.config.js ; polices de secours de la
     feuille de style servie par le site, si la police ne se charge pas) */
  --jp-font-titre: Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --jp-font-texte: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

  /* Arrondi des boutons, champs et cartes (tailwind.config.js, borderRadius.main) */
  --jp-arrondi: 5px;

  /* Tailles de texte propres au site (tailwind.config.js, fontSize) */
  --jp-taille-xxs: 0.625rem; /* 10 px */
  --jp-taille-xxl: 1.375rem; /* 22 px */
}


/* ==================================================================
   3. Styles de base
   Police, couleur et interlignage du texte, titres h1 à h4.
   Source : resources/css/app.css (@layer base) et
   resources/views/components/layouts/main.blade.php (<body class="antialiased">).
   Les titres passent à leur grande taille à partir de 768 px de large.
   Le site remet à zéro les marges des titres et paragraphes et les espace
   au cas par cas ; ce kit laisse les marges du navigateur ou du thème.
   ================================================================== */

html {
  font-family: var(--jp-font-texte);
  letter-spacing: -0.02em;
  color: var(--jp-main-dark);
  line-height: 1.5;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--jp-font-titre);
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--jp-main-dark);
}

h1 { font-size: 1.875rem; line-height: 2.25rem; }  /* 30 px */
h2 { font-size: 1.5rem;   line-height: 2rem; }     /* 24 px */
h3 { font-size: 1.25rem;  line-height: 1.75rem; }  /* 20 px */
h4 { font-size: 1.125rem; line-height: 1.75rem; }  /* 18 px */

@media (min-width: 768px) {
  h1 { font-size: 2.25rem;  line-height: 2.5rem; }   /* 36 px */
  h2 { font-size: 1.875rem; line-height: 2.25rem; }  /* 30 px */
  h3 { font-size: 1.5rem;   line-height: 2rem; }     /* 24 px */
  h4 { font-size: 1.25rem;  line-height: 1.75rem; }  /* 20 px */
}

/* Texte secondaire en petit (12 px) : extraits des cartes employeur.
   Source : resources/css/app.css (.description-small) */
.jp-description {
  font-size: 0.75rem;
  line-height: 1rem;
}


/* ==================================================================
   4. Liens
   Source : resources/css/app.css (.link, .link-small) et
   resources/views/components/ui/link/primary.blade.php
   ================================================================== */

/* Lien souligné (« 12 offres » des cartes employeur en version petite) */
.jp-lien {
  color: var(--jp-primary);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  text-decoration: underline;
}

.jp-lien-petit {
  color: var(--jp-primary);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  text-decoration: underline;
}

/* Lien bleu, souligné seulement au survol */
.jp-lien-simple {
  color: var(--jp-primary);
  text-decoration: none;
}
.jp-lien-simple:hover,
.jp-lien-simple:focus {
  text-decoration: underline;
}


/* ==================================================================
   5. Texte d'article
   Bloc de texte riche (paragraphes, intertitres, listes, liens), comme
   le corps des articles du blog.
   Source : resources/views/articles/show.blade.php
   (<div class="mt-6 wysiwyg space-y-6">) et resources/css/app.css (.wysiwyg)
   ================================================================== */

/* 24 px entre deux blocs (paragraphe, intertitre, liste…), aucune autre marge,
   sauf un intertitre placé en tout premier */
.jp-texte > * {
  margin-top: 0;
  margin-bottom: 0;
}
.jp-texte > h2:first-child,
.jp-texte > h3:first-child,
.jp-texte > h4:first-child {
  margin: 1.8em 0 1.2em;
}
.jp-texte > * + * {
  margin-top: 1.5rem;
}
.jp-texte a {
  color: var(--jp-primary);
  text-decoration: underline;
}


/* ==================================================================
   6. Conteneurs
   ================================================================== */

/* Conteneur centré des pages d'accueil et de contenu : 1152 px au plus,
   24 px de marge sur les côtés, sans marge à partir de 1280 px de large.
   Source : resources/css/app.css (.section-container),
   utilisé par resources/views/home.blade.php */
.jp-conteneur {
  box-sizing: border-box;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 1280px) {
  .jp-conteneur {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Conteneur plus étroit des pages employeur : 1120 px au plus,
   24 px de marge sur les côtés, sans marge à partir de 1024 px de large.
   Source : resources/views/components/container.blade.php */
.jp-conteneur-etroit {
  box-sizing: border-box;
  width: 100%;
  max-width: 70rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 1024px) {
  .jp-conteneur-etroit {
    padding-left: 0;
    padding-right: 0;
  }
}


/* ==================================================================
   7. Sections et bandeaux de couleur
   Source : resources/views/home.blade.php
   (<div class="bg-main-light-blue"><section class="section-container py-16">,
   <div class="bg-main-grey">) ; bandeau bleu : pied de page
   (resources/views/components/layouts/footer.blade.php) et encart
   « Découvrez l'employeur public »
   (resources/views/components/recruiter/recruiter-random.blade.php).
   ================================================================== */

/* Espacement vertical d'une section : 64 px en haut et en bas */
.jp-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.jp-bandeau-bleu-clair {
  background-color: var(--jp-main-light-blue);
}

.jp-bandeau-gris {
  background-color: var(--jp-main-grey);
}

/* Bandeau bleu, texte blanc : les titres y passent aussi en blanc
   (comme les titres « text-white » de l'accueil) */
.jp-bandeau-bleu {
  background-color: var(--jp-primary);
  color: #fff;
}
.jp-bandeau-bleu h1,
.jp-bandeau-bleu h2,
.jp-bandeau-bleu h3,
.jp-bandeau-bleu h4 {
  color: #fff;
}


/* ==================================================================
   8. Boutons
   Tous les boutons s'utilisent sur un lien <a> comme sur un <button>.
   Le focus garde le contour du navigateur, comme sur le site.
   ================================================================== */

/* Base commune */
.jp-btn-primaire,
.jp-btn-secondaire,
.jp-btn-action,
.jp-btn-contour,
.jp-btn-gris {
  display: inline-block;
  box-sizing: border-box;
  margin: 0;
  border: 0 solid transparent;
  border-radius: var(--jp-arrondi);
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Bouton principal bleu (« Découvrir d'autres missions », « Voir tous les articles »)
   Source : resources/css/app.css (.btn-primary), utilisé par resources/views/home.blade.php */
.jp-btn-primaire {
  font-family: var(--jp-font-titre);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  background-color: var(--jp-primary);
  padding: 0.375rem 1.75rem;
  transition-duration: 300ms;
}
.jp-btn-primaire:hover {
  background-color: #708FFB;
}

/* Bouton blanc, à poser sur un fond bleu
   Source : resources/css/app.css (.btn-secondary), utilisé par resources/views/solution.blade.php */
.jp-btn-secondaire {
  font-family: var(--jp-font-titre);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--jp-main-dark);
  background-color: #fff;
  padding: 0.375rem 1.75rem;
  transition-duration: 300ms;
}
.jp-btn-secondaire:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* Grande taille, à ajouter à .jp-btn-primaire ou .jp-btn-secondaire
   Source : resources/css/app.css (.btn-large) */
.jp-btn-large {
  padding: 0.875rem 2rem;
}

/* Bouton bleu des formulaires (« Connexion »), qui fonce au survol
   Source : resources/views/components/ui/button/secondary.blade.php */
.jp-btn-action {
  font-family: var(--jp-font-titre);
  font-weight: 600;
  letter-spacing: normal;
  color: #fff;
  background-color: var(--jp-primary);
  padding: 0.5rem 1.25rem;
}
.jp-btn-action:hover {
  background-color: var(--jp-primary-dark);
}
.jp-btn-action:active {
  background-color: var(--jp-primary);
}

/* Bouton blanc bordé de gris foncé (« Annuler », « Poser une question »)
   Source : resources/views/components/ui/button/transparent.blade.php */
.jp-btn-contour {
  font-family: var(--jp-font-titre);
  font-weight: 600;
  letter-spacing: normal;
  color: var(--jp-gray-dark);
  background-color: #fff;
  border: 1px solid var(--jp-main-dark);
  padding: 0.5rem 1.25rem;
}
.jp-btn-contour:hover,
.jp-btn-contour:active {
  background-color: var(--jp-gray-background-dark);
}

/* Bouton gris clair à texte bleu (« Réinitialiser » des filtres de recherche)
   Source : resources/views/components/ui/button/outline.blade.php */
.jp-btn-gris {
  font-family: var(--jp-font-texte);
  font-weight: 400;
  letter-spacing: normal;
  color: var(--jp-primary);
  background-color: var(--jp-gray-background);
  border: 1px solid var(--jp-gray-background-darker);
  padding: 0.625rem 0.75rem;
}
@media (min-width: 640px) {
  .jp-btn-gris {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
.jp-btn-gris:hover {
  background-color: var(--jp-gray-background-dark);
}

/* Bouton désactivé (<button disabled>)
   Source : resources/views/components/ui/button/*.blade.php (disabled:opacity-25) */
.jp-btn-action:disabled,
.jp-btn-contour:disabled,
.jp-btn-gris:disabled {
  opacity: 0.25;
  cursor: default;
}


/* ==================================================================
   9. Étiquettes
   ================================================================== */

/* Étiquette rose pâle des cartes d'offre (salaire, contrat, temps de travail)
   Source : resources/views/components/job.blade.php
   (<div class="flex ... text-xs"><div class="bg-[#D2B3B350] px-4 py-0.5">) */
.jp-badge {
  display: inline-block;
  background-color: #D2B3B350;
  padding: 0.125rem 1rem;
  font-size: 0.75rem;
  line-height: 1rem;
}

/* Variante plus petite (10 px), étiquettes de la fenêtre de candidature
   Source : resources/views/components/ui/tag.blade.php */
/* (en ligne dans le texte : ses marges haut et bas ne décalent pas la ligne) */
.jp-badge-petit {
  display: inline;
  background-color: #D2B3B350;
  padding: 0.125rem 1rem;
  font-size: 0.625rem;
  line-height: 1.5;
}


/* ==================================================================
   10. Cartes
   ================================================================== */

/* Carte d'offre d'emploi (liste de /jobs et des pages employeur) :
   bordure gris clair, arrondi, 24 px de marge intérieure.
   Source : resources/views/components/job.blade.php */
.jp-carte {
  display: block;
  position: relative;
  box-sizing: border-box;
  padding: 1.5rem;
  text-align: left;
  border: 1px solid #E6E6E6;
  border-radius: var(--jp-arrondi);
  color: inherit;
  text-decoration: none;
}

/* Titre de la carte (employeur, intitulé du poste) : titre de niveau 6 du site
   Source : resources/views/components/job.blade.php (<h6>) et resources/css/app.css (h6) */
.jp-carte-titre {
  font-family: var(--jp-font-titre);
  letter-spacing: -0.03em;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 700;
  color: var(--jp-main-dark);
  margin: 0;
}

/* Lieu, en capitales grises
   Source : resources/views/components/job.blade.php (uppercase text-[#424242]/50 text-[12px]) */
.jp-carte-lieu {
  text-transform: uppercase;
  color: rgba(66, 66, 66, 0.5);
  font-size: 12px;
}

/* Carte employeur de l'accueil : bannière à gauche (1/3), texte à droite (2/3),
   fond bleu très clair au survol.
   Source : resources/views/components/best-recruiter-card.blade.php */
.jp-carte-employeur {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  height: 100%;
  border-radius: var(--jp-arrondi);
  color: inherit;
  text-decoration: none;
}
a.jp-carte-employeur:hover {
  background-color: var(--jp-main-light-blue);
}
.jp-carte-employeur-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-radius: var(--jp-arrondi);
}
.jp-carte-employeur-contenu {
  grid-column: span 2 / span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.25rem;
}
/* Nom de l'employeur : titre de niveau 5 du site (resources/css/app.css, h5) */
.jp-carte-employeur-nom {
  font-family: var(--jp-font-titre);
  letter-spacing: -0.03em;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: var(--jp-main-dark);
  margin: 0.5rem 0 0;
}


/* ==================================================================
   11. Champs de formulaire
   Source : resources/views/components/ui/input/base.blade.php (libellé,
   champ texte), resources/views/components/ui/input/select.blade.php
   (liste déroulante) ; réglages communs des champs du site.
   La flèche de la liste déroulante est une image intégrée (aucun fichier).
   ================================================================== */

/* Libellé au-dessus du champ */
.jp-label {
  display: block;
  color: var(--jp-gray);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
}

.jp-champ,
.jp-select {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 2.75rem;
  margin: 0;
  padding: 0.5rem 0.75rem;
  background-color: #fff;
  border: 1px solid var(--jp-gray-lighter);
  border-radius: var(--jp-arrondi);
  color: var(--jp-gray-darker);
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.25rem;
  letter-spacing: normal;
}
.jp-champ::placeholder {
  color: var(--jp-gray-light);
  opacity: 1;
}
/* Au focus, seule la bordure change : elle passe en bleu */
.jp-champ:focus,
.jp-select:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: var(--jp-primary);
  box-shadow: none;
}

.jp-select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
