/* Site vitrine HOSPIMEDIA Nominations — feuille unique, aucune police ni ressource externe. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/polices/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/polices/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/polices/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/polices/poppins-700.woff2") format("woff2"); }
:root {
  --vert: #28beac;
  --vert-texte: #019e83;
  --vert-clair: #50a99a;
  --marine: #0d2252;
  --encre: #313e5d;
  --fond: #ffffff;
  --fond-doux: #f3faf9;
  --trait: #dfe7ea;
  --gris: #6a7385;
  --largeur: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--encre);
  background: var(--fond);
}
img { max-width: 100%; height: auto; }
a { color: var(--vert-texte); text-underline-offset: 0.15em; }
a:hover { color: var(--marine); }
:focus-visible { outline: 3px solid var(--vert-clair); outline-offset: 2px; }
h1, h2, h3, h4 { color: var(--marine); line-height: 1.3; font-weight: 400; text-wrap: balance; }
h1 { font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); 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(--marine); 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(--marine); text-decoration: none; font-weight: 400; letter-spacing: 0.03em; cursor: pointer; padding: 0.4rem 0; display: inline-block; }
.menu a:hover, .menu summary:hover { color: var(--vert-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(13 34 82 / 0.2); z-index: 5; }
.menu details ul a { color: var(--marine); display: block; padding: 0.5rem 1rem; font-weight: 500; }
.menu details ul a:hover { background: var(--fond-doux); color: var(--vert-texte); }

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

/* Texte courant */
.texte > * { max-width: min(46rem, 100%); }
.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(--vert); 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(--vert-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; }

/* Accueil et pages produit : texte plus large, images mises en valeur */
.f-accueil .texte > *, .f-produit .texte > * { max-width: min(52rem, 100%); margin-left: auto; margin-right: auto; }
.f-accueil h1, .f-produit h1 { text-align: center; max-width: 52rem; margin-left: auto; margin-right: auto; }
.f-accueil .texte > img, .f-produit .texte > img { display: block; }

/* Liste des articles */
.cartes { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; 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(--marine); text-decoration: none; }
.cartes h2 a:hover { color: var(--vert-texte); }
.cartes p { margin: 0 1rem 0.75rem; font-size: 0.95rem; }
.cartes .date { margin-top: 0; }

/* Formulaires */
.formulaire { margin-top: 2rem; padding: 1.5rem; background: var(--fond-doux); border: 1px solid var(--trait); border-radius: 0.75rem; max-width: 46rem; }
.champ { margin: 0 0 1rem; }
.champ label { display: block; font-weight: 600; margin-bottom: 0.3rem; color: var(--marine); }
.champ input, .champ select, .champ textarea { width: 100%; font: inherit; color: inherit; padding: 0.6rem 0.75rem; border: 1px solid #b9c4cc; border-radius: 0.4rem; background: #fff; }
.consentement { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
.consentement input { margin-top: 0.4rem; flex: none; }

/* Pied de page */
.pied { background: #363744; 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: var(--vert-texte); }
.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(--vert); border-radius: 50px; padding: 0.35rem 1.1rem; font-weight: 600; color: var(--marine); cursor: pointer; }
  .bascule-menu:focus-visible + .bouton-menu { outline: 3px solid var(--vert-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; }
}

/* Accueil et pages produit : des bandes en deux colonnes, texte et image en alternance */
main:has(.vitrine) { padding: 0; }
.bande { padding: 3.5rem 0; }
.bande:nth-of-type(even) { background: var(--fond-doux); }
.bande-texte h2 { font-size: clamp(1.6rem, 3.2vw, 35px); margin-bottom: 20px; }
.bande.entree { background: #fff; padding: 4rem 0 3.5rem; }
.bande.entree .bande-grille { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.bande-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.bande.inverse .bande-texte { order: 2; }
.bande.seule .bande-grille { grid-template-columns: minmax(0, 1fr); max-width: 52rem; }
.bande-texte > :first-child { margin-top: 0; }
.bande-texte h1 { text-align: left; margin-bottom: 1.25rem; }
.bande-texte h2 { margin-top: 0; }
.bande-texte .bouton { margin-top: 0.5rem; }
.bande-image { text-align: center; }
.bande-image img { max-height: 26rem; width: auto; }
.bande.entree .bande-image img { max-height: 36rem; }
.listes { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.5rem 2.5rem; }
.listes ul, .listes ol { margin: 0; padding-left: 1.2rem; }
.listes li { margin: 0.35rem 0; }
.listes li::marker { color: var(--vert); }

/* Références : logos en grille, témoignages en cartes */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 1rem; align-items: center; margin: 1.5rem 0 2.5rem; max-width: none !important; }
.logos img { height: 3.6rem; width: 100%; max-width: 8.5rem; margin: 0 auto !important; display: block; object-fit: contain; }
.temoignages { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; max-width: none !important; }
.temoignage { border: 1px solid var(--trait); border-radius: 0.75rem; padding: 1.25rem; background: #fff; font-size: 0.97rem; }
.temoignage { display: flex; flex-direction: column; }
.temoignage img { height: 8rem; width: 8rem; object-fit: cover; margin: 0 0 0.75rem !important; border-radius: 50%; }
.temoignage p:last-child { margin-top: auto; }
article:has(.logos) .texte > * { max-width: 100%; }

@media (max-width: 48rem) {
  .bande { padding: 2.25rem 0; }
  .bande-grille, .bande.entree .bande-grille { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .bande.inverse .bande-texte { order: 0; }
  .bande-image img { max-height: 18rem; }
}

/* Carte interactive des GHT */
.carte-bloc { margin: 2.5rem 0 0; }
.carte-ght { height: min(70vh, 800px); min-height: 26rem; border: 1px solid var(--trait); border-radius: 0.75rem; background: var(--fond-doux); z-index: 0; }
.fond-carte { filter: grayscale(1) contrast(0.8) brightness(1.18); }
.carte-raccourcis { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.75rem; }
.carte-raccourcis button { font: inherit; font-size: 0.9rem; color: var(--marine); background: #fff; border: 1px solid var(--vert); border-radius: 50px; padding: 0.3rem 0.9rem; cursor: pointer; }
.carte-raccourcis button:hover { background: var(--vert); color: #fff; }
.carte-etat { font-size: 0.9rem; color: var(--gris); margin-top: 0.5rem; }
.leaflet-container { font-family: inherit; }
.leaflet-popup-content strong { display: block; color: var(--marine); margin-bottom: 0.25rem; }
.leaflet-popup-content a { display: inline-block; margin-top: 0.4rem; }
article:has(.carte-ght) .texte > * { max-width: none; }
article:has(.carte-ght) .texte figure, article:has(.carte-ght) .texte > img { text-align: center; }
article:has(.carte-ght) h1 { text-align: left; max-width: none; margin-left: 0; }
.epingle-h { background: none; border: 0; filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.35)); }

/* Retours de l'équipe du 02/12/2026 */
.cartes .sans-image { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: var(--fond-doux); }
.cartes .sans-image img { width: 46%; aspect-ratio: auto; object-fit: contain; opacity: 0.55; }
.coordonnees { margin-top: 1.5rem; font-weight: 500; }
.bandeau-carte { background: #bfe6de; border-radius: 0.75rem; margin: 0 0 2rem; font-size: 1.15rem; line-height: 1.5; }
.bandeau-carte a { display: block; padding: 1.5rem 2rem; color: var(--marine); text-decoration: none; }
.bandeau-carte strong { display: block; font-weight: 700; }
.bandeau-carte span { color: var(--vert-texte); font-weight: 700; }
.bandeau-carte em { display: inline-block; font-style: normal; font-weight: 600; color: #fff; background: var(--vert-texte); border-radius: 50px; padding: 0.1rem 0.9rem; margin-left: 0.25rem; }
.bandeau-carte a:hover em { background: var(--marine); }
