/* AuGré France — CSS ciblé. Ne modifie ni calculs WooCommerce ni permissions. */
/* 1) Homepage: image immediately below navigation, no redundant beige 'Accueil' box. */
body.home .wp-block-post-title, body.page-id-1849 .wp-block-post-title,
body.page-id-1849 .augre-home-heading-hidden {display:none!important}
body.page-id-1849 main,body.home main {padding-top:0!important;margin-top:0!important}
body.page-id-1849 .wp-block-post-content,body.home .wp-block-post-content {margin-top:0!important;padding-top:0!important}
body.page-id-1849 .au-homepage-v315 {margin-top:0!important}
body.page-id-1849 .au-home-hero {margin-top:0!important}
/* 2) Updated brand eyebrow. */
body.page-id-1849 .au-home-hero-copy > span {text-transform:none!important;}
body.page-id-1849 .au-home-heading > span {font-size:clamp(16px,1.7vw,21px)!important;text-transform:none!important;font-weight:700!important;letter-spacing:.02em!important;line-height:1.55!important}
/* 3) Condensed homepage history block with rotating real catalogue photos. */
body.page-id-1849 .au-home-about {min-height:0!important;padding:clamp(18px,3vw,34px)!important;display:grid!important;grid-template-columns:minmax(0,1.25fr) minmax(240px,.75fr)!important;gap:clamp(18px,4vw,40px)!important;align-items:center!important}
body.page-id-1849 .au-home-about > div:first-child {min-width:0!important}
body.page-id-1849 .au-home-about h2 {font-size:clamp(27px,2.9vw,40px)!important;line-height:1.1!important;margin:10px 0 14px!important}
body.page-id-1849 .au-home-about p {font-size:clamp(14px,1.25vw,17px)!important;line-height:1.5!important;margin:9px 0!important}
body.page-id-1849 .au-home-about a {margin-top:12px!important}
body.page-id-1849 .au-home-about-signature.augre-home-photo-gallery {align-self:stretch!important;display:block!important;min-height:210px!important;height:clamp(210px,23vw,300px)!important;overflow:hidden!important;border-radius:12px!important;background:#eee7dd!important;min-width:0!important}
body.page-id-1849 .augre-about-image-link {display:block!important;width:100%!important;height:100%!important;margin:0!important}
body.page-id-1849 .augre-about-image-link img {display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}
@media(max-width:780px){
 body.page-id-1849 .au-home-about {grid-template-columns:1fr!important;padding:18px!important}
 body.page-id-1849 .au-home-about-signature.augre-home-photo-gallery{height:245px!important;min-height:245px!important}
}
/* 4) Mon Compte: top aligned, duplicate switch removed; two forms remain desktop side-by-side. */
body.woocommerce-account .augre-duplicate-switch {display:none!important}
body.page-id-9 .wp-block-post-title {margin-top:4px!important;margin-bottom:9px!important;padding-top:12px!important;padding-bottom:12px!important;line-height:1.2!important;font-size:clamp(24px,3.2vw,37px)!important}
body.page-id-9 main {padding-top:8px!important;margin-top:0!important}
body.page-id-9 .wp-block-post-content {margin-top:0!important;padding-top:0!important}
body.page-id-9 .woocommerce {margin-top:6px!important}
body.page-id-9 #customer_login {margin-top:8px!important}
body.page-id-9 #customer_login h2 {margin:4px 0 10px!important;font-size:clamp(21px,2.2vw,26px)!important}
body.page-id-9 #customer_login form.login,body.page-id-9 #customer_login form.register {margin-top:7px!important}
/* When collapsed, don't show an inert 'On verra plus tard' button. */
body.woocommerce-account .augre-reg-extra.augre-reg-collapsed {padding:10px 12px!important;margin:12px 0!important}
body.woocommerce-account .augre-reg-extra.augre-reg-collapsed .augre-reg-later {display:none!important}
body.woocommerce-account .augre-reg-extra.augre-reg-collapsed .augre-reg-toggle {margin:0!important;min-height:42px}
/* Leave intrinsic registered user fields and WooCommerce account routes untouched. */
@media(max-width:767px){
 body.page-id-9 main{padding-top:0!important}
 body.page-id-9 #customer_login {display:block!important}
 body.page-id-9 #customer_login .col-1,body.page-id-9 #customer_login .col-2 {width:100%!important;float:none!important;margin:0 0 20px!important}
 body.page-id-9 .wp-block-post-title {font-size:25px!important}
}
/* 5) Category-aware product navigation and real variants from the same model. */
body.single-product .augre-obsolete-product-nav {display:none!important}
body.single-product .augre-universe-navigation {display:flex!important;align-items:stretch!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:8px!important;margin:10px 0 17px!important;clear:both!important;width:100%!important}
body.single-product .augre-universe-navigation a {min-width:0;flex:1 1 160px;display:block!important;box-sizing:border-box!important;border:1px solid #ccb8a4!important;border-radius:8px!important;background:#f8f3ed!important;text-decoration:none!important;padding:8px 10px!important;color:#2c3931!important;line-height:1.3!important;box-shadow:none!important}
body.single-product .augre-universe-navigation .augre-univ-next {text-align:right}
body.single-product .augre-universe-navigation a span {display:block;font-size:11px!important;letter-spacing:.1em;text-transform:uppercase;color:#946c4f}
body.single-product .augre-universe-navigation a small {display:block!important;margin-top:3px!important;font-size:12px!important;color:#3c3a35}
body.single-product .augre-universe-navigation a:hover {border-color:#98775d!important;background:#f2e8dc!important}
body.single-product .augre-model-options {margin:25px 0 8px!important;padding:19px 0 0!important;border-top:1px solid #d8d1c8!important;max-width:100%;clear:both}
body.single-product .augre-model-options h3 {font-size:clamp(18px,1.7vw,22px)!important;line-height:1.3;margin:0 0 3px!important}
body.single-product .augre-model-options .augre-model-subtitle {font-size:13px!important;color:#806c5b!important;margin:0 0 13px!important}
body.single-product .augre-model-grid {display:grid!important;grid-template-columns:repeat(auto-fill,minmax(85px,1fr))!important;gap:12px!important;align-items:start}
body.single-product .augre-model-option {display:block!important;color:#303930!important;font-size:11px!important;line-height:1.3!important;text-decoration:none!important;text-align:center!important;min-width:0}
body.single-product .augre-model-option img {width:100%!important;max-width:128px!important;aspect-ratio:4/5!important;object-fit:cover!important;height:auto!important;border:1px solid #e1d7cd!important;border-radius:7px!important;margin:0 auto 7px!important;display:block!important}
body.single-product .augre-model-option:hover img, body.single-product .augre-model-option:focus-visible img {border:2px solid #a78166!important}
body.single-product .augre-model-option span {display:block!important;overflow-wrap:anywhere}
body.single-product .augre-model-back {display:inline-block!important;font-size:12px!important;margin:14px 0 0!important;text-decoration:underline!important;text-underline-offset:3px!important}
@media(max-width:670px){
 body.single-product .augre-universe-navigation a{flex-basis:100%;text-align:left!important}
 body.single-product .augre-model-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

/* v1.1 — PRO storefront: remove top whitespace after compact header. */
body.page-id-6 .wp-site-blocks > main, body.page-id-6 main.wp-block-group,
body.page-id-6 main, body.page-id-6 .wp-block-post-content,
body.page-id-6 .entry-content {margin-top:0!important;padding-top:0!important}
body.page-id-6 main > :first-child,body.page-id-6 .wp-block-post-content > :first-child {
 margin-top:0!important;padding-top:0!important
}
/* Cards use actual mannequin photos picked from approved-pro catalogue. */
body.augre-approved-shop a[href*="univers="] img{object-fit:cover!important;object-position:top center!important}
/* v1.1 — Authenticated WooCommerce account, desktop layout in two practical columns. */
body.augre-account-authenticated.woocommerce-account .woocommerce{
 display:grid!important;grid-template-columns:minmax(180px,240px) minmax(0,1fr)!important;
 gap:clamp(18px,3vw,35px)!important;align-items:start!important;
 max-width:1120px!important;width:calc(100% - 32px)!important;margin:8px auto 24px!important
}
body.augre-account-authenticated.woocommerce-account .woocommerce-MyAccount-navigation{
 float:none!important;width:100%!important;max-width:none!important;grid-column:1!important;
 margin:0!important;padding:0!important
}
body.augre-account-authenticated.woocommerce-account .woocommerce-MyAccount-content{
 float:none!important;width:100%!important;max-width:none!important;min-width:0!important;
 grid-column:2!important;margin:0!important;padding:20px!important;
 border:1px solid #e3dcd2!important;border-radius:12px!important;box-sizing:border-box!important;
 overflow-wrap:anywhere!important
}
body.augre-account-authenticated.woocommerce-account .woocommerce-notices-wrapper{
 grid-column:1/-1!important;width:100%!important
}
body.augre-account-authenticated.woocommerce-account .woocommerce-MyAccount-navigation ul{
 display:flex!important;flex-direction:column!important;gap:4px!important;list-style:none!important;
 margin:0!important;padding:12px!important
}
body.augre-account-authenticated.woocommerce-account .woocommerce-MyAccount-navigation a{
 display:block!important;padding:11px 12px!important;border-radius:8px!important;text-decoration:none!important;
 font-size:14px!important
}
body.augre-account-authenticated.woocommerce-account .woocommerce-MyAccount-navigation .is-active > a{
 background:#3c6049!important;color:white!important
}
@media(max-width:720px){
 body.augre-account-authenticated.woocommerce-account .woocommerce{grid-template-columns:minmax(0,1fr)!important;gap:10px!important;width:calc(100% - 20px)!important}
 body.augre-account-authenticated.woocommerce-account .woocommerce-MyAccount-navigation,
 body.augre-account-authenticated.woocommerce-account .woocommerce-MyAccount-content{grid-column:1!important}
 body.augre-account-authenticated.woocommerce-account .woocommerce-MyAccount-content{padding:14px!important}
 body.augre-account-authenticated.woocommerce-account .woocommerce-MyAccount-navigation ul{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
}
/* Hide only obsolete product-navigation buttons, never WooCommerce default product links. */
body.single-product .augre-obsolete-product-nav{display:none!important}

/* 1.3: target actual PRO landing (ID 1908), not /boutique/.
 * The measured lift moves its ENTIRE content while shrinking the document flow. */
body.page-id-1908.augre-approved-shop main.augre-pro-tight {
  position:relative!important;
  transform:translateY(calc(-1 * var(--augre-pro-lift,0px)))!important;
  margin-bottom:calc(-1 * var(--augre-pro-lift,0px))!important;
}
/* The block theme may add padding/margins on nested page wrappers. */
body.page-id-1908.augre-approved-shop .wp-site-blocks > main,
body.page-id-1908.augre-approved-shop main.wp-block-group,
body.page-id-1908.augre-approved-shop main .wp-block-post-content {
  padding-top:0!important;
}
body.page-id-1908.augre-approved-shop main > :first-child {
  margin-top:0!important;
}
body.augre-approved-shop a[href*="univers="] img.augre-universe-featured-photo {
  object-fit:cover!important;
  object-position:center 20%!important;
  width:100%!important;
  height:100%!important;
}
@media(max-width:760px){
 body.augre-approved-shop a[href*="univers="] img.augre-universe-featured-photo {object-position:center top!important}
}

/* v1.5: actual featured imagery fills image tiles, with portrait-friendly crop. */
body.page-id-1908.augre-approved-shop img.augre-universe-featured-photo {object-fit:cover!important;object-position:center 30%!important;display:block!important;}

/* v1.7 : Unify the four PRO universe photo frames at a portrait ratio of 4:5.
   This only touches the four image regions tagged by the landing-page script. */
body.page-id-1908.augre-approved-shop .augre-universe-photo-frame {
  aspect-ratio:4 / 5!important; overflow:hidden!important; display:block!important;
}
body.page-id-1908.augre-approved-shop img.augre-universe-photo-original {
  aspect-ratio:4 / 5!important;object-fit:cover!important;object-position:center top!important;
}
body.page-id-1908.augre-approved-shop img.augre-pro-photo-overlay {
  object-fit:cover!important;object-position:center top!important;
}

/* v1.8.0 - Four retail universe photos, always portrait 4:5.
   The B2B picture-order rules and product gallery images are NOT changed. */
body.page-id-6 .augre-universe-photo-frame,
body.woocommerce-shop .augre-universe-photo-frame,
body.post-type-archive-product .augre-universe-photo-frame {
  aspect-ratio:4 / 5!important;display:block!important;overflow:hidden!important;
}
body.page-id-6 img.augre-universe-photo-original,
body.page-id-6 img.augre-pro-photo-overlay,
body.woocommerce-shop img.augre-universe-photo-original,
body.woocommerce-shop img.augre-pro-photo-overlay,
body.post-type-archive-product img.augre-universe-photo-original,
body.post-type-archive-product img.augre-pro-photo-overlay {
  aspect-ratio:4 / 5!important;object-fit:cover!important;object-position:center top!important;
}
