/* Séjour à Médine — améliorations de présentation, septembre 2026. */
body.home, body.single-sam_logement { background: #faf9f6; }
.home main.wp-block-group { padding-top: clamp(1rem, 3vw, 2.5rem) !important; }
.home main > .entry-content,
.single-sam_logement main > .entry-content,
.single-sam_logement main > .wp-block-post-title {
  width: 100%; max-width: 74rem !important; margin-inline: auto;
}
.home .entry-content > .sam-ac,
.home .entry-content > .sam-produits { max-width: none !important; }
.medine-header > .wp-block-group { max-width: 74rem; }
.medine-header { border-bottom-color: #deded3; }
.medine-baseline { font-size: .75rem; letter-spacing: .07em; color: #6b603b; }
.medine-header .sam-entete-wa { font-size: .875rem; line-height: 1.5; }
.sam.sam-ac { padding: 0; }
.sam-ac .sam-une { border-radius: 1.5rem; padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem) 2rem; }
.sam-ac .sam-une-in { max-width: 62rem; }
.sam.sam-ac .sam-une-t { max-width: 32ch; margin: 0 auto 1rem; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.sam.sam-ac .sam-une-s { font-size: 1.125rem; color: #eeeae0; margin-bottom: 1.5rem; }
.sam.sam-ac .sam-une-r { gap: .6rem 1.5rem; font-size: .875rem; line-height: 1.6; color: #eeeae0; }
.sam-ac .sam-duree { flex-wrap: wrap; justify-content: center; border-radius: 1.5rem; }
.sam-ac .sam-duree button { min-height: 2.75rem; font-size: .9375rem; padding: .55rem 1.35rem; color: #f4f1e9; }
.sam-ac .sam-duree button[aria-pressed="true"] { color: #163a2b; }
.sam-ac .sam-rech { max-width: 60rem; }
.sam-ac .sam-rech-barre { border-radius: 1rem; padding: .35rem; }
.sam-ac .sam-rech-c { padding: .7rem 1rem; border-radius: .65rem; }
.sam-ac .sam-rech-c b { font-size: .875rem; margin-bottom: .25rem; }
.sam-ac .sam-rech-c span { font-size: 1rem; white-space: normal; line-height: 1.4; }
.sam-ac .sam-rech-go { min-height: 3.25rem; padding: .8rem 1.5rem; border-radius: .75rem; background: #1e4c38; color: #fff; font-size: 1rem; }
.sam-ac .sam-volet { padding: 1.5rem; border-radius: 1rem; }
.sam.sam-ac .sam-volet-t { font-size: 1.35rem; line-height: 1.3; }
.sam.sam-ac .sam-volet-a,
.sam-ac .sam-opt,
.sam-ac .sam-champ input,
.sam-ac .sam-volet-s { font-size: 1rem; }
.sam-ac .sam-opt small,
.sam-ac .sam-champ label,
.sam-ac .sam-cpt-l span { font-size: .875rem; line-height: 1.5; }
.sam-ac .sam-cpt-l b { font-size: 1rem; }
.sam-ac .sam-cpt-b button { min-width: 2.75rem; min-height: 2.75rem; }
.sam-ac .sam-ac-corps { max-width: none; padding: .5rem 0 0; }
.sam-ac .sam-tete { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; margin: 1.5rem 0; }
.sam.sam-ac .sam-tete-t { font-size: clamp(1.65rem, 2.5vw, 2.2rem); line-height: 1.2; }
.sam.sam-ac .sam-tete-s { font-size: .9375rem; color: #52645a; }
.sam-ac .sam-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.sam-ac .sam-l { display: flex; flex-direction: column; background: #fff; border: 1px solid #e1e5df; border-radius: 1.1rem; padding: .65rem; box-shadow: 0 5px 18px -14px #213c2c60; }
.sam-ac .sam-l-ph { padding-top: 75%; margin-bottom: 1rem; border-radius: .7rem; }
.sam-ac .sam-l-badge { font-size: .8125rem; max-width: calc(100% - 1.2rem); white-space: normal; line-height: 1.4; }
.sam.sam-ac .sam-l-nom { font-size: 1.125rem; line-height: 1.4; padding-inline: .4rem; }
.sam.sam-ac .sam-l-det { font-size: .875rem; line-height: 1.6; padding-inline: .4rem; }
.sam.sam-ac .sam-l-puces li { font-size: .875rem; line-height: 1.5; }
.sam.sam-ac .sam-l-tarif { margin-top: 1rem; padding-inline: .4rem; }
.sam-ac .sam-l-tarif b { font-size: 1.45rem; }
.sam-ac .sam-l-tarif span { font-size: .875rem; }
/* Le tarif à la nuit dérivé du forfait est trompeur pour la location mensuelle. */
.sam-ac:has([data-sam-duree="mois"][aria-pressed="true"]) .sam-l-sous { display: none; }
.sam-ac .sam-l-actions { margin-top: auto; padding-top: 1rem; align-items: stretch; flex-wrap: wrap; }
.sam.sam-ac .sam-l-resa, .sam.sam-ac .sam-l-wa { display: flex; align-items: center; justify-content: center; min-height: 2.875rem; padding: .65rem 1rem; font-size: .9375rem; line-height: 1.4; }
.sam.sam-ac .sam-l-resa { background: #1e4c38; color: #fff; }
.sam.sam-ac .sam-l-wa { color: #23563c; border-color: #bdcdbf; }
.sam.sam-ac .sam-l-resa:hover, .sam-ac .sam-rech-go:hover { background: #123425; color: #fff; }
.sam.sam-produits { margin-top: 2rem; padding-inline: 0; }
.sam-produits .sam-produits-in { max-width: 74rem; }
.sam.sam-produits .sam-produits-t { font-size: 2rem; line-height: 1.2; }
.sam.sam-produits .sam-produits-s { font-size: 1rem; }
.sam-produits .sam-produit-corps { padding: 1.25rem; }
.sam.sam-produits .sam-produit-t { font-size: 1.4rem; line-height: 1.35; }
.sam.sam-produits .sam-produit-prix { font-size: 1.7rem; }
.sam.sam-produits .sam-produit-cta { min-height: 2.875rem; font-size: 1rem; background: #1e4c38; color: #fff; }
.sam-produits .sam-produit-paiements { flex-wrap: wrap; }
.sam-produits .sam-produit-paiements-label, .sam-produits .sam-paiement { font-size: .8125rem; }
.sam-produits .sam-produit:only-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; max-width: 52rem; margin-inline: auto; }
.sam-produits .sam-produit:only-child .sam-produit-visuel { margin: 1rem; }
.sam-produits .sam-produit:only-child .sam-produit-visuel img { object-fit: contain; }
.sam-produits .sam-produit:only-child .sam-produit-corps { min-width: 0; }
.sam.sam-fiche { max-width: none; }
/* Une galerie de deux photos doit occuper ses deux colonnes sans case vide. */
.sam-fiche .sam-mosaique:has(> .sam-mo-vue:nth-child(2):last-child) {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-rows: clamp(15rem, 32vw, 27rem);
  aspect-ratio: auto; height: auto;
}
.sam-fiche .sam-mosaique:has(> .sam-mo-vue:nth-child(2):last-child) > .sam-mo-vue {
  grid-column: auto; grid-row: auto; height: 100%; min-height: 0;
}
.sam-fiche .sam-mosaique:has(> .sam-mo-vue:nth-child(2):last-child) img {
  width: 100%; height: 100%; object-fit: cover;
}
.sam-fiche .sam-desc { font-size: 1rem; line-height: 1.8; }
.sam-fiche .sam-fiche-resume { font-size: 1rem; line-height: 1.7; }
.sam-fiche .sam-note, .sam-fiche .sam-resa-note { font-size: .875rem; line-height: 1.65; }
.sam-fiche .sam-optlist li { gap: .75rem; }
.sam-fiche .sam-optlist span { min-width: 0; font-size: .9375rem; }
.sam-fiche .sam-optlist b { flex-shrink: 0; font-size: 1rem; }
.sam-fiche .sam-resa-cta { min-height: 3rem; font-size: 1rem; line-height: 1.5; }
.sam :focus-visible { outline: 3px solid #986e22; outline-offset: 4px; }
.sam-ac .sam-une :focus-visible { outline-color: #c7983f; }
@media (max-width: 64rem) {
  .sam-ac .sam-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 42rem) {
  .sam-ac .sam-une { border-radius: 1rem; padding: 2rem 1rem 1.5rem; }
  .sam-ac .sam-rech-barre { display: grid; grid-template-columns: 1fr 1fr; border-radius: 1rem; gap: .25rem; }
  .sam-ac .sam-rech-c { min-width: 0; border: 0; border-bottom: 1px solid #e1e5df; padding: .75rem .65rem; }
  .sam-ac .sam-rech-c:first-child { grid-column: 1 / -1; }
  .sam-ac .sam-rech-go { grid-column: 1 / -1; margin: .3rem 0 0; }
  .sam-ac .sam-volet { padding: 1rem; }
  .sam-ac .sam-opts { grid-template-columns: 1fr; }
  .sam-ac .sam-grille { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .sam-ac .sam-l-ph { padding-top: 70%; }
  .sam-ac .sam-champs { grid-template-columns: 1fr; }
  .sam-ac .sam-champ { min-width: 0; }
  .sam-ac .sam-champ input { max-width: 100%; min-width: 0; }
  .sam-produits .sam-produit:only-child { grid-template-columns: 1fr; }
  .sam-produits .sam-produit:only-child .sam-produit-visuel { max-width: 24rem; width: calc(100% - 2rem); margin-inline: auto; }
  .sam-fiche .sam-optlist li { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .sam *, .sam *::before, .sam *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
