/* Page Sites internet : presentation, vitrine des trois demonstrations, creation ou refonte, contact.
   Chargee APRES commun.css ; les classes w-* n heritent d aucune regle de l ancien gabarit. */
@property --w-teinte { syntax: '<color>'; inherits: true; initial-value: #8b7f52; }
.page-web h1,.page-web h2,.page-web h3 { font-family: Satoshi,system-ui,sans-serif; }
.page-web a:focus-visible,.page-web button:focus-visible,.page-web summary:focus-visible { outline: 2px solid var(--encre); outline-offset: 5px; border-radius: 6px; }

/* la presentation */
.w-hero { padding: clamp(64px,9vh,112px) 0 clamp(48px,7vh,80px); }
.w-repere { font-size: 14px; color: var(--encre-2); margin: 0 0 22px; }
.w-hero h1 { font-size: clamp(42px,5.2vw,80px); line-height: 1.02; letter-spacing: -.04em; margin: 0; max-width: none; }
.w-chapeau { font-size: clamp(17px,1.35vw,20px); line-height: 1.55; color: var(--encre-2); max-width: 52ch; margin: 30px 0 0; }
.w-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 34px; }
.w-lien { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; text-decoration: none; }
.w-lien::after { content: "↓"; transition: transform .22s ease; }
.w-lien:hover::after { transform: translateY(3px); }
/* le haut de page montre les trois exemples : fenetres superposees et telephone, a droite du titre */
.w-hero .conteneur { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 6%; }
.w-hero h1 { font-size: clamp(42px,4.3vw,68px); text-wrap: balance; }
.w-hero-visuel { position: relative; aspect-ratio: 1 / .8; isolation: isolate; }
.w-hero-visuel::before { content: ''; position: absolute; z-index: -1; inset: -6%; background: radial-gradient(50% 50% at 55% 50%, #a8452a, transparent 70%); opacity: .26; }
.w-hero-visuel .w-ecran { position: absolute; width: 76%; border-radius: 9px; }
.w-hero-visuel .w-ecran:nth-child(1) { top: 0; left: 24%; }
.w-hero-visuel .w-ecran:nth-child(2) { top: 15%; left: 12%; }
.w-hero-visuel .w-ecran:nth-child(3) { top: 30%; left: 0; }
.w-hero-visuel .w-ecran-barre { height: 20px; padding: 0 9px; gap: 5px; }
.w-hero-visuel .w-ecran-barre i { width: 5px; height: 5px; }
.w-hero-visuel .w-mobile { right: 1%; bottom: 0; width: 20%; padding: 4px; border-radius: 20px; }
.w-hero-visuel .w-mobile-ecran { border-radius: 16px; }

/* la vitrine */
.w-vitrine { padding: 24px 0 96px; scroll-margin-top: -8px; }
.w-vitrine-tete { display: flex; justify-content: space-between; align-items: end; gap: 28px 48px; flex-wrap: wrap; padding-top: 48px; border-top: 1px solid var(--ligne); }
.w-vitrine-tete h2 { font-size: clamp(30px,3.2vw,48px); line-height: 1.06; letter-spacing: -.03em; margin: 0 0 16px; }
.w-vitrine-tete p { color: var(--encre-2); max-width: 48ch; margin: 0; }
.w-choix { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--ligne); border-radius: 999px; background: rgba(241,237,230,.04); }
.w-choix button { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: none; color: var(--encre-2); font-size: 15px; font-weight: 500; cursor: pointer; transition: background .22s ease, color .22s ease; }
.w-choix button:hover { color: var(--encre); }
.w-choix button[aria-selected=true] { background: var(--encre); color: #0e0d0b; }
.w-selection { margin-top: 44px; transition: --w-teinte .7s ease; }
.w-selection:not([data-pret]), .w-selection:not([data-pret]) .w-vue { transition: none !important; }
.w-selection[data-demo-actif=epicerie] { --w-teinte: #8b7f52; }
.w-selection[data-demo-actif=restaurant] { --w-teinte: #a8452a; }
.w-selection[data-demo-actif=salon] { --w-teinte: #7c8087; }
.w-scene { position: relative; display: grid; padding: 0 9% 5% 0; text-decoration: none; isolation: isolate; }
/* la scene entiere tient sous l'en-tete : largeur bornee par la hauteur de fenetre (1,758 = largeur / hauteur de la scene) */
.w-scene { max-width: max(640px, calc((100svh - 100px) * 1.758)); margin-inline: auto; }
.w-scene::before { content: ''; position: absolute; z-index: -1; inset: -8% -4% -4%; background: radial-gradient(52% 58% at 50% 52%, var(--w-teinte), transparent 72%); opacity: .34; pointer-events: none; }
.w-vue { grid-area: 1 / 1; position: relative; display: block; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s; }
.w-selection[data-demo-actif=epicerie] [data-vue=epicerie],
.w-selection[data-demo-actif=restaurant] [data-vue=restaurant],
.w-selection[data-demo-actif=salon] [data-vue=salon] { opacity: 1; visibility: visible; transition: opacity .5s ease, visibility 0s; }
.w-ecran { display: block; overflow: hidden; border-radius: 12px; background: #1b1c1e; box-shadow: 0 0 0 1px rgba(241,237,230,.12), 0 40px 80px -30px rgba(0,0,0,.85); transition: transform .5s ease; }
.w-ecran-barre { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #232426; }
.w-ecran-barre i { width: 8px; height: 8px; border-radius: 50%; background: #55565a; }
.w-ecran-barre b { margin-left: auto; font-size: 11px; font-weight: 500; color: #a9a7a1; }
.w-ecran img, .w-mobile img { display: block; width: 100%; height: auto; }
.w-mobile { position: absolute; right: -10%; bottom: -7%; width: 19.5%; padding: 5px; border-radius: clamp(14px,2.2vw,30px); background: #0b0b0d; box-shadow: 0 0 0 1px rgba(241,237,230,.18), 0 30px 60px -18px rgba(0,0,0,.9); transition: transform .5s ease; }
/* telephone au format 390 x 844 : barre d'etat (44) + capture (800), tailles en cqw pour suivre la largeur du telephone */
.w-mobile { container-type: inline-size; }
.w-mobile-ecran { display: block; overflow: hidden; border-radius: clamp(10px,1.8vw,25px); background: var(--w-statut-fond); color: var(--w-statut-encre); }
.w-mobile-statut { position: relative; display: flex; align-items: center; justify-content: space-between; height: 11.3cqw; padding: 0 7cqw 0 9.5cqw; font-size: 4.1cqw; font-weight: 600; letter-spacing: -.01em; }
.w-mobile-statut i { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 27cqw; height: 7.6cqw; border-radius: 99px; background: #050507; }
.w-mobile-statut svg { width: auto; height: 3.1cqw; }
[data-vue=epicerie] { --w-statut-fond: #e1d5be; --w-statut-encre: #17161a; }
[data-vue=restaurant] { --w-statut-fond: #110d0c; --w-statut-encre: #f1ede6; }
[data-vue=salon] { --w-statut-fond: #fdfbf9; --w-statut-encre: #17161a; }
.w-scene:hover .w-ecran { transform: translateY(-4px); }
.w-scene:hover .w-mobile { transform: translateY(-8px); }
.w-legende { display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap; margin-top: 36px; }
.w-legende h3 { font-size: clamp(22px,2.2vw,30px); letter-spacing: -.02em; margin: 0 0 6px; }
.w-legende p { color: var(--encre-2); margin: 0; max-width: 50ch; }
.w-legende .bouton { flex-shrink: 0; }
.w-note { font-size: 13px; color: var(--encre-2); margin: 20px 0 0; }

/* creation ou refonte */
.w-projet { padding: 88px 0; border-top: 1px solid var(--ligne); }
.w-projet h2, .w-contact h2 { font-size: clamp(32px,3.4vw,52px); line-height: 1.04; letter-spacing: -.03em; margin: 0; }
.w-situations { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 8%; margin-top: 48px; }
.w-situations h3 { font-size: 23px; letter-spacing: -.02em; margin: 0 0 12px; }
.w-situations p { color: var(--encre-2); max-width: 46ch; margin: 0; }
/* un dessin par situation : le site qu'on construit, le vieux site refait */
.w-dessin { position: relative; height: 240px; margin-bottom: 28px; overflow: hidden; border: 1px solid var(--ligne); border-radius: 16px; background: radial-gradient(70% 90% at 50% 100%, rgba(139,127,82,.2), transparent 75%), rgba(241,237,230,.03); }
.w-dessin--zero { display: grid; place-items: center; }
.w-dessin--zero .w-ecran { width: 60%; border-radius: 9px; }
.w-dessin .w-ecran-barre { height: 20px; padding: 0 9px; gap: 5px; }
.w-dessin .w-ecran-barre i { width: 5px; height: 5px; }
.w-squelette { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; padding: 16px; background: #151517; }
.w-squelette i { height: 68px; border: 1px dashed rgba(241,237,230,.3); border-radius: 6px; }
.w-squelette i:first-child { grid-column: 1 / -1; width: 45%; height: 16px; }
.w-puce { position: absolute; padding: 7px 13px; border-radius: 99px; background: var(--encre); color: #0e0d0b; font-size: 13px; font-weight: 500; box-shadow: 0 10px 24px -8px rgba(0,0,0,.8); }
.w-puce:nth-of-type(2) { left: 6%; top: 34%; rotate: -4deg; }
.w-puce:nth-of-type(3) { right: 7%; top: 44%; rotate: 3deg; }
.w-puce:nth-of-type(4) { left: 15%; bottom: 13%; rotate: 2deg; }
.w-dessin--refonte { display: flex; justify-content: center; align-items: flex-start; gap: 30px; padding-top: 30px; }
.w-dessin .w-mobile { position: relative; right: auto; bottom: auto; flex: none; width: 128px; padding: 4px; border-radius: 18px; }
.w-dessin .w-mobile-ecran { border-radius: 14px; }
.w-mobile--vieux { --w-statut-fond: #c9c6bf; --w-statut-encre: #55524c; opacity: .8; }
.w-vieux { display: block; aspect-ratio: 390 / 800; padding: 8px 34px 0 7px; background: repeating-linear-gradient(#8a877f 0 1.5px, transparent 1.5px 5px) content-box, #c9c6bf; }
.w-fleche { align-self: center; font-size: 26px; color: var(--encre-2); }
.w-faits svg { display: block; width: 44px; height: 44px; padding: 10px; margin-bottom: 16px; border: 1px solid var(--ligne); border-radius: 50%; fill: none; stroke: var(--encre); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.w-faits { list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 5%; margin: 64px 0 0; padding: 0; border-top: 1px solid var(--ligne); }
.w-faits li { padding: 24px 0 0; color: var(--encre-2); font-size: 15px; line-height: 1.55; max-width: none; }
.w-faits strong { display: block; color: var(--encre); font-size: 17px; font-weight: 500; margin-bottom: 6px; }
.w-questions { display: grid; grid-template-columns: minmax(0,4fr) minmax(0,7fr); gap: 20px 7%; margin-top: 80px; }
.w-questions h3 { font-size: clamp(22px,2vw,28px); letter-spacing: -.02em; margin: 14px 0 0; }
.w-questions .questions summary { font-size: 19px; font-weight: 500; min-height: 44px; }
.w-questions .questions p { color: var(--encre-2); max-width: 62ch; margin: 0; }
.w-questions .questions li { max-width: none; }

/* le contact */
.w-contact { padding: 96px 0 104px; border-top: 1px solid var(--ligne); background: radial-gradient(60% 90% at 30% 100%, rgba(60,65,72,.34), transparent 70%); }
.w-contact p { color: var(--encre-2); max-width: 52ch; margin: 20px 0 30px; }
.w-contact .w-services { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; margin: 44px 0 0; font-size: 14px; max-width: none; }
.w-services a { display: inline-flex; align-items: center; min-height: 44px; color: var(--encre); text-decoration-thickness: 1px; text-underline-offset: 5px; }

html[data-anim=off] .page-web * { transition: none !important; }
@media(max-width:760px) {
  .w-hero { padding: 44px 0 40px; }
  .w-hero h1 { font-size: clamp(38px,10.4vw,56px); }
  .w-hero .conteneur { display: block; }
  .w-dessin--refonte { gap: 16px; }
  .w-dessin .w-mobile { width: 108px; }
  .w-hero-visuel { display: none; }
  .w-chapeau { margin-top: 22px; }
  .w-actions { margin-top: 28px; }
  .w-vitrine { padding: 0 0 64px; }
  .w-vitrine-tete { padding-top: 40px; }
  .w-choix { display: grid; grid-template-columns: repeat(3,1fr); width: 100%; }
  .w-choix button { padding: 0 8px; }
  .w-selection { margin-top: 28px; }
  .w-scene { padding: 0 0 15%; }
  .w-ecran { border-radius: 8px; }
  .w-ecran-barre { height: 22px; padding: 0 9px; gap: 5px; }
  .w-ecran-barre i { width: 5px; height: 5px; }
  .w-ecran-barre b { font-size: 9px; }
  .w-mobile { right: 4%; bottom: 0; width: 26%; padding: 4px; border-radius: 16px; }
  .w-mobile-ecran { border-radius: 12px; }
  .w-scene:hover .w-ecran, .w-scene:hover .w-mobile { transform: none; }
  .w-legende { margin-top: 24px; }
  .w-projet { padding: 56px 0; }
  .w-situations { grid-template-columns: 1fr; margin-top: 32px; }
  .w-faits { grid-template-columns: 1fr; margin-top: 44px; border-top: 0; }
  .w-faits li { padding: 18px 0; border-top: 1px solid var(--ligne); }
  .w-questions { grid-template-columns: 1fr; margin-top: 52px; }
  .w-questions h3 { margin-top: 0; }
  .w-questions .questions summary { font-size: 17px; }
  .w-contact { padding: 64px 0 72px; }
}
