/* Rystart — page « Offres et prix » : l'ouverture est une note qui remonte de 1 à 5 étoiles.
   On fait défiler, ou on glisse sur les étoiles. La page passe du bordeaux nuit à l'ivoire. */
.ouverture--note { position: relative; --fond: #4B1E2B; --encre: #F7F3EF; --doux: #E8C3BC; background: var(--fond); color: var(--encre); transition: background-color .9s ease, color .9s ease; }
.ouverture--note[data-palier="2"] { --fond: #6A3443; }
.ouverture--note[data-palier="3"] { --fond: #E8C3BC; --encre: #4B1E2B; --doux: #4B1E2B; }
.ouverture--note[data-palier="4"] { --fond: #F1DCD6; --encre: #4B1E2B; --doux: #4B1E2B; }
.ouverture--note[data-palier="5"] { --fond: #F7F3EF; --encre: #4B1E2B; --doux: #74505A; }
.ouverture--note a { text-decoration-color: currentColor; }
.ouverture--note .marque { --logo-fond: var(--fond); --logo-barre: var(--doux); }
.ouverture--note .menu a:not(.btn):not(.tel):hover, .ouverture--note .menu a[aria-current="page"]:not(.btn) { border-bottom-color: currentColor; }
.menu-ouvert .ouverture--note .entete { color: var(--ivoire); }
.menu-ouvert .ouverture--note .marque { --logo-barre: var(--rose); --logo-fond: var(--bordeaux); }

html.js:has(.ouverture--note) { scroll-snap-type: y proximity; }
html.js.glisse { scroll-snap-type: none; scroll-behavior: auto; }
.js .ouverture--note { height: 500vh; height: 500svh; }
.n-cran { display: none; }
.js .n-cran { display: block; position: absolute; left: 0; width: 1px; height: 100vh; height: 100svh; scroll-snap-align: start; pointer-events: none; }
:root { --entete-h: 4.95rem; }
@media (min-width: 80rem) { :root { --entete-h: 5.82rem; } }
.js .ouverture--note .entete { position: sticky; top: 0; }
.ouverture--note .ouverture__corps > * + * { margin-top: 0; }
.ouverture--note .ouverture__corps { display: grid; gap: 1.5rem; padding-block: 1rem 2.5rem; }
.js .ouverture--note .ouverture__corps { position: sticky; top: var(--entete-h); height: calc(100vh - var(--entete-h)); height: calc(100svh - var(--entete-h)); overflow: hidden; padding-block: 0; gap: 0;
  grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); }

.n-haut { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.n-titre { font-family: var(--f-texte); font-style: italic; font-size: 1.05rem; line-height: 1.3; letter-spacing: 0; color: var(--doux); padding-top: .2rem; }
.n-chiffre { font-family: var(--f-titre); font-variant-numeric: lining-nums tabular-nums; font-size: clamp(5.5rem, 100svh - 35.75rem, 58vw); line-height: .8; letter-spacing: -.04em; text-align: right; margin: 0; padding: 0 .06em .17em 0; white-space: nowrap; user-select: none; }
html:not(.js) .n-chiffre, html:not(.js) .n-etoiles, html:not(.js) .n-aide, html:not(.js) .n-detail { display: none; }

.n-paliers { position: relative; min-height: 0; }
.n-palier > * + * { margin-top: .7rem; }
.js .n-palier { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-start; padding-block: .25rem; opacity: 0; visibility: hidden; transform: translateY(1.5rem); transition: opacity .45s ease, transform .6s cubic-bezier(.3, .6, .25, 1), visibility 0s .45s; }
.js .n-palier.actif { opacity: 1; visibility: visible; transform: none; transition-delay: .15s, .15s, 0s; }
html:not(.js) .n-palier + .n-palier { margin-top: 3rem; }
.n-palier h2 { font-size: clamp(2.5rem, 11.5vw, 5.4rem); line-height: 1; }
.n-palier > p { max-width: 31rem; }
.n-voix { font-family: var(--f-titre); font-size: clamp(1.35rem, 5.4vw, 1.9rem); line-height: 1.25; max-width: 30rem; }
.n-voix small { display: block; margin-top: .35rem; font-family: var(--f-texte); font-style: italic; font-size: .82rem; color: var(--doux); }
.n-aide { font-style: italic; font-size: .92rem; color: var(--doux); }
.n-offres { list-style: none; padding: 0; max-width: 34rem; border-top: 1px solid currentColor; }
.n-offres a { display: block; padding: .6rem 0 .7rem; border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent); text-decoration: none; }
.n-ligne { display: flex; align-items: baseline; gap: .7rem; }
.n-ligne b, .n-ligne > span { font-family: var(--f-titre); font-weight: 400; font-size: clamp(1.45rem, 5.6vw, 1.9rem); line-height: 1.2; white-space: nowrap; }
.n-ligne i { flex: 1; min-width: 1rem; border-bottom: 1px dotted currentColor; transform: translateY(-.3em); }
.n-ligne small { font-family: var(--f-texte); font-size: .9rem; }
.n-desc { display: block; margin-top: .2rem; font-size: .95rem; line-height: 1.45; }
.n-offres a:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.n-numero { display: inline-block; font-family: var(--f-titre); font-size: clamp(2.6rem, 12.5vw, 5rem); line-height: 1; text-decoration: none; white-space: nowrap; }
.n-bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .5rem 1.5rem; background: var(--encre); color: var(--fond); font-family: var(--f-label); font-weight: 500; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: background-color .9s ease, color .9s ease; }

.n-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .5rem; padding-block: .25rem .9rem; }
.n-etoiles { display: flex; gap: clamp(0rem, 1vw, .6rem); width: max-content; margin-left: -.5rem; touch-action: pan-y; cursor: grab; user-select: none; -webkit-tap-highlight-color: transparent; }
.js.glisse .n-etoiles { cursor: grabbing; }
.n-etoile { position: relative; width: clamp(2.35rem, 12vw, 4.4rem); height: clamp(2.75rem, 12vw, 4.4rem); padding: .3rem; border: 0; background: none; color: inherit; cursor: inherit; }
.n-etoile svg { display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.n-etoile .vide { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; }
.n-etoile .pleine { fill: var(--or); stroke: var(--or); stroke-width: 1.2; stroke-linejoin: round; clip-path: inset(-2px calc(100% - var(--plein, 0%)) -2px -2px); }
.n-detail { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 1.1rem; border: 1px solid currentColor; font-family: var(--f-label); font-weight: 500; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.n-detail:hover { background: var(--encre); color: var(--fond); }
/* Sur téléphone, la barre d'appel fixe occupe le bas de l'écran */
@media (max-width: 47.99rem) { .js .n-pied { padding-bottom: calc(3.9rem + env(safe-area-inset-bottom, 0px)); } }

@media (min-width: 60rem) {
  .js .ouverture--note .ouverture__corps { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto minmax(0, 1fr) auto; column-gap: 2rem; }
  .n-haut { display: contents; }
  .n-titre { grid-column: 1; grid-row: 1; font-size: 1.2rem; }
  .n-chiffre { grid-column: 2; grid-row: 1 / 4; align-self: end; font-size: min(38vw, 30.5rem, 74svh); padding-bottom: .27em; }
  .n-paliers { grid-column: 1; grid-row: 2; }
  .js .n-palier { justify-content: center; }
  /* Les tailles suivent aussi la hauteur de l'écran : rien ne se chevauche sur un portable. */
  .n-palier > * + * { margin-top: clamp(.5rem, 1.9svh, 1.1rem); }
  .n-palier h2 { font-size: clamp(2.4rem, min(6.4vw, 11.5svh), 6.6rem); }
  .n-voix { font-size: clamp(1.2rem, 3.4svh, 1.9rem); }
  .n-ligne b, .n-ligne > span { font-size: clamp(1.3rem, 3.4svh, 1.9rem); }
  .n-numero { font-size: clamp(2.6rem, 9.5svh, 5rem); }
  .n-palier > p:not([class]), .n-desc { font-size: clamp(.95rem, 2.3svh, 1.12rem); }
  .n-offres a { padding: clamp(.3rem, 1.1svh, .6rem) 0 clamp(.35rem, 1.3svh, .7rem); }
  .n-pied { grid-column: 1; grid-row: 3; flex-wrap: nowrap; justify-content: flex-start; gap: 1.5rem; padding-bottom: clamp(.9rem, 3svh, 2rem); }
  .n-etoile { width: clamp(2.9rem, 7.6svh, 4.2rem); height: clamp(2.9rem, 7.6svh, 4.2rem); }
}
@media (min-width: 60rem) and (max-height: 43rem) { .n-aide { display: none; } }
@media (min-width: 60rem) and (max-height: 34rem) { .n-desc, .n-voix small { display: none; } }
@media (max-height: 700px) and (max-width: 59.99rem) {
  .n-palier > * + * { margin-top: .45rem; }
  .n-palier h2 { font-size: 2.2rem; }
  .n-voix { font-size: 1.2rem; }
  .n-palier > p:not([class]), .n-desc { font-size: .92rem; line-height: 1.45; }
  .n-offres a { padding: .4rem 0 .5rem; }
}
@media (max-height: 600px) and (max-width: 59.99rem) { .n-desc { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .ouverture--note, .n-bouton, .js .n-palier, .js .n-palier.actif { transition: none; }
}
.detail-tete { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
