/* Auctio Valoris — révision 1.2.0.
   Couche finale autonome : sélecteurs dédiés pour le cube 3D et arrondis administrables.
   Ne modifie pas le backend WordPress, les articles ou les extensions métier. */
:root {
    --av-card-radius: 26px;
    --av-button-radius: 22px;
    --av-card-elevation: 0 10px 24px rgba(16,35,51,.08);
    --av-card-elevation-hover: 0 18px 38px rgba(16,35,51,.12);
    --av-light-ivory: #faf7f1;
    --av-pure-white: #ffffff;
}

/* Cube restauré : aucune classe générique « face » ou « cube » ne peut agir ici. */
.hero.textured-hero { overflow: hidden; }
.hero.textured-hero::before,
.hero.textured-hero::after,
.hero .cube-stage::before,
.hero .cube-stage::after,
.hero .hero-artwork::before,
.hero .hero-artwork::after {
    content: none !important;
    display: none !important;
    background: none !important;
}
.hero .av-cube3d-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 455px;
    width: 100%;
    perspective: 1100px;
    perspective-origin: center center;
    overflow: visible;
    isolation: auto;
    touch-action: none;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}
.hero .av-cube3d-stage.is-dragging { cursor: grabbing; }
.hero .av-cube3d {
    --av-cube-size: 324px;
    --av-cube-depth: 162px;
    position: relative;
    display: block;
    flex: none;
    width: var(--av-cube-size);
    height: var(--av-cube-size);
    transform-origin: 50% 50% 0;
    transform-style: preserve-3d !important;
    transform: rotateX(-25deg) rotateY(38deg);
    overflow: visible !important;
    isolation: auto !important;
    contain: none !important;
    filter: none !important;
    opacity: 1 !important;
    backface-visibility: visible;
    will-change: transform;
    -webkit-user-select: none;
    user-select: none;
}
.hero .av-cube3d__face {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    background: #ded5c1;
    border: 2px solid rgba(228,189,134,.85);
    border-radius: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: inset 0 0 0 3px rgba(13,31,39,.12);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}
.hero .av-cube3d__face img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}
.hero .av-cube3d__face--front  { transform: rotateY(0deg) translateZ(var(--av-cube-depth)); }
.hero .av-cube3d__face--back   { transform: rotateY(180deg) translateZ(var(--av-cube-depth)); }
.hero .av-cube3d__face--right  { transform: rotateY(90deg) translateZ(var(--av-cube-depth)); }
.hero .av-cube3d__face--left   { transform: rotateY(-90deg) translateZ(var(--av-cube-depth)); }
.hero .av-cube3d__face--top    { transform: rotateX(90deg) translateZ(var(--av-cube-depth)); }
.hero .av-cube3d__face--bottom { transform: rotateX(-90deg) translateZ(var(--av-cube-depth)); }
.hero .av-cube3d__face:focus-visible { outline: 3px solid var(--av-gold-bright); outline-offset: 4px; }

/* Pas de pétales, flocons, cercles, écussons ou autres ornements superflus. */
.hero .eyebrow-spark,
.intro-ribbon-star,
.process-note span,
.highlight-decoration,
.highlight-aside,
.highlight-aside-line { display: none !important; }
.highlight::before { content: none !important; display: none !important; }
.highlight::after { content: none !important; display: none !important; }
.highlight {
    position: relative;
    display: block !important;
    min-height: 0;
    overflow: hidden;
    background: linear-gradient(115deg,#102333,#193540) !important;
    border: 1px solid rgba(210,180,131,.13);
    border-radius: var(--av-card-radius) !important;
    box-shadow: var(--av-card-elevation) !important;
}
.highlight-content { position: relative; z-index: 1; }

/* Une seule source des arrondis : App. → Personnaliser → Auctio Valoris → Couleurs et typographies. */
:is(.category-card,.journal-feature-v18,.journal-small-v18,.blog-feature-story,.blog-archive-row,
    .article-main,.sidebar-card,.highlight,.journal-empty,.journal-feature,.journal-small,
    .archive-card,.card,.post-card,.form-card,.blog-archive-card,
    .entry-content .wp-block-cover,.entry-content .wp-block-group.is-style-rounded) {
    border-radius: var(--av-card-radius) !important;
    box-shadow: var(--av-card-elevation) !important;
}
:is(.category-card,.journal-feature-v18,.journal-small-v18,.blog-feature-story,.blog-archive-row,
    .highlight,.archive-card,.card,.post-card,.blog-archive-card):hover {
    box-shadow: var(--av-card-elevation-hover) !important;
}
:is(.btn,.nav-cta,.main-nav .nav-cta,.entry-content .wp-block-button__link,
    .av-comments input[type=submit],.av-pagination a,.av-pagination span.page-numbers,
    .all-articles-link,.journal-footer-v18 .all-articles-link,
    button[type=submit],input[type=submit]) {
    border-radius: var(--av-button-radius) !important;
}
:is(.btn,.nav-cta,.main-nav .nav-cta,.entry-content .wp-block-button__link,
    .av-comments input[type=submit],button[type=submit],input[type=submit]) {
    box-shadow: 0 7px 20px rgba(10,27,39,.13) !important;
}
/* Ne pas forcer des ombres sur tous les liens simples. */
:is(.category-media,.journal-feature-v18 figure,.journal-small-v18-media) { border-radius: 0; }

@media(max-width:1000px){
    .hero .av-cube3d { --av-cube-size: 252px; --av-cube-depth: 126px; }
    .hero .av-cube3d-stage { min-height: 375px; }
}
@media(max-width:760px){
    .hero .av-cube3d { --av-cube-size: 218px; --av-cube-depth: 109px; }
    .hero .av-cube3d-stage { min-height: 315px; }
    .hero-artwork { isolation: auto !important; }
    .highlight-content { padding: 43px 26px 47px; }
}
@media(max-width:400px){
    .hero .av-cube3d { --av-cube-size: 196px; --av-cube-depth: 98px; }
    .hero .av-cube3d-stage { min-height: 286px; }
}
@media(prefers-reduced-motion:reduce){
    .hero .av-cube3d { will-change: auto; }
}


