/* Sections editoriales de la page /home3.

   Tout ce qui suit la scene appartient au site, pas au decor : les couleurs viennent des
   jetons definis dans home3-scene.css (--h3-pink #BC70A4, --h3-lime #BFD641, plus les
   jetons d'enveloppe qui basculent avec [data-theme]). Aucune couleur en dur ici, sauf
   les alcoves des bouteilles — voir le commentaire de .h3-gin-photo. */

.h3-home .h3-discover{
    padding: 44px 4% 40px;
    background: var(--h3-surface);
}

.h3-home .h3-section-head{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.h3-home .h3-section-head .h3-eyebrow{
    color: var(--h3-pink-ink);
    margin-bottom: 10px;
}

.h3-home .h3-gin-grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

/* Les alcoves restent claires dans les DEUX themes : les visuels produits sont composes
   en `mix-blend-mode: multiply` pour se fondre dans leur fond, ce qui exige un fond clair.
   Sur la page sombre, elles se lisent comme des niches eclairees — et c'est voulu.
   Les quatre teintes sont declinees de la palette de la marque : rose, citron, lilas, creme. */
.h3-home .h3-gin-photo{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 245px;
    background: radial-gradient(ellipse at 50% 80%, #e7cee0, transparent 65%), #f5eaf2;
    border: 1px solid #e3cddc;
    border-radius: 100px 100px 6px 6px;
    overflow: hidden;
}

.h3-home .h3-gin-card:nth-child(8n+2) .h3-gin-photo,
.h3-home .h3-gin-card:nth-child(8n+8) .h3-gin-photo{
    background: radial-gradient(ellipse at 50% 80%, #dbe3b8, transparent 65%), #f0f3e2;
    border-color: #d9e0bc;
}

.h3-home .h3-gin-card:nth-child(8n+3) .h3-gin-photo,
.h3-home .h3-gin-card:nth-child(8n+5) .h3-gin-photo{
    background: radial-gradient(ellipse at 50% 80%, #d9d3ec, transparent 65%), #efecf7;
    border-color: #d8d2e8;
}

.h3-home .h3-gin-card:nth-child(8n+4) .h3-gin-photo,
.h3-home .h3-gin-card:nth-child(8n+6) .h3-gin-photo{
    background: radial-gradient(ellipse at 50% 80%, #ead9cd, transparent 65%), #f7f0ea;
    border-color: #e6d7ca;
}

.h3-home .h3-gin-photo > span{
    position: absolute;
    left: 16px;
    bottom: 17px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .12em;
    color: #6d5566;
    z-index: 1;
}

.h3-home .h3-gin-photo img{
    max-width: 75%;
    height: 180px;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform .3s;
}

.h3-home .h3-gin-photo b{
    position: absolute;
    right: 12px;
    bottom: 12px;
    border: 1px solid #8a6b8166;
    color: #6d5566;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 400;
}

.h3-home .h3-gin-card:hover img{
    transform: translateY(-7px) rotate(3deg);
}

.h3-home .h3-gin-card:hover .h3-gin-photo{
    border-color: var(--h3-pink);
}

.h3-home .h3-gin-caption{
    padding: 15px 1px;
}

.h3-home .h3-gin-caption h3{
    font: 17px Georgia, serif;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.h3-home .h3-gin-caption > span{
    display: block;
    margin-top: 7px;
    font-size: 10px;
    letter-spacing: .06em;
    color: var(--h3-ink-soft);
}

.h3-home .h3-editorial{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 32px;
    padding: 0 4% 44px;
    background: var(--h3-surface);
}

/* Le bloc communaute etait un aplat vert bouteille tres sombre, etranger a la charte.
   Il reprend le rose de la marque, en voile plutot qu'en aplat, et fonctionne dans les
   deux themes : c'est la meme teinte, seule son intensite et l'encre changent. */
.h3-home .h3-community{
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 100% 0, rgba(188, 112, 164, .18), transparent 66%), var(--h3-surface-2);
    color: var(--h3-ink);
    border: 1px solid rgba(188, 112, 164, .32);
    border-radius: 14px;
    padding: 32px;
}

[data-theme="dark"] .h3-home .h3-community{
    background: radial-gradient(ellipse at 100% 0, rgba(188, 112, 164, .30), transparent 68%), #1b1624;
    border-color: rgba(188, 112, 164, .38);
}

.h3-home .h3-community-heading{
    position: relative;
}

.h3-home .h3-community .h3-eyebrow{
    color: var(--h3-pink-ink);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.h3-home .h3-community h2{
    font-size: 34px;
    position: relative;
    z-index: 1;
}

.h3-home .h3-community h2 em{
    color: var(--h3-pink-ink);
}

/* Filigrane, pas illustration : le titre passe devant (z-index 1 sur le h2) et le « 10 »
   reste sous le seuil ou l'oeil le lit comme un mot. Plus opaque, il hachait « coups de coeur ». */
.h3-home .h3-ten{
    position: absolute;
    z-index: 0;
    font: 132px Georgia, serif;
    right: -6px;
    top: -34px;
    color: rgba(188, 112, 164, .07);
    line-height: 1;
    pointer-events: none;
}

[data-theme="dark"] .h3-home .h3-ten{
    color: rgba(188, 112, 164, .13);
}

.h3-home .h3-community > p{
    font-size: 13px;
    line-height: 1.9;
    color: var(--h3-ink-soft);
    margin: 24px 0;
}

/* Le membre mis en avant : sa photo, puis son nom. Sans visage, la section parlait
   d'une communaute sans jamais en montrer personne. */
.h3-home .h3-member{
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0 !important;
}

.h3-home .h3-member-avatar{
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(188, 112, 164, .45);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
    background: var(--h3-surface);
}

.h3-home .h3-member-avatar--initial{
    display: grid;
    place-items: center;
    font: 600 20px Georgia, serif;
    color: var(--h3-pink-ink);
    background: var(--h3-tint);
}

.h3-home .h3-member-who{
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.h3-home .h3-member-kicker{
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--h3-ink-soft);
}

.h3-home .h3-member strong{
    font-size: 16px;
    color: var(--h3-ink);
    overflow-wrap: anywhere;
}

.h3-home .h3-ranking{
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
}

.h3-home .h3-ranking li{
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--h3-line);
    min-height: 53px;
}

.h3-home .h3-ranking li > span{
    color: var(--h3-pink-ink);
    font: italic 20px Georgia, serif;
}

.h3-home .h3-ranking a{
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px 0;
    overflow-wrap: anywhere;
}

.h3-home .h3-ranking a:hover{
    color: var(--h3-pink-ink);
}

.h3-home .h3-ranking b{
    font-weight: 400;
    color: var(--h3-accent);
}

.h3-home .h3-button--outline{
    background: transparent;
    border-color: rgba(188, 112, 164, .5);
    color: var(--h3-pink-ink) !important;
}

.h3-home .h3-button--outline:hover{
    background: var(--h3-tint);
    border-color: var(--h3-pink);
}

.h3-home .h3-journal{
    padding: 12px 0;
}

.h3-home .h3-journal > .h3-eyebrow{
    color: var(--h3-pink-ink);
    margin-bottom: 10px;
}

.h3-home .h3-journal h2{
    margin-bottom: 23px;
}

.h3-home .h3-article{
    display: grid;
    grid-template-columns: 115px minmax(0, 1fr);
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--h3-line);
}

.h3-home .h3-article img{
    width: 115px;
    height: 130px;
    object-fit: cover;
    border-radius: 5px;
}

.h3-home .h3-article small{
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--h3-ink-soft);
    display: block;
    margin: 3px 0 11px;
}

.h3-home .h3-article h3{
    font: 20px/1.25 Georgia, serif;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.h3-home .h3-article span{
    display: block;
    font-size: 11px;
    margin-top: 13px;
    color: var(--h3-pink-ink);
}

.h3-home .h3-article:hover h3{
    text-decoration: underline;
    text-underline-offset: 4px;
}

.h3-home .h3-empty{
    font-size: 14px;
    line-height: 1.8;
    color: var(--h3-ink-soft);
    padding: 25px;
    border: 1px solid var(--h3-line);
    border-radius: 10px;
    background: var(--h3-surface-2);
}

.h3-home .h3-empty a{
    display: inline-block;
    text-decoration: underline;
    color: var(--h3-pink-ink);
}

.h3-home .h3-signoff{
    border-top: 1px solid var(--h3-line);
    margin: 0 4%;
    padding: 25px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 10px;
}

.h3-home .h3-signoff > span{
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .13em;
}

.h3-home .h3-gold{
    color: var(--h3-accent);
}

.h3-home .h3-signoff p{
    color: var(--h3-ink-soft);
}

.h3-home .h3-signoff a{
    min-height: 44px;
    display: flex;
    align-items: center;
    color: var(--h3-pink-ink);
}

.h3-home section[id]{
    scroll-margin-top: 30px;
}

@container h3-page (max-width: 800px) {
    .h3-home .h3-gin-grid{ gap: 12px; }
    .h3-home .h3-gin-photo{ height: 210px; }
    .h3-home .h3-gin-photo img{ height: 155px; }
    .h3-home .h3-editorial{ gap: 24px; }
    .h3-home .h3-community{ padding: 25px; }
    .h3-home .h3-community h2{ font-size: 28px; }
    .h3-home .h3-article{ grid-template-columns: 90px minmax(0, 1fr); gap: 14px; }
    .h3-home .h3-article img{ width: 90px; height: 115px; }
    .h3-home .h3-article h3{ font-size: 17px; }
}

@container h3-page (max-width: 620px) {
    .h3-home .h3-section-head{ align-items: flex-start; flex-direction: column; gap: 8px; }
    .h3-home .h3-discover{ padding: 32px 7% 22px; }
    .h3-home .h3-gin-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .h3-home .h3-gin-photo{ height: 200px; }
    .h3-home .h3-gin-photo img{ height: 145px; }
    .h3-home .h3-gin-photo > span{ font-size: 7px; left: 10px; }
    .h3-home .h3-gin-caption h3{ font-size: 16px; }
    .h3-home .h3-editorial{ grid-template-columns: 1fr; gap: 26px; padding: 0 7% 25px; }
    .h3-home .h3-community{ padding: 25px; }
    .h3-home .h3-community h2{ font-size: 29px; }
    .h3-home .h3-member-avatar{ width: 40px; height: 40px; }
    .h3-home .h3-signoff{ margin: 0 7%; flex-wrap: wrap; padding: 18px 0; }
    .h3-home .h3-signoff p{ order: 3; width: 100%; font-size: 10px; }
    .h3-home .h3-journal h2{ font-size: 30px; }
}
