/* Page d'accueil (6 langues) : vitrine 3D, pépites qui défilent, atelier broderie, avis.
   Pages générées par admin-backend/scripts/build-home-pages.js */
:root {
    --gh-ink: #352B25;
    --gh-ink-soft: #5E524B;
    --gh-cream: #FDFAF5;
    --gh-linen: #F5EFE6;
    --gh-sage: #7A9E82;
    --gh-sage-deep: #4A6B52;
    --gh-rose: #F2DDD7;
    --gh-rose-deep: #E9C9C0;
    --gh-line: #E8DDD3;
    --gh-ease: cubic-bezier(.16, 1, .3, 1);
}
::selection { background: var(--gh-rose-deep); color: var(--gh-ink); }
#reviews[hidden], #reviews [hidden], #featured-products[hidden], .gh-hero[hidden], #gh-pepites[hidden] { display: none !important; }
/* Résultats de recherche (index.html?search=…) affichés à la place de la vitrine */
#featured-products { padding: 4rem 2rem 2rem; }
#featured-products .section-title { text-align: center; margin-bottom: 2.5rem; }

.gh-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 0 1.75rem; border-radius: 999px;
    font: 500 1rem/1 'DM Sans', system-ui, sans-serif; text-decoration: none;
    transition: background-color .3s var(--gh-ease), color .3s var(--gh-ease), transform .3s var(--gh-ease), box-shadow .3s var(--gh-ease);
}
.gh-btn-primary { background: var(--gh-sage-deep); color: #fff; box-shadow: 0 6px 18px rgba(74, 107, 82, .25); }
.gh-btn-primary:hover { background: #3C5943; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(74, 107, 82, .3); }
.gh-btn-ghost { color: var(--gh-ink); border: 1px solid rgba(53, 43, 37, .25); }
.gh-btn-ghost:hover { border-color: var(--gh-ink); background: rgba(255, 255, 255, .5); }
.gh-btn:focus-visible, .gh-round:focus-visible, .gh-chip:focus-visible, .gh-seg button:focus-visible,
.gh-threads button:focus-visible, .gh-card:focus-visible, .gh-show-caption:focus-visible, .gh-rail:focus-visible {
    outline: 2px solid var(--gh-sage-deep); outline-offset: 3px;
}

.gh-round {
    width: 48px; height: 48px; flex: none; border-radius: 50%;
    border: 1px solid var(--gh-line); background: #fff; color: var(--gh-ink);
    display: grid; place-items: center; cursor: pointer;
    box-shadow: 0 4px 12px rgba(53, 43, 37, .08);
    transition: transform .3s var(--gh-ease), border-color .3s;
}
.gh-round:hover { transform: scale(1.06); border-color: var(--gh-ink); }
.gh-round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hero ---------- */
.gh-hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(60% 70% at 78% 52%, #EADFD0 0%, rgba(234, 223, 208, 0) 70%),
        var(--gh-linen);
}
.gh-hero-inner {
    max-width: 1280px; margin: 0 auto; padding: 4rem 2rem 3.5rem;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 2rem;
    min-height: min(calc(100svh - 150px), 760px);
}
.gh-hero h1 {
    font-family: 'Young Serif', Georgia, serif; font-weight: 400; color: var(--gh-ink);
    font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.75rem); line-height: .98; letter-spacing: -0.035em;
    margin: 0 0 1.5rem; text-wrap: balance; max-width: 11ch;
}
.gh-hero-lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55; color: var(--gh-ink-soft); max-width: 30em; margin: 0 0 2.25rem; }
.gh-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.25rem; }
.gh-hero-promises { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .9375rem; color: var(--gh-ink-soft); }
.gh-hero-promises li { display: flex; align-items: center; gap: .5rem; }
.gh-hero-promises li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gh-sage); }

.gh-hero-text { position: relative; z-index: 2; }
.gh-show { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.gh-show-stage {
    position: relative; width: 100%; height: 480px;
    perspective: 1500px; perspective-origin: 50% 45%;
    touch-action: pan-y; user-select: none;
}
.gh-show-card {
    position: absolute; left: 50%; top: 50%;
    width: 300px; height: 400px; margin: -200px 0 0 -150px;
    border-radius: 22px; overflow: hidden; background: #fff; display: block;
    transform-style: preserve-3d;
    transition: transform .9s var(--gh-ease), opacity .9s var(--gh-ease), box-shadow .9s var(--gh-ease), filter .9s var(--gh-ease);
    box-shadow: 0 18px 40px rgba(53, 43, 37, .12);
    cursor: pointer;
}
.gh-show-card.is-front { box-shadow: 0 34px 70px rgba(53, 43, 37, .22), 0 8px 18px rgba(53, 43, 37, .08); }
.gh-show-card img, .gh-show-card svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.gh-show-card::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, 0) 38%);
}
.gh-show-bar { display: flex; align-items: center; gap: 1rem; width: min(100%, 480px); }
.gh-show-caption { flex: 1; text-align: center; text-decoration: none; color: var(--gh-ink); min-width: 0; }
.gh-show-name { display: block; font-family: 'Young Serif', Georgia, serif; font-size: 1.3rem; line-height: 1.2; text-wrap: balance; }
.gh-show-price { display: block; font-size: .9375rem; color: var(--gh-ink-soft); margin-top: .25rem; font-variant-numeric: tabular-nums; }
.gh-show-caption:hover .gh-show-name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- Pépites ---------- */
.gh-pepites { padding: 5.5rem 0 4.5rem; background: var(--gh-cream); }
.gh-pepites-head {
    max-width: 1280px; margin: 0 auto 2.25rem; padding: 0 2rem;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.gh-pepites h2 {
    font-family: 'Young Serif', Georgia, serif; font-weight: 400; color: var(--gh-ink);
    font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.05; letter-spacing: -0.025em; margin: 0;
}
.gh-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.gh-chip {
    min-height: 44px; padding: 0 1.15rem; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--gh-line); background: #fff; color: var(--gh-ink);
    font: 500 .9375rem/1 'DM Sans', system-ui, sans-serif;
    transition: background-color .25s, color .25s, border-color .25s;
}
.gh-chip:hover { border-color: var(--gh-ink); }
.gh-chip.is-on { background: var(--gh-ink); border-color: var(--gh-ink); color: #fff; }

.gh-rail-wrap { position: relative; }
.gh-rail {
    display: flex; gap: 1.25rem; overflow-x: auto; padding: .5rem 2rem 1.5rem;
    scrollbar-width: none; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2rem, #000 calc(100% - 2rem), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 2rem, #000 calc(100% - 2rem), transparent 100%);
}
.gh-rail::-webkit-scrollbar { display: none; }
.gh-rail-prev, .gh-rail-next { position: absolute; top: calc(50% - 50px); z-index: 2; }
.gh-rail-prev { left: 1rem; }
.gh-rail-next { right: 1rem; }

.gh-card { flex: 0 0 272px; text-decoration: none; color: var(--gh-ink); display: flex; flex-direction: column; }
.gh-card-img {
    position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--gh-linen);
    box-shadow: 0 2px 10px rgba(53, 43, 37, .05);
    transition: box-shadow .5s var(--gh-ease), transform .5s var(--gh-ease);
}
.gh-card-img img, .gh-card-img svg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--gh-ease); }
.gh-card:hover .gh-card-img { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(53, 43, 37, .14); }
.gh-card:hover .gh-card-img img, .gh-card:hover .gh-card-img svg { transform: scale(1.05); }
.gh-card-go {
    position: absolute; right: 12px; bottom: 12px; padding: .6rem 1rem; border-radius: 999px;
    background: rgba(255, 253, 249, .95); color: var(--gh-ink); font-size: .875rem; font-weight: 500;
    box-shadow: 0 4px 12px rgba(53, 43, 37, .12);
    opacity: 0; transform: translateY(8px); transition: opacity .4s var(--gh-ease), transform .4s var(--gh-ease);
}
.gh-card:hover .gh-card-go, .gh-card:focus-visible .gh-card-go { opacity: 1; transform: none; }
.gh-card-meta { padding: 1rem .25rem 0; display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; }
.gh-card-name { font-family: 'Young Serif', Georgia, serif; font-size: 1.125rem; line-height: 1.25; }
.gh-card-price { font-size: .9375rem; color: var(--gh-ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gh-rail-empty { padding: 2rem; color: var(--gh-ink-soft); }

/* ---------- Atelier broderie ---------- */
.gh-atelier { background: var(--gh-rose); padding: 5.5rem 2rem; }
.gh-atelier-inner {
    max-width: 1180px; margin: 0 auto;
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4rem; align-items: center;
}
.gh-atelier-visual {
    position: relative; border-radius: 28px; padding: 2rem 2rem 1.25rem;
    background: radial-gradient(70% 60% at 50% 45%, #FFF8F3 0%, #F8E9E3 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 24px 60px rgba(120, 70, 55, .12);
}
.gh-garment { width: 100%; height: auto; display: block; max-height: 460px; }
.gh-atelier-note { text-align: center; font-size: .875rem; color: #7A5A50; margin: .5rem 0 0; }
.gh-atelier h2 {
    font-family: 'Young Serif', Georgia, serif; font-weight: 400; color: var(--gh-ink);
    font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 1.25rem; text-wrap: balance;
}
.gh-atelier-panel > p { font-size: 1.0625rem; line-height: 1.6; color: #4E3F38; margin: 0 0 2rem; max-width: 34em; }
.gh-field-label { display: block; font-size: .9375rem; font-weight: 600; color: var(--gh-ink); margin: 0 0 .6rem; }
.gh-field-label span { font-weight: 400; color: #6B5249; margin-left: .35rem; }
.gh-name {
    width: 100%; max-width: 420px; min-height: 56px; padding: 0 1.25rem; margin-bottom: 1.5rem;
    border: 1px solid #DDBFB5; border-radius: 14px; background: #FFFBF8; color: var(--gh-ink);
    font: 400 1.25rem/1 'DM Sans', system-ui, sans-serif; caret-color: var(--gh-sage-deep);
    transition: border-color .25s, box-shadow .25s;
}
.gh-name:focus { outline: none; border-color: var(--gh-sage-deep); box-shadow: 0 0 0 4px rgba(74, 107, 82, .15); }
.gh-seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: rgba(255, 255, 255, .6); margin-bottom: 1.5rem; }
.gh-seg button {
    min-height: 42px; padding: 0 1.15rem; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
    font: 500 .9375rem/1 'DM Sans', system-ui, sans-serif; color: var(--gh-ink-soft);
    transition: background-color .3s var(--gh-ease), color .3s, box-shadow .3s;
}
.gh-seg button[aria-checked="true"] { background: #fff; color: var(--gh-ink); box-shadow: 0 2px 8px rgba(53, 43, 37, .1); }
.gh-threads { display: flex; gap: .75rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.gh-threads button {
    width: 44px; height: 44px; border-radius: 50%; cursor: pointer; border: 3px solid #FFFBF8;
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .22) 0 2px, rgba(255, 255, 255, 0) 2px 5px),
        var(--t);
    box-shadow: 0 0 0 1px rgba(53, 43, 37, .12), 0 3px 8px rgba(53, 43, 37, .15);
    transition: transform .3s var(--gh-ease), box-shadow .3s;
}
.gh-threads button:hover { transform: scale(1.08); }
.gh-threads button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--gh-ink), 0 3px 8px rgba(53, 43, 37, .15); }
.gh-atelier-cta { display: flex; width: max-content; margin-top: .25rem; }

/* Broderie : relief et points de fil */
.gh-stitch-fill { transition: fill .5s var(--gh-ease); }
.gh-stitch.is-sewing .gh-stitch-fill { animation: gh-fill 1.1s var(--gh-ease) both; }
.gh-stitch.is-sewing .gh-stitch-line { animation: gh-sew 1.1s var(--gh-ease) both; }
@keyframes gh-fill { 0%, 35% { fill-opacity: 0; } 100% { fill-opacity: 1; } }
@keyframes gh-sew { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }

/* ---------- Téléphone et tablette ---------- */
@media (max-width: 960px) {
    .gh-hero-inner { grid-template-columns: minmax(0, 1fr); padding: 2rem 1.25rem 2.5rem; min-height: 0; gap: 0; }
    .gh-hero-text { display: contents; }
    .gh-hero h1 { order: 1; margin-bottom: 1rem; }
    .gh-hero-lead { order: 2; margin-bottom: .5rem; }
    .gh-show { order: 3; gap: 1rem; margin-bottom: 1.5rem; }
    .gh-hero-actions { order: 4; margin-bottom: 0; }
    .gh-hero-promises { display: none; }
    .gh-show-stage { height: 340px; }
    .gh-show-card { width: 230px; height: 306px; margin: -153px 0 0 -115px; border-radius: 18px; }
    .gh-atelier-inner { grid-template-columns: 1fr; gap: 2.25rem; }
    .gh-atelier { padding: 4rem 1.25rem; }
}
@media (max-width: 640px) {
    .gh-hero-actions .gh-btn { flex: 1 1 0; padding: 0 1rem; }
    .gh-pepites { padding: 4rem 0 3rem; }
    .gh-pepites-head { padding: 0 1.25rem; margin-bottom: 1.5rem; }
    .gh-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -1.25rem; padding: 0 1.25rem; width: calc(100% + 2.5rem); }
    .gh-chips::-webkit-scrollbar { display: none; }
    .gh-chip { flex: none; }
    .gh-rail { padding: .5rem 1.25rem 1.25rem; gap: 1rem; -webkit-mask-image: none; mask-image: none; }
    .gh-card { flex-basis: 68vw; }
    .gh-card-go { opacity: 1; transform: none; }
    .gh-rail-prev, .gh-rail-next { display: none; }
    .gh-atelier-visual { padding: 1.25rem 1rem 1rem; border-radius: 22px; }
    .gh-name { max-width: none; }
    .gh-seg { display: flex; width: 100%; }
    .gh-seg button { flex: 1; }
    .gh-atelier-cta { width: 100%; }
    .gh-show-name { font-size: 1.125rem; }
}
@media (prefers-reduced-motion: reduce) {
    .gh-show-card, .gh-card-img, .gh-card-img img, .gh-card-img svg { transition: none; }
    .gh-stitch.is-sewing .gh-stitch-fill, .gh-stitch.is-sewing .gh-stitch-line { animation: none; }
}
