/* Détail d'une offre — design 2027 (offres/detail-offre-2027.phtml).
   En-tête (bandeau d'enrichissement, fil d'Ariane, titre, employeur, pastilles), deux colonnes (contenu ;
   carte « Postuler » et localisation, collantes), offres similaires, recherche, barre mobile « Postuler ».
   Les blocs repris de l'ancienne vue (enrichissements, contact du recruteur, fenêtres de detail-offre.js)
   gardent leurs classes et sont seulement rhabillés ici. */

/* En-tête */
.tete-offre { background: linear-gradient(180deg, var(--brand-tint) 0%, var(--mist) 100%); border-bottom: 1px solid var(--line); }
.tete-offre .wrap { padding-block: var(--entete-haut) 26px; }
.titre-offre { display: flex; align-items: center; gap: 20px; margin-top: 14px; }
.employeur-logo.sans-logo { display: none; }
.logo-offre.logo-employeur { width: 104px; height: 104px; padding: 10px; border-radius: var(--r-md); box-shadow: var(--shadow); }
.logo-employeur a { display: grid; place-items: center; width: 100%; height: 100%; }
.titre-texte { min-width: 0; }
.titre-offre h1 { font-size: var(--fs-xl); font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.employeur-offre { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: 8px; }
.employeur-offre strong { font-size: var(--fs-md); }
.pastilles-offre { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pastilles-offre li { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: var(--fs-sm); font-weight: 600; }
.pastilles-offre .i { width: 16px; height: 16px; color: var(--brand); }
/* Contrat : même pastille blanche que les autres (le fond teinté paraissait grisé sur l'en-tête bleuté), texte de la couleur du site */
.pastilles-offre li.contrat { color: var(--brand-deep); }
.ref-offre { margin-top: 14px; font-size: var(--fs-xs); color: var(--ink-soft); }

/* Bandeau d'offre enrichie (partials/_offre_enrichment_header.phtml ; position du logo donnée par le service) */
/* Bannière du recruteur. Les recruteurs la préparent au format de l'ancien design (300 px de haut sur ~850 px,
   soit ~2,85:1 ; ex. MEDADOM 1200 × 400) : une bannière à ce format ou plus allongée s'affiche entière ; une image
   plus haute (photo) est plafonnée à ce format et recadrée au centre, comme avant (object-fit: cover).
   Largeur de la bannière = largeur du cadre (.wrap : 1180 px moins 2 × 16 px de marge). */
.enrich-entete { margin-bottom: 16px; overflow: hidden; background: var(--mist); }
.enrich-entete .img-container { position: relative; }
.enrich-entete .img-container > img { display: block; width: 100%; height: auto; max-height: calc(min(100vw - 32px, 1148px) / 2.85); object-fit: cover; }
.enrich-entete .img-logo { position: absolute; display: flex; align-items: center; justify-content: center; max-width: 220px; max-height: 80px; }
.enrich-entete .img-logo img { display: block; max-width: 100%; max-height: 72px; height: auto; }

/* Offre expirée */
.offre-expiree { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 14px; padding: 18px 20px; border: 1px solid #f1d2a2; border-radius: var(--r-md); background: var(--amber-tint); }
.offre-expiree h2 { font-size: var(--fs-md); font-weight: 800; color: var(--amber); }
.offre-expiree p { margin-top: 4px; max-width: 70ch; font-size: var(--fs-sm); }

/* Deux colonnes */
.disposition-offre { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-block: 32px 56px; align-items: start; }
.colonne-postuler { position: sticky; top: 110px; display: grid; gap: 16px; }

/* Carte « Postuler » */
.carte-postuler { gap: 14px; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.bouton-postuler form, .bouton-postuler .btn { width: 100%; }
.bouton-postuler .btn, .barre-postuler .btn { min-height: 50px; border-radius: 14px; font-size: var(--fs-md); }
input.btn { -webkit-appearance: none; appearance: none; }
.carte-postuler .aide-postuler { margin-top: -6px; text-align: center; font-size: var(--fs-xs); }
.deja-postule { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--mint-tint); color: var(--mint-deep); font-size: var(--fs-sm); font-weight: 600; }
.actions-offre { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--line); }
.actions-offre a { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; color: var(--ink); font-size: var(--fs-sm); font-weight: 600; }
.actions-offre a:hover { background: var(--mist); color: var(--brand); text-decoration: none; }
.actions-offre .i { color: var(--brand); }

/* Localisation : adresse seule (pas de carte Google dans le design 2027) */
.carte-localisation h2, .carte-partage h2 { font-size: var(--fs-md); font-weight: 800; }
.adresse-offre { font-size: var(--fs-sm); line-height: 1.5; }

/* Contenu de l'offre */
.corps-offre { display: grid; gap: 32px; }
.corps-offre > * { min-width: 0; }
.corps-offre h2 { margin-bottom: 12px; font-size: var(--fs-lg); font-weight: 800; }
/* .texte-offre (texte saisi par les recruteurs) : voir site.css */
.enrich-custom-container { font-size: var(--fs-md); line-height: 1.7; overflow-wrap: anywhere; }
.enrich-custom-container p, .enrich-custom-container ul, .enrich-custom-container ol { margin: 0 0 .9em; }
.enrich-custom-container > :last-child { margin-bottom: 0; }
.enrich-custom-container ul { padding-left: 1.4em; list-style: disc; }
.enrich-custom-container ol { padding-left: 1.4em; list-style: decimal; }
.enrich-custom-container li + li { margin-top: .3em; }
.enrich-custom-container a { text-decoration: underline; text-underline-offset: 2px; }
.page-offre .text-right { text-align: right; }

/* Enrichissements : infos pratiques (_design2027/offre-infos-pratiques.phtml) */
/* Une seule boîte grise ; les infos sont posées dessus, sans cadre */
.enrich-infos-pratiques { padding: 22px; border-radius: var(--r-lg); background: var(--mist); }
.corps-offre .enrich-infos-pratiques h2 { font-size: var(--fs-md); }
/* Les deux colonnes d'origine sont « transparentes » : les infos (lieu, transports, parking, autres) se suivent
   depuis la gauche, même quand une colonne est vide ; une info seule prend toute la largeur (pas de phrase sur 3 lignes) */
.enrich-infos-pratiques-content { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-top: 12px; }
.enrich-infos-pratiques .column > div { flex: 1 1 220px; min-width: 0; }
.enrich-infos-pratiques .column { display: contents; }
/* Sans cadre : icône et texte, dans la grille de la section (pas de boîte dans la boîte) */
.enrich-infos-pratiques .column > div { margin: 0; padding: 0 0 0 32px; background: no-repeat 0 1px / 20px 20px; font-size: var(--fs-sm); line-height: 1.5; }
.enrich-infos-pratiques .column > .enrich-infos-pratiques-1 { background-image: url("../defaut/images/enrich/localisation.svg"); }
.enrich-infos-pratiques .column > .enrich-infos-pratiques-2 { background-image: url("../defaut/images/enrich/transport.svg"); }
.enrich-infos-pratiques .column > .enrich-infos-pratiques-3 { background-image: url("../defaut/images/enrich/parking.svg"); }
.enrich-infos-pratiques .column > .enrich-infos-pratiques-4 { background-image: url("../defaut/images/enrich/autres-infos-pratiques.svg"); }

/* Diaporama en mosaïque et en carrousel (partials/_offre_enrichment_slideshow.phtml, detail-offre.js) */
/* Images entières, à leur ratio d'origine : les recruteurs les préparent pour cette mosaïque (deux petites empilées
   ≈ la hauteur de la grande), comme dans l'ancien design ; pas de recadrage */
.enrich-diapo-fixe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); grid-template-rows: auto auto; grid-template-areas: "diapo-1 diapo-3" "diapo-2 diapo-3"; gap: 8px; align-items: start; }
.enrich-diapo-fixe .diapo-1 { grid-area: diapo-1; }
.enrich-diapo-fixe .diapo-2 { grid-area: diapo-2; }
.enrich-diapo-fixe .diapo-3 { grid-area: diapo-3; }
.enrich-diapo-fixe > div { min-height: 0; border-radius: var(--r-md); overflow: hidden; }
.diapo-button, .enrich-slider #slider-buttons button { display: block; width: 100%; height: auto; padding: 0; border: 0; background: var(--mist); cursor: zoom-in; }
.diapo-button img, .enrich-slider #slider-buttons img { display: block; width: 100%; height: auto; }
.enrich-slider .slider-container { display: flex; align-items: center; gap: 8px; }
.enrich-slider #slider-buttons { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; overflow: hidden; }
.enrich-slider #slider-buttons button { flex: 0 0 calc((100% - 16px) / 3); border-radius: var(--r-md); overflow: hidden; }
.enrich-slider .slider-nav { flex: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff no-repeat center / 18px; cursor: pointer; }
.enrich-slider #slider-nav-back { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e2233' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 6-6 6 6 6'/%3E%3C/svg%3E"); }
.enrich-slider #slider-nav-forward { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e2233' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E"); }
.diapo-popin { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(11, 42, 64, .75); }
.diapo-popin-content-img { position: relative; }
.diapo-popin-content-img img { display: block; max-width: min(1000px, 92vw); max-height: 85vh; border-radius: var(--r-md); }
.diapo-popin-content-img .close-button { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff; box-shadow: var(--shadow); font-size: 22px; line-height: 1; cursor: pointer; }

/* Avantages (partials/_offre_enrichment_benefit.phtml) : detail-offre.js replie la liste à 28 px de haut */
/* Catégorie d'avantages (« Avantage ++ ») et pastilles en tons neutres (recette n° 109 : le vert se confondait avec un lien ou un statut) */
.enrich-avantages-bloc > p { margin-bottom: 10px; font-weight: 700; color: var(--ink-soft); }
#enrich-avantages-list { display: flex; flex-wrap: wrap; gap: 8px; overflow: hidden; }
#enrich-avantages-list li { height: 28px; padding: 4px 12px 4px 32px; border-radius: 999px; background: var(--mist) no-repeat 10px center / 16px 16px; color: var(--ink); font-size: var(--fs-xs); font-weight: 700; line-height: 20px; white-space: nowrap; }
#enrich-avantages-list li.primes { background-image: url("../defaut/images/enrich/primes.svg"); }
#enrich-avantages-list li.tickets-restaurant { background-image: url("../defaut/images/enrich/tickets-restaurant.svg"); }
#enrich-avantages-list li.cheques-vacances { background-image: url("../defaut/images/enrich/cheques-vacances.svg"); }
#enrich-avantages-list li.mutuelle { background-image: url("../defaut/images/enrich/mutuelle.svg"); }
#enrich-avantages-list li.prevoyance { background-image: url("../defaut/images/enrich/prevoyance.svg"); }
#enrich-avantages-list li.frais-transports { background-image: url("../defaut/images/enrich/frais-transports.svg"); }
#enrich-avantages-list li.plan-epargne { background-image: url("../defaut/images/enrich/plan-epargne.svg"); }
#enrich-avantages-list li.retraite-complementaire { background-image: url("../defaut/images/enrich/retraite-complementaire.svg"); }
#enrich-avantages-list li.creche-entreprise { background-image: url("../defaut/images/enrich/creche-entreprise.svg"); }
#enrich-avantages-list li.cheques-cadeaux { background-image: url("../defaut/images/enrich/cheques-cadeaux.svg"); }
#enrich-avantages-list li.vehicule-fonction { background-image: url("../defaut/images/enrich/vehicule-fonction.svg"); }
#enrich-avantages-list li.vehicule-service { background-image: url("../defaut/images/enrich/vehicule-service.svg"); }
#enrich-avantages-list li.aide-logement { background-image: url("../defaut/images/enrich/aide-logement.svg"); }
#enrich-avantages-list li.reprise-anciennete { background-image: url("../defaut/images/enrich/reprise-anciennete.svg"); }
#enrich-avantages-list li.formation { background-image: url("../defaut/images/enrich/formation.svg"); }
#enrich-avantages-list li.restaurant-entreprise { background-image: url("../defaut/images/enrich/restaurant-entreprise.svg"); }
#enrich-avantages-list li.autres-avantages { background-image: url("../defaut/images/enrich/autres-avantages.svg"); }
#enrich-avantages-button, #enrich-temoignages-button { margin-top: 6px; padding: 6px 0; border: 0; background: none; color: var(--brand); font: 700 var(--fs-sm) var(--font-body); cursor: pointer; }

/* Vidéo (partials/_offre_enrichment_video.phtml) */
.enrich-video .iframe-container { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--night); }
.enrich-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Témoignages (_design2027/offre-temoignages.phtml : detail-offre.js n'affiche que le premier) */
.enrich-temoignages .temoignage { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.temoignage-img img { display: block; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.temoignage-txt p { font-size: var(--fs-sm); line-height: 1.6; }
.temoignage-txt p::before { content: "« "; color: var(--brand); font-weight: 800; }
.temoignage-txt p::after { content: " »"; color: var(--brand); font-weight: 800; }
.page-offre .temoignage-bloc .text-right { margin-top: 10px; text-align: left; font-size: var(--fs-xs); color: var(--ink-soft); }
.temoignage-bloc .text-right strong { color: var(--ink); }

/* Processus de recrutement (_design2027/offre-processus.phtml) */
.enrich-processus p { margin-bottom: 8px; padding: 10px 14px; border-radius: 12px; background: var(--mist); font-size: var(--fs-sm); }
.enrich-processus strong { color: var(--brand-deep); }

/* Contact du recruteur (_design2027/offre-contact-recruteur.phtml, emploi.js) */
.contact-recruteur { display: grid; gap: 14px; margin-top: 36px; }
.lead-form-leads-error .error { color: #b3261e; font-size: var(--fs-sm); }
.lead-click-action-button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 18px 22px; border: 1.5px solid var(--brand); border-radius: var(--r-md); background: #fff; cursor: pointer; transition: background .15s; }
.lead-click-action-button:hover { background: var(--brand-tint); }
.lead-click-action-button h4 { font-size: var(--fs-md); font-weight: 800; color: var(--brand-deep); }
.lead-click-action-button span { font-size: var(--fs-sm); color: var(--ink-soft); }
.lead-form-lead-selected { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s ease, opacity .4s ease .2s; }
.lead-form-lead-selected.lead-form-revealed { max-height: 1600px; opacity: 1; }
.lead-form-lead-selected-title { margin-bottom: 14px; font-size: var(--fs-lg); font-weight: 800; }
.lead-contact-form { display: grid; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.lead-contact-form label { display: block; margin-bottom: 4px; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-soft); }
.lead-contact-form input[type=text], .lead-contact-form input[type=email], .lead-contact-form select, .lead-contact-form textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--mist); color: var(--ink); font: 500 var(--fs-sm) var(--font-body); }
.lead-contact-form textarea { min-height: 120px; resize: vertical; }
.lead-contact-form input:focus, .lead-contact-form select:focus, .lead-contact-form textarea:focus { outline: 2px solid var(--brand); background: #fff; }
.lead-contact-form .mandatory { color: var(--note); }
.lead-contact-form .error { color: #b3261e; font-size: var(--fs-xs); }
#lead-contact-submit { min-height: 46px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: 600 var(--fs-sm) var(--font-body); cursor: pointer; }
#lead-contact-submit:hover { background: var(--brand-deep); }
#lead-contact-submit[disabled] { opacity: .6; cursor: wait; }
.lead-contact-success-panel { padding: 22px; border-radius: var(--r-lg); background: var(--mint-tint); text-align: center; }
.lead-contact-success-title { font-size: var(--fs-md); font-weight: 800; color: var(--mint-deep); }
.lead-contact-success-text { margin-top: 8px; font-size: var(--fs-sm); }

/* Fenêtre « offres similaires par e-mail » (offres/get-offres-similaires-par-mail.phtml, detail-offre.js) : fenêtre commune, voir site.css */

/* Offres similaires, recherche */
.offres-similaires .sec-head h2 { font-size: var(--fs-xl); font-weight: 800; }
.offres-similaires .sec-foot .btn .i { width: 16px; height: 16px; }
.recherche-offre h2 { font-size: var(--fs-lg); font-weight: 800; }
.d27 .recherche-offre .form-search-offers { margin-top: 16px; }

/* Barre « Postuler » sur mobile (#bandeau-postulation : detail-offre.js la cache quand la carte est visible) */
/* Bandeau Postuler en bas d'écran (#bandeau-postulation) : detail-offre.js le cache tant que la carte Postuler
   est visible. Ordinateur : Sauvegarder à gauche, Postuler au centre, offres similaires à droite (ancien design) ;
   mobile : le bouton seul, sur toute la largeur. */
.barre-postuler { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; box-shadow: 0 -8px 24px rgba(14, 34, 51, .12); padding-bottom: env(safe-area-inset-bottom, 0px); }
.barre-postuler-contenu { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; padding-block: 12px; }
.barre-action { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; border: 0; background: none; color: var(--brand-deep); font: 600 var(--fs-sm)/1.3 var(--font-body); text-align: left; cursor: pointer; }
.barre-action:last-child { justify-self: end; }
.barre-action:hover { color: var(--brand); text-decoration: underline; }
.barre-action .i { width: 20px; height: 20px; flex: none; }
.barre-bouton .btn { min-width: 260px; }
.body-detail-offre .site-foot { padding-bottom: 76px; }

/* Colonne « Ils recrutent » (vignettes vendues, _design2027/vignettes-colonne.phtml) sous la carte Postuler.
   La colonne de droite défile alors avec la page (une colonne collée plus haute que l'écran cacherait les
   vignettes) ; le bandeau de bas d'écran (Sauvegarder · Postuler · Offres similaires) prend le relais quand la
   carte Postuler sort de l'écran. */
.vignettes-colonne-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.vignettes-colonne-tete h2 { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.vignettes-colonne-tete a { font-size: var(--fs-xs); font-weight: 600; }
.vignettes-colonne-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vignettes-colonne-grille a { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); transition: border-color .15s, transform .15s; }
.vignettes-colonne-grille a:hover { border-color: var(--brand); transform: translateY(-2px); }
.vignettes-colonne-grille img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 901px) {
  .disposition-offre:has(.vignettes-colonne) .colonne-postuler { position: static; }
}

@media (max-width: 900px) {
  .disposition-offre { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 20px; }
  .colonne-postuler { display: contents; }
  .carte-postuler { order: -1; }
  .carte-localisation, .carte-partage { order: 2; }
  /* Ils recrutent : sous l'offre, en rangée qui défile */
  .vignettes-colonne { order: 3; }
  .vignettes-colonne-grille { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; scrollbar-width: thin; }
  .vignettes-colonne-grille a { flex: 0 0 132px; scroll-snap-align: start; }
  .barre-postuler-contenu { display: block; padding-block: 10px; }
  .barre-action { display: none; }
  .barre-postuler form, .barre-postuler .btn { width: 100%; }
}
@media (max-width: 640px) {
  .titre-offre { align-items: flex-start; gap: 14px; }
  .logo-offre.logo-employeur { width: 64px; height: 64px; padding: 6px; }
  .titre-offre h1 { font-size: var(--fs-lg); }
  .pastilles-offre li { font-size: var(--fs-xs); }
  .enrich-infos-pratiques .column > div { flex-basis: 100%; }
  .offres-similaires .sec-head h2 { font-size: var(--fs-lg); }
  .enrich-slider #slider-buttons button { flex-basis: calc((100% - 8px) / 2); }
}
