/* Accueil Huiles de Ricin, maquette ordinateur et mobile. */
body#index {
  --ricin-board-forest: #173f35;
  --ricin-board-cream: #f8f5ea;
  --ricin-board-sage: #e6ebdf;
}

body#index .ricin-hero {
  background: linear-gradient(110deg, var(--ricin-board-cream) 0 52%, #edf0e4 100%);
  border-radius: 16px;
}

body#index .ricin-hero__circle { background: #dfe6d6; }
body#index .ricin-hero__visual img.ricin-hero__product {
  mix-blend-mode: multiply;
  object-fit: contain;
}

body#index .ricin-actions .btn-primary {
  background: var(--ricin-board-forest);
  border-color: var(--ricin-board-forest);
  min-height: 46px;
}
body#index .ricin-actions .ricin-icon { display: none; }
body#index .ricin-text-link { text-underline-offset: .25em; }

body#index .ricin-board-reassurance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 24px;
  padding: 14px 0;
  list-style: none;
  color: var(--ricin-board-forest);
  background: #fbfaf5;
}
body#index .ricin-board-reassurance li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 4px 10px;
  text-align: center;
}
body#index .ricin-board-reassurance li + li { border-inline-start: 1px solid #dce2d7; }
body#index .ricin-board-reassurance svg { flex: none; width: 20px; height: 20px; }

body#index .ricin-univers--photos > a {
  overflow: hidden;
  border-radius: 10px;
  background: #f4f0e5;
}
body#index .ricin-univers--photos > a > img {
  width: 100%;
  padding: 0;
  object-fit: cover;
}
body#index .ricin-univers--photos .ricin-univers__body {
  padding: 12px 8px;
  text-align: center;
}
body#index .ricin-univers--photos .ricin-univers__body > strong {
  font-family: inherit;
  font-size: .94rem;
}
body#index .ricin-univers--photos .ricin-univers__body > span { display: none; }
@media (min-width:1200px) {
  body#index .ricin-univers--photos {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }
  body#index .ricin-univers--photos > a > img { height: clamp(100px, 10vw, 150px); }
}
@media (max-width:767.98px) {
  body#index .ricin-actions { display: grid; justify-items: center; }
  body#index .ricin-actions .btn-primary { width: 100%; }
  body#index .ricin-hero__visual { min-height: 242px; }
  body#index .ricin-board-reassurance li { flex-direction: column; gap: 4px; font-size: .73rem; line-height: 1.3; }
  body#index .ricin-univers--photos > a > img { height: clamp(85px, 28vw, 140px); }
}

body#index .ricin-selection .products { gap: clamp(10px, 1.4vw, 20px); }
body#index .ricin-selection .product-miniature {
  background: #fbfaf6;
  border: 1px solid #e3e8dc;
  border-radius: 14px;
}
body#index .ricin-selection .product-miniature__title { font-weight: 700; color: #173f35; }
body#index .ricin-board-guides {
  display: block;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid #dce5d8;
  border-radius: 16px;
  background: linear-gradient(115deg, #f8f5ea, #e6ebdf);
}
body#index .ricin-board-guides p:not(.ricin-eyebrow) { max-width: 60ch; }
body#index .ricin-board-guides .ricin-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

/* Composition du premier écran et accès direct à la fiche du flacon. */
body#index .ricin-hero { grid-template-columns: 1.05fr 1fr; min-height: 0; }
body#index .ricin-hero__visual { background: transparent; }
body#index .ricin-hero__circle { width: min(86%, 440px); }
body#index .ricin-board-product {
  display: grid;
  place-items: center;
  width: min(100%, 410px);
  aspect-ratio: 1;
  border-radius: 50%;
  mix-blend-mode: multiply;
}
body#index .ricin-board-product:focus-visible { outline: 2px solid #173f35; outline-offset: 4px; }
body#index .ricin-hero__visual .ricin-board-product img.ricin-hero__product {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  transform: none;
  clip-path: none;
  mix-blend-mode: normal;
}
body#index .ricin-hero__copy { align-self: center; }
body#index #ricin-selection { scroll-margin-top: 9rem; }
@media (min-width: 768px) {
  body#index .ricin-hero__visual { min-height: 380px; padding: clamp(12px, 2vw, 28px); }
}
@media (max-width: 767.98px) {
  body#index .ricin-hero { grid-template-columns: 1fr; }
  body#index .ricin-hero__visual { min-height: 0; max-height: none; padding: 4px 20px 18px; }
  body#index .ricin-hero__circle { width: min(80%, 250px); }
  body#index .ricin-board-product { width: min(78%, 236px); }
  body#index #ricin-selection { scroll-margin-top: 5rem; }
}

/* Header d’accueil sur toute la largeur, avec navigation native Hummingbird. */
body#index #header { --ricin-header-gutter: clamp(16px, 3vw, 52px); }
body#index #header :is(.header-top > .container-md, .header-bottom__container) {
  width: 100%;
  max-width: none;
  padding-inline: var(--ricin-header-gutter);
}
body#index #header .ricin-shipping {
  background: #173f35;
  color: #fff;
  padding: 8px var(--ricin-header-gutter);
  font-size: clamp(.7rem, 1vw, .85rem);
  line-height: 1.35;
  letter-spacing: .01em;
}
body#index #header .header-bottom { background: #fcfbf7; }
body#index #header .header-bottom__logo img { mix-blend-mode: multiply; }
body#index #header #_desktop_ps_searchbar input {
  min-height: 42px;
  border-color: #d8dfd2;
  border-radius: 9px;
  background: #f6f6ef;
}
@media (min-width: 1200px) {
  body#index #header .ps-mainmenu--desktop { border-radius: 10px; margin-block-end: 8px; }
  body#index #header #top-menu { justify-content: space-evenly; }
  body#index #header .ps-mainmenu__tree-item-wrapper { min-height: 48px; }
}

/* Visuel du flacon intégré au fond, avec une composition dédiée au mobile. */
body#index .ricin-hero {
  background: linear-gradient(103deg, #faf6eb 0%, #f7f4e9 48%, #e9eee0 100%);
  border-color: #e8e8dc;
  border-radius: 18px;
}
body#index .ricin-hero h1 { color: #173f35; letter-spacing: -.045em; }
body#index .ricin-hero__circle { background: #dce5d2; }
body#index .ricin-hero__visual .ricin-board-product { width: min(100%, 430px); }
body#index .ricin-hero__visual .ricin-board-product img { object-position: center; }
body#index .ricin-hero__note { display: none; }
@media (min-width: 768px) {
  body#index .ricin-hero__copy { padding-block: clamp(36px, 4vw, 70px); }
  body#index .ricin-hero__visual { min-height: 0; }
}
@media (max-width: 767.98px) {
  body#index #header { --ricin-header-gutter: 12px; }
  body#index #header .header-bottom__row { flex-wrap: wrap; }
  body#index #header #_desktop_ps_searchbar:has(form) {
    display: flex !important;
    flex: 0 0 100%;
    width: 100%;
    order: 3 !important;
    padding-bottom: 9px;
  }
  body#index #header .header-bottom__row:has(#_desktop_ps_searchbar form) > .ps-searchbar--mobile {
    display: none !important;
  }
  body#index .ricin-hero { margin-top: 12px; border-radius: 14px; }
  body#index .ricin-hero__copy { padding: 24px 19px 12px; }
  body#index .ricin-hero__visual .ricin-board-product { width: min(90%, 250px); }
  body#index .ricin-hero__visual { padding: 0 16px 10px; }
}

/* La sélection possède déjà son propre titre dans le gabarit d’accueil. */
body#index .ricin-selection .module-products > .section-title { display: none; }
body#index .ricin-selection .module-products { max-width: none; padding-inline: 0; }
body#index .ricin-selection .module-products__buttons { margin-block-start: 1rem; }
body#index .ricin-selection .module-products__buttons .btn { min-height: 44px; }
body#index .ricin-selection .product-miniature { min-width: 0; }

/* Le fond crème et sauge sert de support au fondu de la photo produit. */
body#index .ricin-hero { isolation: isolate; }
body#index .ricin-hero__visual { isolation: auto; }
body#index .ricin-hero__circle { z-index: 0; pointer-events: none; width: min(84%, 425px); }
body#index .ricin-hero__visual .ricin-board-product { position: relative; z-index: 1; }
body#index .ricin-hero__visual .ricin-board-product img.ricin-hero__product {
  transform: translateY(-8%) scale(1.12);
}
@media (max-width: 767.98px) {
  body#index .ricin-hero__visual { padding-block-start: 8px; }
  body#index .ricin-hero__circle { width: min(82%, 245px); }
  body#index .ricin-hero__visual .ricin-board-product img.ricin-hero__product {
    transform: translateY(-5%) scale(1.07);
  }
}

/* Hero bord à bord, aligné sur le premier écran. */
body#index { container-type: inline-size; }
body#index .ricin-hero {
  box-sizing: border-box;
  width: 100cqw;
  max-width: none;
  margin: 0 calc((100% - 100cqw) / 2);
  border: 0;
  border-radius: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: max(490px, calc(100svh - 228px));
  background: linear-gradient(104deg, #f8f4e9 0%, #f5f1e5 45%, #e7eddb 100%);
}
body#index .ricin-hero__copy {
  padding: clamp(36px, 6vw, 110px) 16px clamp(36px, 6vw, 110px) clamp(36px, 7vw, 140px);
}
body#index .ricin-hero h1 { font-size: clamp(42px, 5.2vw, 84px); line-height: .99; max-width: 13ch; }
body#index .ricin-hero .ricin-intro { max-width: 42ch; }
body#index .ricin-hero__circle { width: min(82%, 610px); }
body#index .ricin-hero__visual .ricin-board-product { width: min(78%, 540px); }
@media (max-width: 767.98px) {
  body#index .ricin-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: calc(100svh - 120px);
    align-content: center;
  }
  body#index .ricin-hero__copy { padding: 28px 24px 12px; }
  body#index .ricin-hero h1 { font-size: clamp(32px, 9.5vw, 52px); }
  body#index .ricin-hero__visual { padding: 8px 16px 18px; }
  body#index .ricin-hero__circle { width: min(78%, 275px); }
  body#index .ricin-hero__visual .ricin-board-product { width: min(72%, 270px); }
}

/* Composition de la référence : bannière, réassurance, six univers. */
body#index .ricin-hero { min-height: 0; }
body#index .ricin-hero__copy {
  padding: clamp(32px, 3.7vw, 78px) 10px clamp(32px, 3.7vw, 78px) clamp(30px, 4.7vw, 98px);
}
body#index .ricin-hero h1 { max-width: none; font-size: clamp(37px, 5.65vw, 114px); line-height: .99; }
body#index .ricin-hero .ricin-intro { max-width: 62ch; font-size: clamp(15px, 1.46vw, 29px); line-height: 1.43; }
body#index .ricin-hero__visual { padding: 0 18px; }
body#index .ricin-hero__circle { width: min(86%, 825px); }
body#index .ricin-hero__visual .ricin-board-product { width: min(86%, 680px); }
body#index .ricin-hero__visual .ricin-board-product img.ricin-hero__product { transform: translateY(-7%) scale(1.15); }
body#index .ricin-board-reassurance {
  width: 100cqw;
  margin: 0 calc((100% - 100cqw) / 2) 20px;
  padding: clamp(12px, 1.3vw, 24px) 3vw;
}
body#index .ricin-section:has(> .ricin-univers--photos) {
  width: 100cqw;
  margin-inline: calc((100% - 100cqw) / 2);
  padding-inline: clamp(12px, 1.3vw, 27px);
}
body#index .ricin-section:has(> .ricin-univers--photos) > .ricin-section__heading { display: none; }
body#index .ricin-univers--photos { gap: clamp(10px, 1.15vw, 24px); }
body#index .ricin-univers--photos > a { background: #f5f0e5; }
body#index .ricin-univers--photos > a > img { height: auto; aspect-ratio: 1.48; object-fit: cover; }
body#index .ricin-univers--photos .ricin-univers__body { padding: clamp(10px, 1vw, 21px) 6px; }
body#index .ricin-univers--photos .ricin-univers__body > strong { font-size: clamp(.89rem, 1.25vw, 1.55rem); }
@media (max-width:767.98px) {
  body#index .ricin-hero { min-height: 0; }
  body#index .ricin-hero__copy { padding: 20px clamp(19px, 7vw, 35px) 4px; }
  body#index .ricin-hero h1 { font-size: clamp(30px, 9.2vw, 56px); }
  body#index .ricin-hero .ricin-intro { font-size: clamp(14px, 3.7vw, 21px); line-height: 1.36; }
  body#index .ricin-hero__visual { padding: 0; }
  body#index .ricin-hero__circle { width: 84%; }
  body#index .ricin-hero__visual .ricin-board-product { width: min(74%, 420px); }
  body#index .ricin-hero__visual .ricin-board-product img.ricin-hero__product { transform: translateY(-2%) scale(1.12); }
  body#index .ricin-board-reassurance { padding-inline: 5px; margin-bottom: 14px; }
  body#index .ricin-board-reassurance li { flex-direction: row; gap: 4px; padding-inline: 3px; font-size: clamp(9px, 2.5vw, 13px); }
  body#index .ricin-board-reassurance svg { width: 15px; height: 15px; }
  body#index .ricin-univers--photos > a > img { aspect-ratio: 2.75; }
}
