/* ===== Pages de contenu : histoire, atelier, guide, sur mesure, fidélité, FAQ ===== */
.edimo-page { --ep-pale: #faf8f2; --ep-line: #eadfbf; --ep-ink: #1a1a1a; --ep-muted: #5f5a4e; background: #fff; color: var(--ep-ink); font-family: 'Montserrat', sans-serif; padding-top: 88px; }
.edimo-page h1, .edimo-page h2, .edimo-page h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400; color: inherit; letter-spacing: -.2px; }
.gold-text { color: var(--gold); }
.edimo-preview-notice { padding: 10px 20px; background: #fff7dc; border-bottom: 1px solid var(--ep-line); font-size: 13px; text-align: center; }
.edimo-preview-notice a { color: #7a5f12; text-decoration: underline; }

.ep-hero { display: flex; align-items: center; justify-content: center; min-height: 46vh; padding: 72px 24px; text-align: center; background: var(--ep-pale); border-bottom: 1px solid var(--ep-line); }
.ep-hero--image { position: relative; min-height: 62vh; background-size: cover; background-position: center; color: #fff; border: 0; }
.ep-hero--image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(10,10,10,.45), rgba(10,10,10,.7)); }
.ep-hero__inner { position: relative; max-width: 720px; }
.ep-hero h1 { margin: 0 0 18px; font-size: clamp(38px, 6vw, 64px); line-height: 1.08; }
.ep-hero p, .ep-hero .ep-rich p { margin: 0 auto 24px; max-width: 620px; font-size: 16px; line-height: 1.8; color: var(--ep-muted); }
.ep-hero--image p { color: rgba(255,255,255,.9); }
.ep-tag { display: inline-block; margin-bottom: 16px; font-size: 11px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: #8a6d1a; }
.ep-hero--image .ep-tag { color: var(--gold-light); }

.ep-btn, .ep-btn:visited { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 34px; background: var(--gold); border: 0; color: #0a0a0a !important; font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .25s ease; }
.ep-btn:hover { background: var(--gold-light); }
.ep-btn:focus-visible, .sm-drop input:focus-visible + label, .ep-faq summary:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 2px; }
.ep-btn--full { width: 100%; }
.ep-btn[disabled] { opacity: .6; cursor: wait; }

.ep-section { max-width: 1200px; margin: 0 auto; padding: 72px 24px; }
.ep-section--narrow { max-width: 820px; }
.ep-section--pale { max-width: none; background: var(--ep-pale); }
.ep-center-title { margin: 0 0 40px; font-size: clamp(30px, 4vw, 42px); text-align: center; }
.ep-center-note, .ep-center-link { margin-top: 28px; font-size: 13px; color: var(--ep-muted); text-align: center; }
.ep-center-link a { color: #7a5f12; text-decoration: underline; }
.ep-empty { padding: 48px 0; color: var(--ep-muted); text-align: center; }
.ep-empty i { margin-right: 8px; color: var(--gold); }

.ep-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.ep-step { position: relative; padding: 32px 28px; background: var(--ep-pale); border: 1px solid var(--ep-line); }
.ep-step__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 18px; background: #0a0a0a; color: var(--gold); border-radius: 50%; font-size: 18px; }
.ep-step__num { position: absolute; top: 24px; right: 26px; font-family: 'Cormorant Garamond', serif; font-size: 28px; color: var(--ep-line); }
.ep-step h3 { margin: 0 0 10px; font-size: 24px; }
.ep-step p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ep-muted); }

.ep-story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ep-story--text { display: block; max-width: 760px; }
.ep-story--reverse .ep-story__image { order: 2; }
.ep-story__image { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.ep-story__image img { width: 100%; height: 100%; object-fit: cover; }
.ep-story__num { display: block; margin-bottom: 8px; font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--gold); }
.ep-story h2 { margin: 0 0 20px; font-size: clamp(30px, 4vw, 44px); line-height: 1.15; }
.ep-rich p { margin: 0 0 16px; font-size: 15px; line-height: 1.85; color: var(--ep-muted); }
.ep-rich strong { color: var(--ep-ink); }
.ep-rich a { color: #7a5f12; text-decoration: underline; }
.ep-rich ul, .ep-rich ol { margin: 0 0 16px 22px !important; padding-left: 0 !important; font-size: 15px; line-height: 1.85; color: var(--ep-muted); }
.ep-rich ul { list-style: disc !important; }
.ep-rich ol { list-style: decimal !important; }

.ep-quote { padding: 80px 24px; background: #0a0a0a; color: #fff; text-align: center; }
.ep-quote i { font-size: 26px; color: var(--gold); }
.ep-quote blockquote { max-width: 820px; margin: 20px auto; padding: 0; border: 0; font-family: 'Cormorant Garamond', serif; font-size: clamp(26px, 4vw, 40px); font-style: italic; line-height: 1.3; color: #fff; }
.ep-quote cite { font-size: 12px; font-style: normal; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-light); }
.ep-cta { padding: 72px 24px; background: var(--ep-pale); border-top: 1px solid var(--ep-line); text-align: center; }
.ep-cta h2 { margin: 0 0 24px; font-size: clamp(30px, 4vw, 42px); }

/* Galerie de l'atelier */
.ep-masonry { column-count: 3; column-gap: 16px; }
.ep-masonry__item { position: relative; break-inside: avoid; margin: 0 0 16px; overflow: hidden; }
.ep-lightbox-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.ep-lightbox-open img { display: block; width: 100%; height: auto; transition: transform .6s ease; }
.ep-masonry__item figcaption { padding: 10px 2px 0; font-size: 12px; color: var(--ep-muted); }
@media (hover: hover) { .ep-lightbox-open:hover img { transform: scale(1.04); } }
.ep-lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: rgba(10,10,10,.94); }
.ep-lightbox[hidden] { display: none; }
.ep-lightbox figure { margin: 0; max-width: 88vw; text-align: center; }
.ep-lightbox img { max-width: 100%; max-height: 82vh; }
.ep-lightbox figcaption { margin-top: 10px; font-size: 13px; color: #ddd; }
.ep-lightbox button { width: 48px; height: 48px; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
.ep-lightbox__close { position: absolute; top: 12px; right: 12px; }
.ep-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.ep-lightbox__prev { left: 8px; }
.ep-lightbox__next { right: 8px; }

.ep-guide { display: grid; gap: 24px; }
.ep-guide img { display: block; width: 100%; height: auto; border: 1px solid var(--ep-line); }

/* Formulaire sur mesure */
.sm-hp { position: absolute; left: -9999px; }
.sm-card { margin: 0 0 20px; padding: 28px; background: #fff; border: 1px solid var(--ep-line); }
.sm-card legend { display: flex; align-items: center; gap: 12px; padding: 0 10px; font-family: 'Cormorant Garamond', serif; font-size: 24px; }
.sm-card legend span { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: #0a0a0a; color: var(--gold); border-radius: 50%; font-family: 'Montserrat', sans-serif; font-size: 13px; }
.sm-hint { margin: 0 0 16px; font-size: 13px; line-height: 1.6; color: var(--ep-muted); }
.sm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sm-field { margin-bottom: 16px; }
.sm-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; }
.sm-field label small { font-weight: 400; color: var(--ep-muted); }
.sm-field .required { color: #b3261e; }
.sm-field input, .sm-field select, .sm-field textarea { width: 100%; min-height: 48px; padding: 12px 14px; background: #fff; border: 1px solid #cfc8b6; border-radius: 0; font-family: inherit; font-size: 16px; color: var(--ep-ink); }
.sm-field input:focus, .sm-field select:focus, .sm-field textarea:focus { border-color: var(--gold); outline: 2px solid rgba(198,164,59,.3); }
.sm-field.has-error input, .sm-field.has-error textarea { border-color: #b3261e; }
.sm-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sm-drop label { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; background: var(--ep-pale); border: 1.5px dashed #c9b777; text-align: center; cursor: pointer; transition: background .2s ease; }
.sm-drop.is-over label, .sm-drop label:hover { background: #f5efdc; }
.sm-drop label i { font-size: 26px; color: var(--gold); }
.sm-drop label strong { font-size: 14px; font-weight: 500; }
.sm-drop label small { font-size: 12px; color: var(--ep-muted); }
.sm-drop.has-error label { border-color: #b3261e; }
.sm-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 12px; }
.sm-preview { position: relative; aspect-ratio: 1; overflow: hidden; }
.sm-preview img { width: 100%; height: 100%; object-fit: cover; }
.sm-preview button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; padding: 0; background: rgba(10,10,10,.75); border: 0; border-radius: 50%; color: #fff; font-size: 12px; cursor: pointer; }
.sm-error { margin: 6px 0 0; font-size: 12px; color: #b3261e; }
.sm-error:empty { display: none; }
.sm-status { margin-bottom: 16px; font-size: 14px; line-height: 1.6; }
.sm-status:empty { display: none; }
.sm-status.is-error { padding: 12px 16px; background: #fdecea; color: #8c1d18; }
.sm-status.is-success { padding: 20px; background: #eef7ee; color: #1e5b24; }
.sm-note { margin: 12px 0 0; font-size: 12px; color: var(--ep-muted); text-align: center; }

/* Fidélité */
.ep-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.ep-metric { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; background: var(--ep-pale); border: 1px solid var(--ep-line); text-align: center; }
.ep-metric i { margin-bottom: 8px; font-size: 22px; color: var(--gold); }
.ep-metric strong { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 400; line-height: 1.1; }
.ep-metric span { font-size: 13px; line-height: 1.5; color: var(--ep-muted); }
.ep-rewards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto; }
.ep-reward { padding: 28px 16px; background: #fff; border: 1px solid var(--ep-line); text-align: center; }
.ep-reward i { font-size: 22px; color: var(--gold); }
.ep-reward h3 { margin: 12px 0 6px; font-size: 22px; }
.ep-reward span { font-size: 13px; color: var(--ep-muted); }

/* FAQ */
.ep-faq-section { padding: 72px 24px; background: var(--ep-pale); border-top: 1px solid var(--ep-line); font-family: 'Montserrat', sans-serif; scroll-margin-top: 90px; }
.ep-faq-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.ep-faq-head h2 { margin: 0 0 12px; font-family: 'Cormorant Garamond', serif; font-size: clamp(32px, 4vw, 44px); font-weight: 400; }
.ep-faq-head p { margin: 0; font-size: 14px; color: #5f5a4e; }
.ep-faq { max-width: 820px; margin: 0 auto; }
.ep-faq details { margin-bottom: 10px; background: #fff; border: 1px solid #eadfbf; }
.ep-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 16px 20px; font-size: 15px; font-weight: 500; color: #1a1a1a; cursor: pointer; list-style: none; }
.ep-faq summary::-webkit-details-marker { display: none; }
.ep-faq summary i { flex-shrink: 0; color: var(--gold); transition: transform .25s ease; }
.ep-faq details[open] summary i { transform: rotate(180deg); }
.ep-faq__answer { padding: 0 20px 18px; font-size: 14px; line-height: 1.8; color: #5f5a4e; }
.ep-faq__answer p { margin: 0 0 10px; }

@media (max-width: 860px) {
    .edimo-page { padding-top: 76px; }
    .ep-section { padding: 48px 20px; }
    .ep-hero { min-height: 0; padding: 56px 20px; }
    .ep-story { grid-template-columns: 1fr; gap: 28px; }
    .ep-story--reverse .ep-story__image { order: 0; }
    .ep-masonry { column-count: 2; column-gap: 10px; }
    .ep-masonry__item { margin-bottom: 10px; }
}
@media (max-width: 560px) {
    .sm-card { padding: 20px 16px; }
    .sm-grid { grid-template-columns: 1fr; gap: 0; }
    .ep-faq-section { padding: 48px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .edimo-page *, .ep-faq * { transition: none !important; }
}
