/* Fiche métier : l'ordre et le texte du site de base, l'habillage de B. */

.metier-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: var(--s-6) var(--s-7); }
.metier-hero-inner { max-width: var(--largeur); }
.metier-hero h1 { max-width: 22ch; }

/* Le salaire : une carte blanche, le chiffre d'abord */
.salary-callout {
  max-width: 32rem; margin-block: var(--s-6);
  padding: var(--s-5) var(--s-6);
  border-radius: var(--rayon); background: var(--blanc); box-shadow: var(--ombre);
}
.salary-callout-context { margin-bottom: var(--s-3); color: var(--bleu-doux); font-size: var(--t-petit); }
.salary-callout-figure { margin: 0 0 var(--s-2); font: var(--poids-titre) 1.75rem / 1.3 var(--font-titre); }
.salary-callout-figure span { display: block; font: 600 var(--t-base) / 1.4 var(--font-texte); color: var(--bleu-doux); }

/* Retour à l'accueil, au-dessus de l'étiquette : la cible tactile du site */
.retour-accueil {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--cible); margin-bottom: var(--s-3);
  font-weight: 600; text-decoration: none;
}
.retour-accueil:hover { text-decoration: underline; text-decoration-color: var(--menthe-fonce); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.retour-accueil + .eyebrow { display: block; width: fit-content; }

/* Journée type : étapes dépliables, texte lisible sans clic sans JavaScript */
details.pulse-step { padding-left: 0; }
details.pulse-step::before { content: none; }
details.pulse-step > summary {
  position: relative; min-width: 0; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-4);
  min-height: var(--cible); padding: var(--s-2) var(--s-7) var(--s-2) var(--s-7);
  list-style: none; cursor: pointer; border-radius: var(--rayon);
}
details.pulse-step > summary::-webkit-details-marker { display: none; }
details.pulse-step > summary::before {
  content: ""; position: absolute; left: 0.25rem; top: 1rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--menthe-fonce);
}
details.pulse-step.is-beat > summary::before { width: 1.25rem; height: 1.25rem; left: 0.125rem; top: 0.9rem; background: var(--corail-fort); box-shadow: 0 0 0 4px var(--fond, var(--blanc)), 0 0 0 6px var(--corail); }
details.pulse-step > summary::after {
  content: "+" / ""; position: absolute; right: 0; top: 50%; margin-top: -1.125rem;
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--menthe); color: var(--bleu); font: 700 1.625rem / 1 var(--font-texte);
  transition: transform 0.2s;
}
details.pulse-step[open] > summary::after { transform: rotate(45deg); }
details.pulse-step > summary:hover { box-shadow: inset 0 0 0 2px var(--menthe); }
details.pulse-step .pulse-step-title { margin: 0; font-size: var(--t-confort); }
details.pulse-step .pulse-step-body { padding: 0 var(--s-7) var(--s-3) var(--s-7); }
.pulse-step-title { display: block; }

/* Semaine type : un jour par dépliant, la pastille « + » de la journée ; dedans, les étapes de la
   journée sans dépliant. Tous ouverts sans JavaScript ; avec, seul le premier (timeline.js). */
.week-days { display: grid; gap: var(--s-3); max-width: 46rem; margin-top: var(--s-6); }
.week-day { border-radius: var(--rayon); background: var(--blanc); box-shadow: var(--ombre-douce); }
.week-day > summary {
  position: relative; display: flex; align-items: center;
  min-height: var(--cible); padding: var(--s-3) var(--s-9) var(--s-3) var(--s-5);
  list-style: none; cursor: pointer; border-radius: var(--rayon);
}
.week-day > summary::-webkit-details-marker { display: none; }
.week-day > summary h3 { margin: 0; font-size: var(--t-h3); }
.week-day > summary::after {
  content: "+" / ""; position: absolute; right: var(--s-4); top: 50%; margin-top: -1.125rem;
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--menthe); color: var(--bleu); font: 700 1.625rem / 1 var(--font-texte);
  transition: transform 0.2s;
}
.week-day[open] > summary::after { transform: rotate(45deg); }
.week-day > summary:hover { box-shadow: inset 0 0 0 2px var(--menthe); }
.week-day .pulse-timeline { margin: 0; padding: var(--s-2) var(--s-5) var(--s-5); gap: var(--s-4); }
.week-day .pulse-step-title { font-size: var(--t-base); font-family: var(--font-texte); font-weight: 700; margin-bottom: var(--s-1); }

/* Témoignages : des personnes parlent, donc des bulles blanches qui pointent à gauche */
.testimonials-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6) var(--s-6); margin-top: var(--s-6); }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.testimonial-card { position: relative; margin: 0; padding: var(--s-5) var(--s-6); border-radius: var(--rayon-bulle) var(--rayon-bulle) var(--rayon-bulle) 0; background: var(--blanc); box-shadow: var(--ombre); }
.testimonial-card::after {
  content: ""; position: absolute; bottom: 0; right: 100%;
  width: var(--pointe); height: var(--pointe); background: var(--blanc); clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.testimonial-quote { margin: 0 0 var(--s-4); font: var(--poids-titre) 1.25rem / 1.35 var(--font-titre); }
.testimonial-author { display: flex; align-items: center; gap: var(--s-3); }
.testimonial-avatar {
  flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--menthe); color: var(--bleu); font: 700 1.25rem / 1 var(--font-titre);
}
.testimonial-name { margin: 0; font-weight: 700; }
.testimonial-role { margin: 0; color: var(--bleu-doux); font-size: var(--t-petit); }

/* Vidéo de l'outil : secondaire, donc plus étroite que la colonne (agrandissable en plein écran) */
.tool-video { max-width: 40rem; margin: var(--s-6) 0 0; }
.tool-video video { display: block; width: 100%; height: auto; border-radius: var(--rayon); box-shadow: var(--ombre); background: var(--gris); }
.tool-video figcaption { margin-top: var(--s-2); color: var(--bleu-doux); font-size: var(--t-petit); }
.tool-transcript { margin-top: var(--s-4); max-width: 46rem; }
/* Le dérouleur de la vidéo : la pastille menthe « + » de la FAQ et de la journée, « × » ouvert */
.tool-transcript summary {
  display: inline-flex; align-items: center; gap: var(--s-3);
  min-height: var(--cible); padding-right: var(--s-2);
  border-radius: var(--rayon-bouton); cursor: pointer; list-style: none; font-weight: 700;
}
.tool-transcript summary::-webkit-details-marker { display: none; }
.tool-transcript summary::after {
  content: "+" / ""; flex: none;
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--menthe); color: var(--bleu); font: 700 1.625rem / 1 var(--font-texte);
  transition: transform 0.2s;
}
.tool-transcript[open] summary::after { transform: rotate(45deg); }
.tool-transcript summary:hover { text-decoration: underline; text-decoration-color: var(--menthe-fonce); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.tool-transcript p { max-width: var(--mesure); color: var(--bleu-doux); }

/* Recherche dans les offres : un champ du site, son compteur à côté */
.offers-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-2) var(--s-4); margin-top: var(--s-5); }
.offers-search[hidden] { display: none; }
.offers-search label { flex-basis: 100%; font-weight: 700; }
.offers-search input {
  flex: 0 1 24rem; min-width: 0; min-height: 3rem; padding: 0.6rem 1rem;
  border: 1.5px solid var(--bord-champ); border-radius: var(--rayon-champ);
  background: var(--blanc); color: var(--bleu);
  font: 400 1.0625rem / 1.5 var(--font-texte);
}
.offers-search-count { margin: 0; padding-block: var(--s-3); color: var(--bleu-doux); font-weight: 600; }
.offers-search + .offers-list { margin-top: var(--s-5); }
/* Sans résultat, la liste vide ne garde pas sa marge : le message suit le champ */
.offers-search + .offers-list:not(:has(.offer-card:not([hidden]))) { display: none; }
