.dermo-route main{padding:0;background:#faf7f2}
.dermo-route main>:not(#dermo-page){display:none!important}
.dermo-route #dermo-page{display:block!important}
.dermo-page{max-width:1200px;margin:0 auto;padding:32px 24px 64px;color:#18161a}
.dermo-back{color:#962c61;text-decoration:none;font-size:.9rem}
.dermo-heading{text-align:center;padding:28px 0 38px}
.dermo-landing-hero,.dermo-family-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:center;text-align:left;margin:18px 0 34px;padding:clamp(28px,5vw,56px);border:1px solid #eadde3;border-radius:24px;background:linear-gradient(120deg,#fffaf7 0%,#fff 58%,#fcecf4 100%);box-shadow:0 16px 40px rgba(80,34,58,.08)}
.dermo-landing-hero h1,.dermo-family-hero h1{margin:10px 0 12px;font-size:clamp(2.6rem,6vw,5.4rem);font-weight:850;letter-spacing:-.06em;color:#18161a}
.dermo-landing-hero>div:first-child>p:last-child,.dermo-family-hero>div:first-child>p:last-child{max-width:620px;margin:0;color:#71646b;font-size:clamp(1rem,1.8vw,1.2rem);line-height:1.55}
.dermo-hero-stat{display:grid;place-items:center;min-width:142px;aspect-ratio:1;border-radius:50%;background:#18161a;color:#fff;text-align:center;padding:18px;box-sizing:border-box}
.dermo-hero-stat strong{font-size:clamp(2.6rem,5vw,4.2rem);line-height:1;color:#f4a4c9}.dermo-hero-stat span{max-width:90px;font-size:.76rem;line-height:1.25;text-transform:uppercase;letter-spacing:.08em}
.dermo-eyebrow{color:#962c61;font-size:.78rem;letter-spacing:.16em;text-transform:uppercase}
.dermo-heading h1{font-size:clamp(2rem,4vw,3.4rem);letter-spacing:-.04em;line-height:1.15;margin:14px 0}
.dermo-heading>p:last-child{color:#71646b;line-height:1.6;margin:0}
.dermo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.dermo-card{position:relative;display:block;min-width:0;background:#fffaf7;border:1px solid #eadde3;border-radius:14px;overflow:hidden;text-decoration:none;color:#18161a;transition:border-color .2s,box-shadow .2s}
.dermo-image{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.dermo-card h2{font-size:1.1rem;font-weight:600;line-height:1.4;margin:0;padding:18px}
.dermo-card>span{position:absolute;bottom:19px;right:18px;color:#e85aa6}

.dermo-card:focus-visible{outline:3px solid #e85aa6;outline-offset:3px}
.dermo-pending{max-width:700px;margin:0 auto;padding:32px;background:#fff;border:1px solid #eadde3;border-radius:14px;line-height:1.65}
.dermo-pending a{color:#962c61}.dermo-selection{color:#962c61}

@media(max-width:1000px){.dermo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}}
@media(max-width:600px){.dermo-page{padding:24px 18px 44px}.dermo-grid{gap:16px}.dermo-heading{padding:20px 0 28px}.dermo-landing-hero,.dermo-family-hero{grid-template-columns:1fr;gap:22px;margin:8px 0 26px;padding:26px 22px;border-radius:20px}.dermo-landing-hero h1,.dermo-family-hero h1{font-size:clamp(2.5rem,14vw,4rem)}.dermo-hero-stat{min-width:92px;width:92px;aspect-ratio:auto;border-radius:14px;padding:12px 18px;display:flex;gap:8px;justify-content:flex-start}.dermo-hero-stat strong{font-size:2rem}.dermo-hero-stat span{max-width:none;text-align:left}.dermo-card h2{font-size:1rem;padding:14px 10px;min-height:72px}.dermo-card>span{display:none}.dermo-pending{padding:22px}}

/* Center the final pair, retaining one normal column per card and the grid gap. */
.home-route .family-nav{grid-auto-rows:1fr}
.final-universe-row{grid-column:1 / -1;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));column-gap:inherit}
.home-route .family-nav .final-universe-row>a{grid-column:2 / span 2;min-height:0}
.home-route .family-nav .final-universe-row>.advent-universe-card{grid-column:4 / span 2;min-height:0}
@media(max-width:1000px){.final-universe-row{display:contents}.home-route .family-nav .final-universe-row>a,.home-route .family-nav .final-universe-row>.advent-universe-card{grid-column:auto}}
@media(max-width:350px){.dermo-grid{grid-template-columns:1fr}.dermo-card h2{min-height:0}}

/* Family pages follow the compact Beauty category header; the editorial landing
   above keeps its own larger treatment. */
.dermo-family-hero{display:block;text-align:left;margin:18px 0 24px;padding:0 0 16px;border:0;border-bottom:1px solid #eadde3;border-radius:0;background:transparent;box-shadow:none}
.dermo-family-hero h1{margin:0 0 6px;font-size:clamp(2rem,4.5vw,3.25rem);line-height:1.04;letter-spacing:-.045em}
.dermo-family-count{margin:0;color:#71646b;font-size:.95rem;font-weight:700;line-height:1.3}
.dermo-face-results{gap:18px}
.dermo-product-grid{gap:16px;margin-top:0}
.dermo-product-card{padding:18px;border-radius:16px;box-shadow:0 7px 26px rgba(37,18,72,.045)}
.dermo-product-media{height:208px;padding:28px;background:#fffaf7;border-radius:11px}
.dermo-product-image{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center}
.dermo-product-brand{margin:12px 0 5px;font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.dermo-product-card h2{font-size:1rem;line-height:1.35}
.dermo-product-price{margin:12px 0;font-weight:700;color:var(--green,#962c61)}
.dermo-product-card button{min-height:44px;border-radius:10px}
.dermo-commercial{width:100%;margin:0 0 24px;padding:24px 0 26px;border:1px solid var(--kp-border,#eadde3);border-radius:24px;background-color:#f6f8f1;background-image:linear-gradient(rgba(255,255,255,.56),rgba(255,255,255,.56)),url('/beauty/comparateur/assets/commande.webp');background-position:center;background-size:cover;box-shadow:0 12px 34px rgba(37,18,72,.06)}
.dermo-commercial>*{margin-left:clamp(22px,4vw,52px);margin-right:clamp(22px,4vw,52px)}
.dermo-commercial__first{max-width:900px;margin-top:0;margin-bottom:18px;color:var(--kp-ink,#171217);font-size:clamp(1.8rem,3.4vw,3rem);font-weight:800;line-height:1.08;letter-spacing:-.04em;overflow-wrap:break-word}
.dermo-commercial__basket-lead{max-width:760px;margin-top:0;margin-bottom:18px;color:var(--kp-ink,#171217);font-size:clamp(1.7rem,4vw,2.8rem);font-weight:800;line-height:1}
.dermo-commercial__basket-lead em,.dermo-commercial__text em{color:var(--kp-rose,#e85aa6);font-family:var(--kp-category-font);font-style:normal;font-weight:var(--kp-category-weight);}
.dermo-commercial__basket-lead em{font-size:1.5em;line-height:.82;vertical-align:-.08em}
.dermo-commercial__action{max-width:900px;margin-top:0;margin-bottom:10px;color:var(--kp-ink,#171217);font-size:clamp(1.15rem,1.8vw,1.4rem);font-weight:750;line-height:1.35}
.dermo-commercial__text{max-width:900px;margin-top:0;margin-bottom:0;color:var(--kp-ink,#171217);font-size:clamp(1.05rem,1.6vw,1.3rem);font-weight:700;line-height:1.35;overflow-wrap:break-word}
.dermo-commercial__text em{display:inline-block;margin:0 .06em;font-size:2em;line-height:.78;vertical-align:-.1em}
.dermo-family-banner-wrap{position:relative;overflow:hidden}
.dermo-family-banner-wrap h1{position:absolute;inset-inline:clamp(18px,4vw,54px);bottom:clamp(18px,4vw,48px);z-index:1;max-width:80%;margin:0;color:#2b201d;text-align:left;text-shadow:0 1px 12px rgba(255,245,226,.42)}
.dermo-family-hero .dermo-family-banner{display:block;width:100%;height:auto;max-height:420px;object-fit:cover;border-radius:18px}
.dermo-family-hero .dermo-family-banner-wrap:has(.dermo-family-banner){margin-bottom:10px}
.dermo-product-media{display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:38px;background:#fffaf7}
.dermo-product-image{object-fit:contain;object-position:center}
.dermo-product-card h2 a{color:inherit;text-decoration:none}

/* The same font and weight as the homepage category names. */
.dermo-card h2{font-family:var(--kp-category-font);font-weight:var(--kp-category-weight);font-size:clamp(1.35rem,2.1vw,1.9rem);line-height:1.05;text-align:center;display:flex;align-items:center;justify-content:center;height:80px;min-height:80px;padding:10px;box-sizing:border-box;overflow-wrap:normal}
.dermo-card[data-family="cheveux-cuir-chevelu"] h2{font-size:clamp(1.3rem,2vw,1.8rem)}

.dermo-face-results{display:grid;grid-template-columns:1fr;gap:24px;align-items:start}
.dermo-results-head,.dermo-product-grid,#dermo-face-more{grid-column:1}
.dermo-results-head h2{margin:0 0 6px;font-size:1.8rem}.dermo-results-head p{margin:0 0 16px;color:#71646b}
.dermo-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.dermo-product-card{background:#fff;border:1px solid #eadde3;border-radius:14px;padding:14px;min-width:0}
.dermo-product-media{height:220px;padding:24px;box-sizing:border-box;background:#fffaf7;border-radius:10px;display:grid;place-items:center;overflow:hidden}.dermo-product-image{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center}.dermo-product-fallback{font-size:2rem;color:#e85aa6}
.dermo-product-brand{color:#962c61;font-size:.78rem;margin:12px 0 5px}.dermo-product-card h2{font-size:1rem;line-height:1.35;min-height:2.7em;margin:0}.dermo-product-price{font-weight:700;margin:12px 0}.dermo-product-card button{width:100%}
@media(max-width:1000px){.dermo-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.dermo-family-hero{margin:8px 0 20px;padding:18px 0 16px}.dermo-family-hero h1{font-size:clamp(2rem,11vw,3rem)}.dermo-family-support{font-size:.95rem}.dermo-product-grid{grid-template-columns:1fr}.dermo-product-media{height:220px;padding:26px}.dermo-face-results{gap:16px}}

/* Final overrides keep family cards aligned with the compact Beauty catalogue. */
.dermo-family-hero{display:block;text-align:left;margin:18px 0 24px;padding:0 0 16px;border:0;border-bottom:1px solid #eadde3;border-radius:0;background:transparent;box-shadow:none}
.dermo-family-hero h1{margin:0 0 6px;font-size:clamp(2rem,4.5vw,3.25rem);line-height:1.04;letter-spacing:-.045em}
.dermo-family-count{margin:0;color:#71646b;font-size:.95rem;font-weight:700;line-height:1.3}
.dermo-product-grid{gap:16px;margin-top:0}
.dermo-product-card{padding:18px;border-radius:16px;box-shadow:0 7px 26px rgba(37,18,72,.045)}
.dermo-product-media{height:208px;padding:28px;background:#fffaf7;border-radius:11px}
.dermo-product-image{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center}
.dermo-product-brand{margin:12px 0 5px;font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.dermo-product-card h2{font-size:1rem;line-height:1.35}
.dermo-product-price{margin:12px 0;font-weight:700;color:var(--green,#962c61)}
.dermo-product-card button{min-height:44px;border-radius:10px}
@media(max-width:600px){.dermo-family-hero{margin:8px 0 18px;padding:14px 0 12px}.dermo-family-hero h1{font-size:clamp(1.65rem,8vw,2.5rem);line-height:1.05;max-width:88%}.dermo-family-count{font-size:.9rem}.dermo-product-grid{grid-template-columns:1fr}.dermo-product-media{height:210px;padding:36px}.dermo-product-card{padding:14px}.dermo-product-card h2{font-size:.98rem}.dermo-product-price{margin:10px 0}.dermo-product-card button{min-height:42px}}
@media(max-width:600px){.dermo-commercial{padding:20px 0 22px;border-radius:20px;margin-bottom:20px}.dermo-commercial__first{font-size:clamp(1.55rem,7.2vw,2.2rem);line-height:1.08;margin-bottom:16px}.dermo-commercial__basket-lead{margin-bottom:16px;font-size:2rem}.dermo-commercial__action{margin-bottom:8px;font-size:1.12rem;line-height:1.35}.dermo-commercial__text{font-size:1.12rem;line-height:1.35}}

@media(max-width:600px){
  .dermo-route .dermo-landing-heading h1 span{white-space:nowrap}
  .dermo-route .dermo-landing-heading h1 em{display:block}
  .dermo-family-banner-wrap h1{font-size:clamp(1.35rem,7vw,2.5rem);white-space:nowrap;max-width:none}
  .dermo-product-media{padding:36px}
}


/* Landing dermocosmétique: the same sheet and editorial cards as
   “Les essentiels, simplement.” on the Beauty home. */
.dermo-route .dermo-page{
  width:min(1120px,calc(100% - 64px));
  max-width:none;
  padding:32px 0 64px;
}
.dermo-route .dermo-landing-shell{
  margin:24px 0 0;
  padding:clamp(28px,4vw,48px);
  border:1px solid var(--kp-border,#eadde3);
  border-radius:var(--kp-r-sheet,34px);
  background:linear-gradient(180deg,#fff 0,var(--kp-white,#faf7f9) 200px);
  box-shadow:0 -12px 34px rgba(11,11,13,.12);
}
.dermo-route .dermo-landing-heading{margin:0 0 18px}
.dermo-route .dermo-landing-heading h1{
  margin:0;
  color:var(--kp-ink,#18161a);
  font-family:var(--kp-sans,"Manrope","Avenir Next",Avenir,"Segoe UI",system-ui,sans-serif);
  font-size:clamp(34px,3vw,48px);
  font-weight:700;
  line-height:1.05;
  letter-spacing:-.045em;
}
.dermo-route .dermo-landing-heading h1 span{font:inherit;color:var(--kp-ink,#18161a)}
.dermo-route .dermo-landing-heading h1 em{
  color:var(--kp-rose,#e85aa6);
  font-family:"Dancing Script",cursive;
  font-style:normal;
  font-weight:700;
  letter-spacing:-.02em;
}
.dermo-route .dermo-landing-shell .dermo-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin:0;
}
.dermo-route .dermo-card{
  display:flex;
  min-width:0;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--kp-border,#eadde3);
  border-radius:var(--kp-r-md,18px);
  background:#fffafd;
  box-shadow:var(--kp-shadow-card,0 2px 10px rgba(24,22,26,.05));
}
.dermo-route .dermo-card .family-category-image{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:1 / 1;
  object-fit:contain;
  object-position:center;
  background:#fffafd;
}
.dermo-route .dermo-card h2{
  display:block;
  height:auto;
  min-height:0;
  margin:0;
  padding:14px 16px 16px;
  color:var(--kp-ink,#18161a);
  font-family:var(--kp-category-font,"Dancing Script","Segoe Script","Snell Roundhand",cursive);
  font-size:clamp(1.45rem,2.1vw,1.9rem);
  font-weight:var(--kp-category-weight,500);
  line-height:1.25;
  text-align:left;
}
.dermo-route .dermo-card>span{display:none}
@media(max-width:760px){
  .dermo-route .dermo-page{width:calc(100% - 28px);padding:24px 0 44px}
  .dermo-route .dermo-landing-shell{margin-top:16px;padding:22px 16px 20px;border-radius:22px}
  .dermo-route .dermo-landing-heading{margin-bottom:20px}
  .dermo-route .dermo-landing-heading h1{width:100%;font-size:clamp(20px,7vw,30px);line-height:1.06;letter-spacing:-.055em}
  .dermo-route .dermo-landing-heading h1 span{white-space:nowrap}
  .dermo-route .dermo-landing-heading h1 em{display:block}
  .dermo-route .dermo-landing-shell .dermo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .dermo-route .dermo-card h2{padding:10px 12px 12px;font-size:clamp(1.2rem,6vw,1.5rem)}
  .dermo-route .dermo-card[data-family="cheveux-cuir-chevelu"] h2{font-size:clamp(1.08rem,5.3vw,1.35rem)}
}
