/* Dix styles de titre adaptatifs.
   Ils utilisent les couleurs du modèle actif et restent sûrs avec un texte long. */
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape^="pro-"]{
  position:relative!important;
  isolation:isolate!important;
  box-sizing:border-box!important;
  max-width:calc(100% - 18px)!important;
  padding:.38em .58em!important;
  line-height:1.04!important;
  overflow:visible!important;
}
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape^="pro-"] #heroTitleText{
  position:relative!important;
  z-index:2!important;
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  color:var(--title-text-color)!important;
  -webkit-text-fill-color:var(--title-text-color)!important;
  overflow-wrap:anywhere!important;
  text-wrap:balance!important;
}
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape^="pro-"]::before,
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape^="pro-"]::after{
  content:"";
  position:absolute;
  z-index:-1;
  pointer-events:none;
}

/* 1. Une ligne lumineuse, sans cartouche autour du texte. */
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-signature"]{padding:.08em .04em .3em!important}
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-signature"]::before{left:0;bottom:.13em;width:46%;height:4px;border:0;border-radius:99px;background:var(--title-shape-border);box-shadow:0 0 15px color-mix(in srgb,var(--title-shape-border) 55%,transparent)}
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-signature"]::after{left:calc(46% + 8px);bottom:calc(.13em - 2px);width:8px;height:8px;border-radius:50%;background:var(--title-shape-border)}

/* 2. Cadre net avec une ombre décalée. */
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-offset"]::before{inset:0;border:2px solid var(--title-shape-border);border-radius:10px;background:color-mix(in srgb,var(--title-shape-bg) 86%,transparent);box-shadow:8px 8px 0 color-mix(in srgb,var(--title-shape-border) 72%,transparent)}
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-offset"]::after{top:0;right:0;width:32px;height:7px;border-radius:0 8px 0 7px;background:var(--title-shape-border)}

/* 3. Cartouche éditorial avec repère vertical. */
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-editorial"]{padding:.42em .62em .42em .76em!important}
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-editorial"]::before{inset:0;border:1px solid color-mix(in srgb,var(--title-shape-border) 34%,transparent);border-radius:3px 24px 24px 3px;background:var(--title-shape-bg);box-shadow:inset 8px 0 0 var(--title-shape-border),0 16px 32px rgba(10,18,35,.14)}
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-editorial"]::after{left:3px;top:18%;bottom:18%;width:2px;border-radius:4px;background:color-mix(in srgb,var(--title-shape-border) 50%,white)}

/* 4. Plaque en verre givré. */
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-glass"]{padding:.48em .68em!important}
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-glass"]::before{inset:0;border:1px solid color-mix(in srgb,var(--title-shape-border) 48%,white);border-radius:25px;background:color-mix(in srgb,var(--title-shape-bg) 54%,transparent);box-shadow:inset 0 1px 0 rgba(255,255,255,.72),0 18px 40px rgba(8,20,48,.18);backdrop-filter:blur(16px) saturate(1.15)}
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-glass"]::after{left:10%;right:10%;top:1px;height:1px;background:linear-gradient(90deg,transparent,#fff,transparent)}

/* 5. Ruban de concours contemporain. */
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-ribbon"]{padding:.4em .78em!important}
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-ribbon"]::before{inset:0;border:0;background:linear-gradient(135deg,color-mix(in srgb,var(--title-shape-bg) 78%,white),var(--title-shape-bg));clip-path:polygon(0 0,94% 0,100% 50%,94% 100%,0 100%,4% 50%);filter:drop-shadow(0 9px 0 color-mix(in srgb,var(--title-shape-border) 62%,black)) drop-shadow(0 17px 18px rgba(16,20,40,.18))}
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-ribbon"]::after{left:5%;right:8%;bottom:.18em;height:2px;background:color-mix(in srgb,var(--title-shape-border) 72%,transparent)}

/* 6. Ticket moderne, festif mais lisible. */
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-ticket"]{padding:.46em .78em!important}
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-ticket"]::before{inset:0;border:2px dashed var(--title-shape-border);background:var(--title-shape-bg);clip-path:polygon(0 0,100% 0,100% 35%,96% 50%,100% 65%,100% 100%,0 100%,0 65%,4% 50%,0 35%);box-shadow:0 14px 30px rgba(17,22,40,.15)}
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-ticket"]::after{left:9%;right:9%;top:7px;height:3px;border-radius:99px;background:repeating-linear-gradient(90deg,var(--title-shape-border) 0 8px,transparent 8px 14px);opacity:.55}

/* 7. Arche premium inspirée d'une vitrine. */
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-arch"]{padding:.62em .7em .42em!important}
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-arch"]::before{inset:0;border:2px solid var(--title-shape-border);border-radius:50% 50% 13px 13px/24% 24% 13px 13px;background:linear-gradient(180deg,color-mix(in srgb,var(--title-shape-bg) 90%,white),var(--title-shape-bg));box-shadow:inset 0 0 0 5px color-mix(in srgb,var(--title-shape-border) 18%,transparent),0 18px 36px rgba(11,17,35,.17)}
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-arch"]::after{left:50%;top:8px;width:8px;height:8px;border-radius:50%;background:var(--title-shape-border);box-shadow:0 0 0 4px color-mix(in srgb,var(--title-shape-border) 24%,transparent);transform:translateX(-50%)}

/* 8. Quatre coins graphiques sans fond opaque. */
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-corners"]{padding:.38em .5em!important}
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-corners"]::before{inset:0;border:0;background:linear-gradient(var(--title-shape-border),var(--title-shape-border)) left top/32px 3px no-repeat,linear-gradient(var(--title-shape-border),var(--title-shape-border)) left top/3px 32px no-repeat,linear-gradient(var(--title-shape-border),var(--title-shape-border)) right bottom/32px 3px no-repeat,linear-gradient(var(--title-shape-border),var(--title-shape-border)) right bottom/3px 32px no-repeat}
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-corners"]::after{inset:8px;border:1px solid color-mix(in srgb,var(--title-shape-border) 22%,transparent);background:transparent}

/* 9. Halo de scène, idéal sur un fond illustré. */
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-spotlight"]{padding:.34em .52em .44em!important}
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-spotlight"]::before{inset:-18% -7% -10%;border:0;border-radius:50%;background:radial-gradient(ellipse at 50% 55%,color-mix(in srgb,var(--title-shape-bg) 82%,transparent),transparent 68%);filter:blur(2px)}
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-spotlight"]::after{left:22%;right:22%;bottom:.16em;height:3px;border-radius:99px;background:linear-gradient(90deg,transparent,var(--title-shape-border),transparent);box-shadow:0 0 17px var(--title-shape-border)}

/* 10. Bloc bicolore, plus graphique et compact. */
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-duotone"]{padding:.42em .65em!important}
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-duotone"]::before{inset:0;border:1px solid color-mix(in srgb,var(--title-shape-border) 52%,transparent);border-radius:16px;background:linear-gradient(108deg,var(--title-shape-bg) 0 78%,var(--title-shape-border) 78% 100%);box-shadow:0 17px 34px rgba(10,18,38,.16)}
html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-duotone"]::after{right:5%;top:50%;width:9px;height:9px;border:2px solid color-mix(in srgb,var(--title-shape-bg) 74%,white);border-radius:50%;background:transparent;transform:translateY(-50%)}

@media(max-width:600px){
  html body[data-home-layout] .hero-copy #heroTitle[data-title-shape^="pro-"]{max-width:calc(100% - 12px)!important;padding:.32em .46em!important}
  html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-signature"]{padding:.06em .03em .26em!important}
  html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-editorial"]{padding:.34em .48em .34em .62em!important}
  html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-ribbon"],html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-ticket"]{padding:.36em .62em!important}
  html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-arch"]{padding:.5em .52em .34em!important}
  html body[data-home-layout] .hero-copy #heroTitle[data-title-shape="pro-duotone"]{padding-right:.72em!important}
}

@media(prefers-reduced-motion:reduce){html body[data-home-layout] .hero-copy #heroTitle[data-title-shape^="pro-"]::before,html body[data-home-layout] .hero-copy #heroTitle[data-title-shape^="pro-"]::after{transition:none!important}}
