/* WENLYS Studio — touche « Lumière du Golfe ».
   Feuille additive : barre d'accès rapide en verre, fil d'horizon, gestes au
   survol, atmosphère des pages de service. Aucune règle existante n'est retirée. */
:root {
  --wl-ardoise: #456071;
  --wl-encre: #27353b;
  --wl-or: #b99a62;
  --wl-ciel: #8fb4cc;
  --wl-verre: rgba(250, 248, 243, .8);
  --wl-geste: cubic-bezier(.2, .7, .2, 1);
}

/* 1. Barre d'accès rapide : apparaît après la couverture, s'efface près du contact. */
.wl-acces {
  position: fixed;
  z-index: 24;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  width: min(100% - 32px, 1040px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 54px;
  padding: 6px 7px 6px 12px;
  border: 1px solid rgba(69, 96, 113, .18);
  border-radius: 999px;
  background: var(--wl-verre);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  backdrop-filter: blur(14px) saturate(1.25);
  box-shadow: 0 16px 36px -24px rgba(23, 44, 60, .5), inset 0 1px 0 rgba(255, 255, 255, .75);
  color: var(--wl-encre);
  font: 500 13px/1 var(--sans, Manrope, Arial, sans-serif);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition: opacity .35s ease, transform .45s var(--wl-geste), visibility 0s linear .45s;
}
.wl-acces[data-visible] { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.wl-acces a { color: inherit; text-decoration: none; }
.wl-acces a:focus-visible { outline: 2px solid var(--wl-ardoise); outline-offset: 2px; border-radius: 999px; }
.wl-acces-marque { display: grid; place-items: center; flex: none; width: 40px; height: 40px; }
.wl-acces-marque span { display: block; width: 34px; height: 34px; background: url("/assets/rosace-wenlys-w-v11-128.webp") center / contain no-repeat; }
.wl-acces-liens { display: flex; gap: clamp(12px, 2.2vw, 30px); margin-inline: auto; }
.wl-acces-liens a { position: relative; padding: 13px 2px; white-space: nowrap; }
.wl-acces-liens a::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--wl-geste);
}
.wl-acces-liens a:hover::after, .wl-acces-liens a:focus-visible::after { transform: scaleX(1); }
.wl-acces-projet {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: none;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--wl-encre);
  color: #fffefa !important;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .2s, transform .25s var(--wl-geste);
}
.wl-acces-projet:hover { background: #3e525d; transform: translateY(-1px); }
.wl-acces-projet span { transition: transform .25s var(--wl-geste); }
.wl-acces-projet:hover span { transform: translateX(3px); }
.wl-acces-appel { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 42px; padding: 0 4px; font-weight: 600; white-space: nowrap; transition: color .2s; }
.wl-acces-appel svg { flex: none; width: 17px; height: 17px; }
.wl-acces-appel:hover { color: var(--wl-ardoise); }
@media (min-width: 821px) and (max-width: 980px) { .wl-acces-appel span { display: none; } }

/* Fil d'horizon : la progression de lecture, du bleu du large à l'or du soir. */
.wl-acces::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--wl-ciel), var(--wl-ardoise) 55%, var(--wl-or));
  transform: scaleX(var(--wl-lecture, 0));
  transform-origin: left;
}
@supports (animation-timeline: scroll()) {
  .wl-acces::after { animation: wl-horizon linear both; animation-timeline: scroll(root); }
}
@keyframes wl-horizon { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 820px) {
  .wl-acces {
    top: auto;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    right: calc(56px + env(safe-area-inset-right, 0px));
    width: max-content;
    max-width: calc(100% - 68px - env(safe-area-inset-right, 0px));
    margin: 0 auto;
    min-height: 50px;
    padding: 4px 4px 4px 6px;
    gap: 6px;
    transform: translateY(14px);
  }
  .wl-acces-liens, .wl-acces-marque { display: none; }
  /* Sur téléphone, l'appel direct remplace la rosace : un rond à gauche du bouton. */
  .wl-acces-appel { justify-content: center; width: 42px; padding: 0; border: 1px solid rgba(69, 96, 113, .32); border-radius: 50%; background: rgba(255, 255, 255, .55); }
  .wl-acces-appel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* Le bouton épouse son texte : la barre reste compacte, centrée dans la place libre. */
  .wl-acces-projet { flex: 0 1 auto; min-width: 0; }
  .wl-acces::after { bottom: auto; top: 0; }
}
@media (max-width: 350px) { .wl-acces-projet { padding: 0 14px; font-size: 12px; } }
@media print { .wl-acces { display: none; } }

/* 2. Gestes au survol : les boutons et les cartes répondent en douceur. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .button, .vitrine-button { transition: background-color .2s, box-shadow .3s, transform .3s var(--wl-geste); }
  .button:hover, .vitrine-button:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -16px rgba(23, 44, 60, .55); }
  .button:active, .vitrine-button:active { transform: translateY(0) scale(.985); }
  .button svg, .text-link svg, .vitrine-button span[aria-hidden], .vitrine-link span[aria-hidden] { transition: transform .3s var(--wl-geste); }
  .button:hover svg, .text-link:hover svg, .vitrine-button:hover span[aria-hidden], .vitrine-link:hover span[aria-hidden] { transform: translateX(4px); }
  .offer, .followup-service, .software-card, .vitrine-grid > div { transition: transform .4s var(--wl-geste), box-shadow .4s; }
  .offer:hover, .followup-service:hover, .software-card:hover, .vitrine-grid > div:hover { transform: translateY(-4px); box-shadow: 0 26px 46px -30px rgba(23, 44, 60, .55); }
}

/* 3. Pages de service : la même lumière que l'accueil. */
.vitrine-page {
  background-color: #f6f4ee;
  background-image:
    radial-gradient(1200px 780px at -160px -140px, rgba(186, 217, 238, .7), transparent 66%),
    radial-gradient(980px 660px at calc(100% + 160px) 40px, rgba(244, 228, 204, .75), transparent 64%);
  background-repeat: no-repeat;
}
.vitrine-header { border-bottom-color: rgba(69, 96, 113, .22); }
.vitrine-grid > div {
  border-color: rgba(69, 96, 113, .2);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .86), rgba(238, 245, 249, .62));
  box-shadow: 0 18px 38px -32px rgba(23, 44, 60, .45), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.vitrine-quote {
  border-color: rgba(69, 96, 113, .22);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(231, 240, 246, .95), rgba(247, 241, 231, .9));
  box-shadow: 0 24px 50px -38px rgba(23, 44, 60, .5);
}
.vitrine-preview img, .vitrine-preview .wenlys-media-screen { border-radius: 14px; }

/* 4. Accueil : les liens du bloc Webmaster se lisent comme une phrase. */
.rivage-chapters #offres #webmaster .identity-pricing-heading p .text-link:not(:last-child) {
  display: inline;
  margin: 0;
  padding: 0;
  border-bottom: 0;
  font-size: inherit;
  text-decoration: underline;
  text-decoration-color: #aaa99c;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* 5. Lisibilité sur téléphone : les petits textes courants gagnent un cran.
   La couverture de l'accueil et son en-tête ne sont pas concernés.
   Les règles d'origine visent ces textes par identifiant : seule une priorité
   explicite, limitée à ce bloc, les relève à coup sûr. */
@media (max-width: 600px) {
  /* Textes courants : 12 px → 13,5 px. */
  main .questions-list p, main .offer li, main .identity-pricing-heading p, main .pricing-note, main .offer-context,
  main .identity-services p, main .software-tags li, main .software-quote-note, main .project-questions p,
  .site-footer .footer-liens a, .site-footer .footer-coordonnees span { font-size: 13.5px !important; }
  /* Liens et commandes : 11–12 px → 13 px. */
  main .text-link, main .collection-card-link, main .software-enlarge, main .software-detail-body span,
  main .offer-tab, main .brochure-link, main .studio-line a { font-size: 13px !important; }
  main .identity-pricing-heading p .text-link:not(:last-child) { font-size: inherit !important; }
  /* Libellés et légendes : 9–11 px → 12 px. */
  main .eyebrow, main .collection-card-sector, main .offer-kicker, main .application-caption,
  main .application-quote-note, main .software-demo-label, main .software-card-top span, main .realisation-category,
  main .studio-line p, main figcaption { font-size: 12px !important; }
}

/* 6. Pages de service : la phrase du téléphone ne colle plus au bouton de
   devis et se lit d'une traite ; le numéro reste facile à toucher. */
.vitrine-quote .vitrine-button + p { margin: 14px 0 0; }
.vitrine-quote .vitrine-button + p .vitrine-link { display: inline; min-height: 0; padding-block: 12px; font-size: inherit; white-space: nowrap; }

/* 7. Pages de service : un lien placé dans une phrase se lit dans la phrase,
   sans ligne plus haute que les autres. Les liens seuls, suivis d'une flèche,
   gardent leur forme de bouton. Sans prise en charge de :has(), rien ne change. */
.vitrine-page main p > .vitrine-link:not(:has(> span[aria-hidden])) { display: inline; min-height: 0; padding-block: 12px; font-size: inherit; }

@media (prefers-reduced-motion: reduce) {
  .wl-acces, .wl-acces[data-visible] { transform: none; transition: opacity .2s, visibility 0s; }
  .wl-acces::after { animation: none; transform: scaleX(1); opacity: .5; }
}
