/* Site vitrine HOSPIMEDIA Groupe — feuille unique, aucune ressource externe.
   Couleurs, polices et tailles relevées sur l'ancien site (thème Avada) : rouge #d9554d,
   bouton #ff4149, texte #303133, fond #f9f9fb, pied #212326 ; titres Montserrat 600,
   texte Hind, menu Inter 500. Base : la feuille de Nominations. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("/polices/montserrat-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("/polices/montserrat-700.woff2") format("woff2"); }
@font-face { font-family: "Hind"; font-style: normal; font-weight: 400; font-display: swap; src: url("/polices/hind-400.woff2") format("woff2"); }
@font-face { font-family: "Hind"; font-style: normal; font-weight: 600; font-display: swap; src: url("/polices/hind-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/polices/inter-500.woff2") format("woff2"); }
:root {
  --accent: #ff4149;
  --accent-texte: #c8443c;
  --accent-clair: #d9554d;
  --titre: #303133;
  --encre: #303133;
  --fond: #ffffff;
  --fond-doux: #f9f9fb;
  --trait: #e2e2e6;
  --gris: #6b6d72;
  --pied: #212326;
  --largeur: 75rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Hind", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--fond);
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-texte); text-underline-offset: 0.15em; }
a:hover { color: var(--titre); }
:focus-visible { outline: 3px solid var(--accent-clair); outline-offset: 2px; }
h1, h2, h3, h4 { color: var(--titre); font-family: "Montserrat", system-ui, sans-serif; line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 0 0 1.5rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }
h4 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }

.cadre { max-width: var(--largeur); margin: 0 auto; padding: 0 1.25rem; }
.etroit { max-width: 46rem; }
main { padding: 2.5rem 0 4rem; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.evitement { position: absolute; left: -999rem; }
.evitement:focus { left: 1rem; top: 1rem; background: #fff; padding: 0.5rem 1rem; z-index: 10; }

/* En-tête */
.entete { background: #fff; color: var(--titre); border-bottom: 1px solid var(--trait); }
.entete-ligne { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.logo { display: inline-flex; }
.logo img { height: 64px; width: auto; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; }
.menu > li { position: relative; }
.menu a, .menu summary { color: var(--titre); text-decoration: none; font-family: "Inter", system-ui, sans-serif; font-weight: 500; font-size: 1rem; letter-spacing: 0.015em; cursor: pointer; padding: 0.4rem 0; display: inline-block; }
.menu a:hover, .menu summary:hover { color: var(--accent-texte); }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: " ▾"; font-size: 0.8em; }
.menu details ul { list-style: none; margin: 0; padding: 0.5rem 0; position: absolute; left: -1rem; top: 100%; min-width: 15rem; background: #fff; border-radius: 0.5rem; box-shadow: 0 10px 30px rgb(0 0 0 / 0.15); z-index: 5; }
.menu details ul a { color: var(--titre); display: block; padding: 0.5rem 1rem; font-weight: 500; }
.menu details ul a:hover { background: var(--fond-doux); color: var(--accent-texte); }

.bouton { display: inline-block; background: var(--accent); color: #fff !important; text-decoration: none; font-weight: 600; font-size: 1rem; padding: 12px 25px !important; border: 0 solid var(--accent); border-radius: 4px; cursor: pointer; font-family: inherit; }
.bouton:hover { background: var(--accent-clair); }
.bouton-pilule { border-radius: 50px; font-size: 14px; font-weight: 600; padding: 7px 20px !important; }
.bouton-pilule:hover { background: var(--accent-texte); }
.bouton-contour { background: transparent; color: var(--titre) !important; border: 2px solid var(--accent); border-radius: 50px; font-size: 14px; font-weight: 600; padding: 5px 18px !important; }
.bouton-contour:hover { background: var(--accent); color: #fff !important; }

/* Texte courant */
.texte { overflow-wrap: anywhere; }
.texte img { border-radius: 0.5rem; margin: 0.5rem 0; }
.texte img.en-ligne { height: auto; max-height: 1.9em; width: auto; max-width: 100%; vertical-align: middle; border-radius: 0.2rem; margin: 0 0.2rem; }
.texte figcaption { font-size: 0.9rem; color: var(--gris); margin-top: 0.4rem; }
.texte li:has(> ul:only-child), .texte li:has(> ol:only-child) { list-style: none; }
.texte td, .texte th { vertical-align: top; font-size: 0.92rem; }
.texte figure { margin: 1.5rem 0; }
.texte blockquote { margin: 1.5rem 0; padding: 0.75rem 1.25rem; border-left: 4px solid var(--accent); background: var(--fond-doux); }
.texte ul, .texte ol { padding-left: 1.3rem; }
.texte li { margin: 0.3rem 0; }
.texte table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.texte th, .texte td { border: 1px solid var(--trait); padding: 0.5rem 0.75rem; text-align: left; }
.texte th { background: var(--fond-doux); }
.video a { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--fond-doux); border: 1px solid var(--trait); border-radius: 0.5rem; padding: 0.7rem 1rem; font-weight: 600; text-decoration: none; }
.video a::before { content: "▶"; color: var(--accent-texte); }
.video a::after { content: "↗"; color: var(--gris); font-weight: 400; }
.date { color: var(--gris); font-size: 0.95rem; margin-top: -0.5rem; }
.fil { font-size: 0.95rem; color: var(--gris); margin-bottom: 1rem; }
.bascule-menu { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bouton-menu { display: none; }
.retour { margin-top: 3rem; }
.sommaire { list-style: none; padding: 0; }
.sommaire li { border-bottom: 1px solid var(--trait); }
.sommaire a { display: block; padding: 0.9rem 0; font-weight: 600; text-decoration: none; }

/* Liste des articles */
.cartes { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; align-items: start; gap: 2rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.cartes li { border: 1px solid var(--trait); border-radius: 0.75rem; overflow: hidden; background: #fff; padding-bottom: 0.5rem; }
.cartes img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cartes h2 { font-size: 1.1rem; margin: 1rem 1rem 0.75rem; }
.cartes h2 a { color: var(--titre); text-decoration: none; }
.cartes h2 a:hover { color: var(--accent-texte); }
.cartes p { margin: 0 1rem 0.75rem; font-size: 0.95rem; }
.cartes .date { margin-top: 0; }

/* Pied de page */
.pied { background: var(--pied); color: #cccccc; padding: 3rem 0 1.5rem; font-size: 0.95rem; }
.pied-grille { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.pied h2 { color: #fff; font-size: 1rem; margin: 0 0 0.75rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin: 0.35rem 0; }
.pied a { color: #cccccc; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied-mention { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.15); }

@media (max-width: 48rem) {
  .bouton-menu { display: inline-block; border: 1px solid var(--accent); border-radius: 50px; padding: 0.35rem 1.1rem; font-weight: 600; color: var(--titre); cursor: pointer; }
  .bascule-menu:focus-visible + .bouton-menu { outline: 3px solid var(--accent-clair); outline-offset: 2px; }
  .entete nav { display: none; flex-basis: 100%; }
  .bascule-menu:checked ~ nav { display: block; }
  .menu { flex-direction: column; align-items: flex-start; gap: 0.35rem; padding-bottom: 0.5rem; }
  .menu { gap: 0.25rem 1rem; }
  .menu details ul { position: static; box-shadow: none; background: transparent; padding: 0 0 0 0.75rem; }
  .menu details ul a { padding: 0.3rem 0; }
  .menu details ul a:hover { background: transparent; }
  .logo img { height: 48px; }
  main { padding-top: 1.75rem; }
}

/* Groupe : adresse de courriel à la place des anciens formulaires, images de une */
.courriel { margin: 2rem 0; padding: 1.25rem 1.5rem; background: var(--fond-doux); border-left: 4px solid var(--accent-clair); border-radius: 0.25rem; }
.courriel .bouton { margin-left: 0.5rem; }
/* Image de tête : jamais agrandie au-delà de sa taille réelle (les petites deviendraient floues) */
.f-article article > p > img { display: block; width: auto; max-width: 100%; margin-left: auto; margin-right: auto; border-radius: 0.5rem; }
.texte img { border-radius: 0.25rem; }
.texte .video a::before { content: "▶ "; color: var(--accent); }

/* Mise en page : les rangées et colonnes de l'ancien site sont conservées.
   Une rangée est une ligne souple ; chaque colonne garde sa largeur d'origine
   (l-1-2 = une moitié, l-1-3 = un tiers…) et passe en pleine largeur sur petit écran. */
.rangee { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; margin: 2.5rem 0; }
.rangee .rangee { margin: 1rem 0; gap: 1rem 2rem; }
.colonne { flex: 1 1 100%; min-width: 0; }
.colonne > :first-child { margin-top: 0; }
.colonne > :last-child { margin-bottom: 0; }
.l-1-2 { flex-basis: calc(50% - 1.5rem); }
.l-1-3 { flex-basis: calc(33.333% - 2rem); }
.l-2-3 { flex-basis: calc(66.666% - 1rem); }
.l-1-4 { flex-basis: calc(25% - 2.25rem); }
.l-3-4 { flex-basis: calc(75% - 0.75rem); }
.l-1-5 { flex-basis: calc(20% - 2.4rem); }
.l-2-5 { flex-basis: calc(40% - 1.8rem); }
.l-3-5 { flex-basis: calc(60% - 1.2rem); }
.l-4-5 { flex-basis: calc(80% - 0.6rem); }
.l-1-6 { flex-basis: calc(16.666% - 2.5rem); }
.l-5-6 { flex-basis: calc(83.333% - 0.5rem); }
.l-1-3, .l-1-4, .l-1-5, .l-1-6 { text-align: center; }
.colonne img { display: block; margin-left: auto; margin-right: auto; }
.l-1-3 > p > a[href^="http"] > img, .l-1-4 > p > a[href^="http"] > img, .l-1-5 > p > a[href^="http"] > img, .l-1-6 > p > a[href^="http"] > img { max-height: 5rem; width: auto; }
/* Pictogrammes et badges cliquables (réseaux sociaux, magasins d'applications) : petits et en ligne */
.colonne p > a[href^="http"] > img { display: inline-block; max-height: 3.25rem; width: auto; margin: 0.25rem 0.6rem 0.25rem 0; vertical-align: middle; }
.l-1-3 > p > a > img, .l-1-4 > p > a > img, .l-1-5 > p > a > img, .l-1-6 > p > a > img { max-height: 5rem; margin: 0 auto; display: block; }
.rangee { align-items: flex-start; }
.f-accueil .rangee { align-items: center; }
/* Chiffres clés : quatre colonnes de texte court */
.f-accueil .l-1-4 > p { font-family: "Montserrat", system-ui, sans-serif; font-weight: 600; font-size: 1.35rem; line-height: 1.3; color: var(--accent-clair); }
.f-accueil h1 { text-align: center; }
.f-accueil .l-1-1 > h2 { text-align: center; }
.f-accueil .l-1-1 > h4 { text-align: center; font-weight: 600; margin: 0.6rem 0; }
.f-accueil .l-1-1 > p { text-align: center; }
.f-accueil .l-1-1 > p > img { width: 100%; border-radius: 0.5rem; }
/* Les pages sans colonnes (articles, pages légales) gardent une largeur de lecture */
.etroit .rangee { justify-content: center; gap: 1.25rem 2rem; }
.etroit .colonne { flex-basis: 100%; }
/* … mais les petites colonnes (chiffres, pictogrammes, vignettes) restent côte à côte, comme sur l'ancien site */
.etroit .l-1-3 { flex-basis: calc(33.333% - 1.34rem); }
.etroit .l-1-4, .etroit .l-1-5, .etroit .l-1-6 { flex-basis: calc(25% - 1.5rem); min-width: 9rem; }
/* Chiffres des offres d'emploi (« 92 % des collaborateurs… ») */
.f-offre .l-1-4 > p:first-child, .f-offre .l-1-3 > p:first-child { font-family: "Montserrat", system-ui, sans-serif; font-weight: 700; font-size: 2.25rem; line-height: 1.1; color: var(--accent-clair); margin-bottom: 0.4rem; }
.f-offre .l-1-4 > p, .f-offre .l-1-3 > p { font-size: 0.95rem; line-height: 1.45; }
@media (max-width: 48rem) {
  .rangee { gap: 1.25rem; margin: 1.75rem 0; }
  .colonne, .l-1-2, .l-2-3, .l-3-4, .l-2-5, .l-3-5, .l-4-5, .l-5-6 { flex-basis: 100%; }
  .l-1-3, .l-1-4, .l-1-5, .l-1-6 { flex-basis: calc(50% - 0.625rem); }
}

/* Pagination des listes d'articles */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; margin: 2.5rem 0 1rem; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.pagination li a, .pagination li span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; border: 1px solid var(--trait); border-radius: 0.5rem; text-decoration: none; color: var(--encre); background: #fff; }
.pagination li a:hover { border-color: var(--accent-texte); color: var(--accent-texte); }
.pagination li span { background: var(--encre); border-color: var(--encre); color: #fff; font-weight: 600; }

/* Lien « Gérer mes cookies » du pied (affiché par le script de mesure) */
.lien-pied { margin-left: 1.5rem; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* Étiquettes (anciennes barres de légende du thème) */
.etiquette { display: inline-block; margin: 0 0.4rem 0.6rem 0; padding: 0.3rem 0.9rem; border-radius: 50px; background: var(--accent-clair); color: #fff; font-family: Montserrat, sans-serif; font-weight: 500; font-size: 0.875rem; }

/* Un lien de texte suivi de badges ou de pictogrammes (« Voir le site » + boutiques d'applications) */
.colonne p > a:not(:has(img)) + a:has(> img) { margin-left: 0.6rem; }

/* Retours de Manon (03/12/2026) */
/* Accroche des pages de marque, sous le logo : un titre, comme sur l'ancien site */
.accroche { font-family: "Montserrat", system-ui, sans-serif; font-weight: 600; font-size: 1.25rem; line-height: 1.35; color: var(--titre); }
.accroche.centre { font-weight: 700; font-size: 1.75rem; text-align: center; margin: 1.5rem auto 0.5rem; max-width: 46rem; }
/* « Voir le site » sur sa ligne, les boutons des boutiques d'applications dessous et plus petits */
.colonne p > a:has(+ a[href*="apps.apple.com"]), .colonne p > a:has(+ a[href*="play.google.com"]):not(:has(img)) { display: block; margin-bottom: 0.75rem; }
.colonne p > a[href*="apps.apple.com"], .colonne p > a[href*="play.google.com"] { margin-left: 0; }
.colonne p > a[href*="apps.apple.com"] > img, .colonne p > a[href*="play.google.com"] > img { max-height: 2.4rem; }
/* Offres : les pictogrammes des réseaux restent sur la ligne du texte */
.f-offre .colonne p > a[href^="http"] > img { max-height: 1.6rem; margin: 0 0.15rem; }
.f-offre .colonne p > a:not(:has(img)) + a:has(> img) { margin-left: 0.4rem; }

span.video { display: block; margin: 1rem 0; }

/* Galerie : des photos qui mènent chacune à leur version en grand (les pictogrammes, eux, mènent à un autre site) */
.colonne p > a[href^="/wp-content/"] > img { display: inline-block; height: 11rem; width: auto; max-width: 100%; object-fit: cover; margin: 0 0.5rem 0.5rem 0; border-radius: 0.4rem; vertical-align: top; }

/* Lecteurs intégrés (vidéo, plan, son), comme sur l'ancien site */
.lecteur { display: block; margin: 1.5rem 0; }
.lecteur iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 0.5rem; background: var(--fond-doux); }
.lecteur-video { aspect-ratio: 16 / 9; }
.lecteur-carte { height: 24rem; }
.lecteur-son { height: 11rem; }
