/* Sur-mesure (12/11/2026) : la version propre à chaque métier des sites exemples SGGK.
   Tout ce qui suit le sélecteur est sous html.sm (adresse ?style=sur-mesure) : le modèle commun s'efface (eclat.css),
   la page reprend son propre style, et chaque métier reçoit sa scène animée dans un cadre à sa forme.
   Sans flou, sans écran d'ouverture : si la vidéo ne joue pas, l'illustration reste. */

/* 0. Le sélecteur « Classique | Sur-mesure » du ruban (dans les deux versions) */
.ruban .sm-choix { display: inline-flex; flex: none; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.ruban .sm-choix button { padding: 6px 13px; border-radius: 999px; color: rgba(255,248,236,.78); font: 700 .74rem/1 system-ui, sans-serif; letter-spacing: .02em; transition: background-color .25s ease, color .25s ease; }
.ruban .sm-choix button[aria-pressed="true"] { background: #FFF8EC; color: #17120E; }
.ruban .sm-choix button[aria-pressed="true"]:hover { background: #FFF8EC; }
.ruban .sm-choix i { font-style: normal; color: #E0A526; }
@media (max-width: 680px) {
  .ruban .wrap { flex-wrap: wrap; row-gap: 0; }
  .ruban .sm-choix { order: 3; width: 100%; margin: 0 0 8px; }
  .ruban .sm-choix button { flex: 1 1 0; padding: 8px 0; }
}

/* 1. La scène : par-dessus l'image du cadre, à sa forme ; la vidéo apparaît quand elle joue */
html.sm #top { position: relative; }
html.sm #top :is(.illu-cadre, .illu-pano, .miroir .glace, .vitrine .glass) { position: relative; }
html.sm .sm-scene { position: absolute; inset: 0; z-index: 1; overflow: hidden; border-radius: inherit; pointer-events: none; }
html.sm .illu-cadre > .sm-scene { inset: 10px; border-radius: 26px; }
html.sm .sm-scene :is(img, video) { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
html.sm .sm-scene video { opacity: 0; transition: opacity 1s ease; }
html.sm .sm-scene.joue video { opacity: 1; }
html.sm #top .illu-rond { z-index: 3; }
html.sm .sm-ambiance { position: absolute; inset: 0; z-index: 6; width: 100%; height: 100%; pointer-events: none; }
html.sm #top .note { z-index: 7; }

/* 2. Trois métiers en plein écran : la scène devient le fond du haut de page (restaurant, sport, immobilier) */
html.sm:is(.m-resto, .m-sport, .m-immo) #top { min-height: min(calc(100svh - 120px), 920px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
html.sm:is(.m-resto, .m-sport, .m-immo) #top .wrap { position: static !important; width: 100%; padding-bottom: clamp(46px, 8vw, 96px) !important; }
html.sm:is(.m-resto, .m-sport, .m-immo) #top .wrap > :not(.illu-pano, .note) { position: relative; z-index: 4; }
html.sm:is(.m-resto, .m-sport, .m-immo) #top .illu-pano { position: absolute !important; inset: 0 !important; z-index: 0 !important; width: auto !important; max-width: none !important; height: auto !important; margin: 0 !important; aspect-ratio: auto !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; animation: none !important; translate: none !important; scale: none !important; rotate: none !important; }
html.sm:is(.m-resto, .m-sport, .m-immo) #top .illu-pano::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
html.sm:is(.m-resto, .m-sport, .m-immo) #top :is(h1, .sub, .kick, .kicker) { text-shadow: 0 2px 24px rgba(0,0,0,.45); }
/* restaurant : la nuit sur la Marne, la guirlande au-dessus */
html.sm.m-resto #top .illu-pano::after { background: linear-gradient(180deg, rgba(8,24,28,.7) 0%, rgba(8,24,28,.05) 26%, rgba(8,24,28,.18) 50%, rgba(8,24,28,.9) 86%, rgba(8,24,28,.96) 100%); }
html.sm.m-resto #top #guirlande { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
html.sm.m-resto #top #eau { display: none; }
/* sport : le studio de nuit, le néon citron */
html.sm.m-sport #top .illu-pano::after { background: linear-gradient(180deg, rgba(10,12,14,.55) 0%, rgba(10,12,14,.08) 30%, rgba(10,12,14,.5) 58%, rgba(10,12,14,.96) 100%), linear-gradient(90deg, rgba(10,12,14,.55), transparent 70%); }
html.sm.m-sport #top > svg { position: absolute; z-index: 3; }
html.sm.m-sport #top h1 { font-size: clamp(64px, 19vw, 168px) !important; line-height: .86 !important; }
/* immobilier : la rue au coucher du soleil, les toits devant */
html.sm.m-immo #top .illu-pano::after { background: linear-gradient(180deg, rgba(16,26,48,.55) 0%, rgba(16,26,48,.04) 30%, rgba(16,26,48,.3) 56%, rgba(16,26,48,.93) 92%); }
html.sm.m-immo #top .soleil { display: none; }
html.sm.m-immo #top #toits { display: none; }

/* 3. Les autres : la scène dans un cadre à la forme du métier */
/* coiffure : le grand miroir cintré doré */
html.sm.m-coiffure #top .miroir.photo { aspect-ratio: 4 / 5 !important; border-radius: 999px 999px 30px 30px !important; }
html.sm.m-coiffure #top .miroir.photo .glace { border-radius: 999px 999px 22px 22px !important; overflow: hidden; }
/* cuisine asiatique : une fenêtre ronde, cerclée de laque */
html.sm.m-asiatique #top .illu-cadre { aspect-ratio: 1 !important; border-radius: 50% !important; padding: 9px !important; box-shadow: 0 0 0 7px var(--bg, #F6F1E7), 0 0 0 9px #C8382C, 0 40px 70px -40px rgba(0,0,0,.6) !important; }
html.sm.m-asiatique #top .illu-cadre > img, html.sm.m-asiatique #top .illu-cadre > .sm-scene { border-radius: 50% !important; }
html.sm.m-asiatique #top .illu-cadre > .sm-scene { inset: 9px; }
/* boulangerie : la vitrine montre l'intérieur, l'écriture dorée reste sur la vitre */
html.sm.m-bouche #top .vitrine .glass { min-height: 0; aspect-ratio: 5 / 4; }
@media (min-width: 901px) { html.sm.m-bouche #top .vitrine .glass { aspect-ratio: 2 / 1; } }
html.sm.m-bouche #top .vitrine .glass > .sm-scene { z-index: 1; }
html.sm.m-bouche #top .vitrine .glass > .lettre { position: absolute; z-index: 2; }
/* boucherie : un cadre de carreaux blancs et lie-de-vin */
html.sm.m-boucherie #top .illu-cadre { padding: 14px !important; border-radius: 8px !important; aspect-ratio: 1 !important; background: repeating-conic-gradient(#7A1F2B 0 25%, #FFFDF8 0 50%) 0 0 / 22px 22px !important; }
html.sm.m-boucherie #top .illu-cadre > :is(img, .sm-scene) { border-radius: 2px !important; }
html.sm.m-boucherie #top .illu-cadre > .sm-scene { inset: 14px; }
/* épicerie : une cagette en bois */
html.sm.m-epicerie #top .illu-cadre { padding: 16px !important; border-radius: 10px !important; aspect-ratio: 1 !important; background: repeating-linear-gradient(180deg, #B98A55 0 22px, #8A6238 22px 25px, #C99A62 25px 47px, #8A6238 47px 50px) !important; }
html.sm.m-epicerie #top .illu-cadre > :is(img, .sm-scene) { border-radius: 4px !important; }
html.sm.m-epicerie #top .illu-cadre > .sm-scene { inset: 16px; }
/* boutique : un polaroïd scotché */
html.sm.m-boutique #top .illu-cadre { padding: 12px 12px 58px !important; border-radius: 4px !important; background: #FFFDF8 !important; transform: rotate(-2.2deg); box-shadow: 0 30px 60px -34px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.08) !important; }
html.sm.m-boutique #top .illu-cadre > :is(img, .sm-scene) { border-radius: 2px !important; }
html.sm.m-boutique #top .illu-cadre > .sm-scene { inset: 12px 12px 58px; }
html.sm.m-boutique #top .illu-cadre::before, html.sm.m-boutique #top .illu-cadre::after { content: ""; position: absolute; z-index: 4; top: -12px; width: 92px; height: 26px; background: rgba(224,180,60,.72); }
html.sm.m-boutique #top .illu-cadre::before { left: 8%; rotate: -8deg; }
html.sm.m-boutique #top .illu-cadre::after { right: 8%; rotate: 7deg; background: rgba(46,94,78,.6); }
/* mode : un portrait de magazine, filet fin */
html.sm.m-mode #top .illu-cadre { padding: 0 !important; border-radius: 0 !important; aspect-ratio: 3 / 4 !important; background: none !important; outline: 1px solid currentColor; outline-offset: 10px; box-shadow: 0 50px 80px -50px rgba(0,0,0,.6) !important; }
html.sm.m-mode #top .illu-cadre > :is(img, .sm-scene) { border-radius: 0 !important; inset: 0; }
/* institut : un médaillon ovale nacré, la scène d'abord */
html.sm.m-beaute #top .illu-pano { order: -1; width: min(420px, 100%) !important; aspect-ratio: 4 / 5 !important; margin: 0 auto 30px !important; border-radius: 50% !important; padding: 7px; background: conic-gradient(from 210deg, #F4D9E4, #CDB6E6, #F9F1E9, #B8D8E6, #E9C2D6, #F4D9E4) !important; overflow: visible !important; }
html.sm.m-beaute #top .illu-pano > img, html.sm.m-beaute #top .illu-pano > .sm-scene { border-radius: 50% !important; }
html.sm.m-beaute #top .illu-pano > .sm-scene { inset: 7px; }
html.sm.m-beaute #top .illu-pano > img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 901px) {
  html.sm.m-beaute #top .wrap { position: relative !important; min-height: 560px; align-content: center; justify-items: start !important; text-align: left !important; padding-right: calc(18px + min(400px, 34vw) + 64px) !important; }
  html.sm.m-beaute #top .wrap :is(.acts, .facts) { justify-content: flex-start !important; }
  html.sm.m-beaute #top .illu-pano { position: absolute !important; right: 18px; top: 0; bottom: 0; margin: auto 0 !important; width: min(400px, 34vw) !important; height: auto !important; aspect-ratio: 4 / 5 !important; }
}
/* santé : une feuille de tilleul */
html.sm.m-sante #top .illu-cadre { aspect-ratio: 1 !important; border-radius: 58% 6% 58% 6% !important; }
html.sm.m-sante #top .illu-cadre > :is(img, .sm-scene) { border-radius: 56% 4% 56% 4% !important; }
/* garage : bandes de sécurité */
html.sm.m-auto #top .illu-cadre { padding: 12px !important; border-radius: 10px !important; background: repeating-linear-gradient(-45deg, #FF6B00 0 16px, #1A1B1E 16px 32px) !important; }
html.sm.m-auto #top .illu-cadre > :is(img, .sm-scene) { border-radius: 4px !important; }
html.sm.m-auto #top .illu-cadre > .sm-scene { inset: 12px; }
/* artisan : le plan bleu, quadrillé, avec ses cotes */
html.sm.m-batiment #top .illu-cadre { padding: 18px !important; border-radius: 6px !important; background-color: #17345E !important; background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px) !important; background-size: 14px 14px !important; }
html.sm.m-batiment #top .illu-cadre > :is(img, .sm-scene) { border-radius: 2px !important; }
html.sm.m-batiment #top .illu-cadre > .sm-scene { inset: 18px; }
html.sm.m-batiment #top .illu-cadre::after { content: "← 4,20 m →"; position: absolute; z-index: 4; left: 0; right: 0; bottom: 1px; text-align: center; color: #FFD24A; font: 700 11px/16px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; }
/* pressing : une couture au point droit */
html.sm.m-pressing #top .illu-cadre > .sm-scene::after { content: ""; position: absolute; inset: 9px; z-index: 3; border: 2px dashed rgba(255,255,255,.85); border-radius: 18px; }
/* fleuriste : une forme de bouquet, qui respire */
html.sm.m-autre #top .illu-cadre { aspect-ratio: 1 !important; border-radius: 62% 38% 55% 45% / 48% 58% 42% 52% !important; }
html.sm.m-autre #top .illu-cadre > :is(img, .sm-scene) { border-radius: inherit !important; }
@media (prefers-reduced-motion: no-preference) {
  html.sm.m-autre #top .illu-cadre { animation: sm-respire 14s ease-in-out infinite alternate; }
  @keyframes sm-respire { to { border-radius: 44% 56% 40% 60% / 58% 42% 58% 42%; } }
}
