/* =============================================================
   VoxiaFlow AI — Editorial Pages Design System
   Direction "concierge éditorial" — cohérent avec /booking
   Skills : frontend-design (direction) + ui-ux-pro-max (a11y)
   ============================================================= */

/* Les variables --ed-* sont injectées par public.php (vx-editorial-shell).
   Ce fichier fournit les composants de pages partagés. */

/* ──────────────────────────────────────────
   WRAPPER DE PAGE
   ────────────────────────────────────────── */
.ed-page {
    background: var(--ed-ink);
    color: var(--ed-cream);
    font-family: var(--ed-sans);
    position: relative;
}

/* ──────────────────────────────────────────
   HERO SECTION
   ────────────────────────────────────────── */
.ed-hero {
    position: relative;
    overflow: hidden;
    padding: 140px 24px 72px;
    background:
        radial-gradient(120% 80% at 12% 0%, rgba(124,116,255,.16), transparent 55%),
        radial-gradient(90% 70% at 92% 12%, rgba(227,179,65,.10), transparent 55%),
        linear-gradient(180deg, var(--ed-ink-2), var(--ed-ink));
    border-bottom: 1px solid var(--ed-line);
}
/* Grille de fond éditorial */
.ed-hero::after {
    content: '';
    position: absolute; inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--ed-line-2) 1px, transparent 1px),
        linear-gradient(90deg, var(--ed-line-2) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 30% 0%, #000, transparent 75%);
}
/* Grain texture */
.ed-grain {
    position: absolute; inset: 0;
    pointer-events: none; opacity: .45; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}
.ed-hero-inner {
    position: relative; z-index: 1;
    max-width: 900px; margin: 0 auto;
}
.ed-hero--centered .ed-hero-inner { text-align: center; }
.ed-hero--slim { padding-top: 120px; padding-bottom: 52px; }

/* ──────────────────────────────────────────
   TYPOGRAPHY EDITORIALE
   ────────────────────────────────────────── */
.ed-kicker {
    display: inline-block;
    font-family: var(--ed-sans);
    font-size: .78rem; font-weight: 700;
    letter-spacing: .22em; text-transform: uppercase;
    color: var(--ed-gold);
    margin-bottom: 18px;
}
.ed-h1 {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    line-height: 1.04; letter-spacing: -.02em;
    color: var(--ed-cream);
    margin: 0 0 20px;
    animation: edRise 1s cubic-bezier(.16,1,.3,1) both;
}
.ed-h2 {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    line-height: 1.08; letter-spacing: -.015em;
    color: var(--ed-cream);
    margin: 0 0 14px;
}
.ed-h3 {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    line-height: 1.15; letter-spacing: -.01em;
    color: var(--ed-cream);
    margin: 0 0 10px;
}
.ed-lead {
    font-size: clamp(1rem, 1.8vw, 1.18rem);
    color: var(--ed-muted);
    line-height: 1.65;
    max-width: 58ch;
    margin: 0 0 28px;
    animation: edRise 1s cubic-bezier(.16,1,.3,1) .12s both;
}
.ed-hero--centered .ed-lead { margin-left: auto; margin-right: auto; }
.ed-eyebrow {
    font-size: .72rem; font-weight: 700;
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--ed-gold); margin: 0 0 10px;
}
/* Filet décoratif sous titre de section */
.ed-section-label {
    display: flex; align-items: center; gap: 14px;
    font-size: .72rem; font-weight: 700;
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--ed-gold); margin-bottom: 16px;
}
.ed-section-label::after {
    content: ''; flex: 1; height: 1px; background: var(--ed-line);
}

/* ──────────────────────────────────────────
   ASSURANCE LIST (hero)
   ────────────────────────────────────────── */
.ed-assur {
    list-style: none; padding: 0; margin: 28px 0 0;
    display: flex; flex-wrap: wrap; gap: 10px 26px;
    animation: edRise 1s cubic-bezier(.16,1,.3,1) .24s both;
}
.ed-assur li {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: .92rem; color: var(--ed-cream);
}
.ed-tick { color: var(--ed-gold); font-size: .8rem; }
.ed-hero--centered .ed-assur { justify-content: center; }

/* ──────────────────────────────────────────
   SECTIONS
   ────────────────────────────────────────── */
.ed-section {
    padding: 80px 24px;
    position: relative;
}
.ed-section--sm { padding: 52px 24px; }
.ed-section--dark {
    background:
        radial-gradient(120% 80% at 0% 50%, rgba(124,116,255,.08), transparent 55%),
        var(--ed-ink-2);
    border-top: 1px solid var(--ed-line);
    border-bottom: 1px solid var(--ed-line);
}
.ed-section--panel {
    background: var(--ed-ink-2);
    border-top: 1px solid var(--ed-line);
}
.ed-wrap {
    max-width: 920px; margin: 0 auto;
}
.ed-wrap--wide { max-width: 1160px; }
.ed-wrap--narrow { max-width: 760px; }

/* ──────────────────────────────────────────
   CARDS
   ────────────────────────────────────────── */
.ed-card {
    background: var(--ed-panel);
    border: 1px solid var(--ed-line);
    border-radius: 6px;
    padding: clamp(20px, 3.5vw, 36px);
    position: relative;
    overflow: hidden;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.ed-card::before {
    content: '';
    position: absolute; inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ed-line), transparent);
}
.ed-card:hover {
    border-color: rgba(124,116,255,.35);
    box-shadow: 0 24px 60px -20px rgba(0,0,0,.6);
    transform: translateY(-3px);
}
/* Card avec accent latéral coloré */
.ed-card--accent {
    border-left: 3px solid var(--ed-gold);
}
.ed-card--indigo {
    border-left: 3px solid var(--ed-indigo);
}
/* Card highlighted */
.ed-card--featured {
    background: linear-gradient(155deg, rgba(124,116,255,.12), rgba(227,179,65,.05));
    border-color: rgba(124,116,255,.3);
    box-shadow: 0 32px 80px -28px rgba(0,0,0,.7);
}
.ed-card--featured::after {
    content: '';
    position: absolute; inset: 0;
    pointer-events: none; opacity: .3; mix-blend-mode: overlay;
    background-image: var(--ed-grain);
    border-radius: inherit;
}

/* Numérotation auto */
.ed-grid--numbered { counter-reset: ednum; }
.ed-grid--numbered .ed-card { counter-increment: ednum; }
.ed-grid--numbered .ed-card::after {
    content: counter(ednum, decimal-leading-zero);
    position: absolute; top: 16px; right: 18px;
    font-family: var(--ed-serif); font-size: .9rem; font-weight: 500;
    color: var(--ed-faint); opacity: .6;
}

/* ──────────────────────────────────────────
   ICON CIRCLE
   ────────────────────────────────────────── */
.ed-ic {
    width: 48px; height: 48px;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    background: color-mix(in srgb, var(--ic-c, var(--ed-indigo)) 14%, transparent);
    color: var(--ic-c, var(--ed-indigo));
    flex-shrink: 0;
    transition: transform .2s;
}
.ed-ic--sm { width: 36px; height: 36px; border-radius: 6px; font-size: .95rem; }
.ed-ic--lg { width: 60px; height: 60px; border-radius: 10px; font-size: 1.5rem; }
.ed-card:hover .ed-ic { transform: scale(1.08); }

/* ──────────────────────────────────────────
   BUTTONS
   ────────────────────────────────────────── */
.ed-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--ed-sans); font-weight: 600; font-size: .92rem;
    padding: 13px 24px; border-radius: 4px;
    cursor: pointer; text-decoration: none;
    border: 0; transition: all .25s cubic-bezier(.16,1,.3,1);
    letter-spacing: .01em; white-space: nowrap;
    min-height: 48px; /* touch target ≥ 44px */
}
.ed-btn:focus-visible {
    outline: 2px solid var(--ed-indigo); outline-offset: 3px;
}
.ed-btn--primary {
    background: var(--ed-cream); color: var(--ed-ink);
}
.ed-btn--primary:hover {
    background: var(--ed-gold); color: var(--ed-ink);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -10px rgba(227,179,65,.55);
}
.ed-btn--indigo {
    background: linear-gradient(180deg, var(--ed-indigo), var(--ed-indigo-deep));
    color: #fff;
    box-shadow: 0 10px 28px -12px rgba(124,116,255,.7);
}
.ed-btn--indigo:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 16px 38px -12px rgba(124,116,255,.8);
}
.ed-btn--ghost {
    background: none;
    color: var(--ed-cream);
    border: 1px solid var(--ed-line);
}
.ed-btn--ghost:hover {
    border-color: var(--ed-gold); color: var(--ed-cream);
    background: rgba(227,179,65,.06);
}
.ed-btn--gold {
    background: var(--ed-gold);
    color: var(--ed-ink);
    box-shadow: 0 10px 24px -8px rgba(227,179,65,.5);
}
.ed-btn--gold:hover {
    filter: brightness(1.07);
    transform: translateY(-2px);
}
.ed-btn--lg { padding: 16px 32px; font-size: 1rem; }
.ed-btn--sm { padding: 9px 16px; font-size: .82rem; min-height: 38px; }

/* ──────────────────────────────────────────
   BADGE / CHIP
   ────────────────────────────────────────── */
.ed-badge {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--ed-sans); font-size: .74rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    padding: 6px 13px; border-radius: 3px;
    background: rgba(124,116,255,.12);
    color: var(--ed-indigo);
    border: 1px solid rgba(124,116,255,.25);
}
.ed-badge--gold {
    background: rgba(227,179,65,.12);
    color: var(--ed-gold);
    border-color: rgba(227,179,65,.3);
}
.ed-badge--success {
    background: rgba(16,185,129,.12);
    color: #34d399;
    border-color: rgba(16,185,129,.25);
}

/* ──────────────────────────────────────────
   SEPARATEUR EDITORIAL
   ────────────────────────────────────────── */
.ed-rule {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ed-line), transparent);
    margin: 0; border: 0;
}

/* ──────────────────────────────────────────
   STAT BLOCK
   ────────────────────────────────────────── */
.ed-stat { text-align: center; }
.ed-stat__value {
    font-family: var(--ed-serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500; color: var(--ed-cream);
    letter-spacing: -.02em; line-height: 1;
    display: block; margin-bottom: 6px;
}
.ed-stat__value--gold { color: var(--ed-gold); }
.ed-stat__value--indigo { color: var(--ed-indigo); }
.ed-stat__label {
    font-size: .78rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--ed-faint);
}

/* ──────────────────────────────────────────
   FORMULAIRES
   ────────────────────────────────────────── */
.ed-form-label {
    display: block;
    font-size: .76rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--ed-muted); margin-bottom: 8px;
}
.ed-form-input,
.ed-form-select,
.ed-form-textarea {
    width: 100%;
    background: none;
    border: 0; border-bottom: 1px solid var(--ed-line);
    color: var(--ed-cream);
    font-family: var(--ed-sans); font-size: 1rem;
    padding: 10px 2px; outline: none;
    transition: border-color .25s;
    border-radius: 0;
}
.ed-form-input:focus,
.ed-form-select:focus,
.ed-form-textarea:focus { border-color: var(--ed-gold); }
.ed-form-input::placeholder,
.ed-form-textarea::placeholder { color: var(--ed-faint); }
.ed-form-textarea {
    border: 1px solid var(--ed-line);
    border-radius: 4px; padding: 12px; resize: vertical;
}
.ed-form-select {
    background: var(--ed-ink-2);
    border: 1px solid var(--ed-line);
    border-radius: 4px; padding: 11px 14px;
    cursor: pointer;
    -webkit-appearance: none;
}
.ed-form-hint {
    display: block;
    font-size: .76rem; color: var(--ed-faint); margin-top: 6px;
}
.ed-form-req { color: var(--ed-gold); }
.ed-form-opt { color: var(--ed-faint); font-weight: 400; font-style: italic; }

/* ──────────────────────────────────────────
   ACCORDION
   ────────────────────────────────────────── */
.ed-accordion { border-top: 1px solid var(--ed-line); }
.ed-accordion-item { border-bottom: 1px solid var(--ed-line); }
.ed-accordion-trigger {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; background: none; border: none; cursor: pointer;
    padding: 20px 0; text-align: left; gap: 16px;
    font-family: var(--ed-serif); font-weight: 500;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--ed-cream); transition: color .2s;
}
.ed-accordion-trigger:hover { color: var(--ed-gold); }
.ed-accordion-trigger:focus-visible {
    outline: 2px solid var(--ed-indigo); outline-offset: 2px;
}
.ed-accordion-icon {
    flex-shrink: 0; width: 24px; height: 24px;
    border: 1px solid var(--ed-line); border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    font-size: .7rem; color: var(--ed-faint);
    transition: transform .3s, border-color .2s, background .2s;
}
.ed-accordion-trigger[aria-expanded="true"] .ed-accordion-icon {
    transform: rotate(45deg);
    border-color: var(--ed-gold); color: var(--ed-gold);
    background: rgba(227,179,65,.08);
}
.ed-accordion-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height .38s cubic-bezier(.16,1,.3,1);
}
.ed-accordion-body.open { max-height: 600px; }
.ed-accordion-body-inner {
    padding: 0 0 22px;
    color: var(--ed-muted); font-size: .97rem; line-height: 1.72;
}

/* ──────────────────────────────────────────
   FEATURE ROW (texte + icone)
   ────────────────────────────────────────── */
.ed-feature-row {
    display: flex; gap: 18px; align-items: flex-start;
    padding: 18px 0; border-bottom: 1px solid var(--ed-line-2);
}
.ed-feature-row:last-child { border-bottom: 0; }
.ed-feature-row__body h4 {
    font-family: var(--ed-serif); font-weight: 500;
    font-size: 1.08rem; margin: 0 0 5px; color: var(--ed-cream);
}
.ed-feature-row__body p {
    font-size: .9rem; color: var(--ed-muted); margin: 0; line-height: 1.6;
}

/* ──────────────────────────────────────────
   CTA BANNER
   ────────────────────────────────────────── */
.ed-cta-banner {
    background: linear-gradient(135deg, rgba(124,116,255,.12), rgba(227,179,65,.06));
    border: 1px solid rgba(124,116,255,.25);
    border-radius: 8px;
    padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 56px);
    position: relative; overflow: hidden;
    text-align: center;
}
.ed-cta-banner::after {
    content: '';
    position: absolute; inset: 0;
    pointer-events: none; opacity: .3; mix-blend-mode: overlay;
    background-image: var(--ed-grain);
    border-radius: inherit;
}

/* ──────────────────────────────────────────
   GRID LAYOUTS
   ────────────────────────────────────────── */
.ed-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.ed-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.ed-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 900px) {
    .ed-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .ed-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .ed-grid-2,
    .ed-grid-3,
    .ed-grid-4 { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────
   PLAN CARD (pricing)
   ────────────────────────────────────────── */
.ed-plan {
    background: var(--ed-panel);
    border: 1px solid var(--ed-line);
    border-radius: 6px;
    padding: clamp(24px, 4vw, 40px);
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
    transition: border-color .3s, box-shadow .3s, transform .3s;
}
.ed-plan::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ed-line), transparent);
}
.ed-plan:hover {
    border-color: rgba(124,116,255,.35);
    box-shadow: 0 30px 70px -25px rgba(0,0,0,.7);
    transform: translateY(-4px);
}
.ed-plan--featured {
    background: linear-gradient(155deg, rgba(124,116,255,.13), rgba(227,179,65,.04));
    border-color: rgba(124,116,255,.35);
    box-shadow: 0 30px 70px -25px rgba(0,0,0,.6);
}
.ed-plan--featured::before {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ed-indigo), transparent);
}
.ed-plan__price {
    font-family: var(--ed-serif);
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    font-weight: 500; color: var(--ed-cream);
    letter-spacing: -.02em; line-height: 1;
    margin: 16px 0 6px;
}
.ed-plan__price sup {
    font-size: .55em; vertical-align: super;
    font-family: var(--ed-sans); font-weight: 600;
}
.ed-plan__period {
    font-size: .82rem; color: var(--ed-faint);
    font-family: var(--ed-sans);
}
.ed-plan__features {
    list-style: none; padding: 0; margin: 24px 0;
    flex: 1;
}
.ed-plan__features li {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 8px 0; border-bottom: 1px solid var(--ed-line-2);
    font-size: .9rem; color: var(--ed-muted);
}
.ed-plan__features li:last-child { border-bottom: 0; }
.ed-plan__features li i {
    color: var(--ed-indigo); flex-shrink: 0;
    margin-top: 2px; font-size: .95rem;
}
.ed-plan__features li.has-gold i { color: var(--ed-gold); }

/* ──────────────────────────────────────────
   CONTACT INFO ROW
   ────────────────────────────────────────── */
.ed-contact-row {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px 0; border-bottom: 1px solid var(--ed-line-2);
}
.ed-contact-row:last-child { border-bottom: 0; }
.ed-contact-row__lbl {
    font-size: .7rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--ed-faint); margin-bottom: 4px;
}
.ed-contact-row a,
.ed-contact-row__val {
    color: var(--ed-cream); text-decoration: none; font-size: .95rem;
}
.ed-contact-row a:hover { color: var(--ed-gold); }

/* ──────────────────────────────────────────
   SCROLL REVEAL
   ────────────────────────────────────────── */
.ed-reveal {
    opacity: 0;
    animation: edRise .75s cubic-bezier(.16,1,.3,1) forwards;
    animation-delay: var(--d, 0ms);
}
@keyframes edRise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
}
html.ed-sr-ready .ed-scroll-reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
html.ed-sr-ready .ed-scroll-reveal.ed-visible,
html:not(.ed-sr-ready) .ed-scroll-reveal {
    opacity: 1; transform: none;
}

/* ──────────────────────────────────────────
   LIGHT MODE OVERRIDES
   ────────────────────────────────────────── */
[data-theme="light"] .ed-hero {
    background:
        radial-gradient(120% 80% at 12% 0%, rgba(124,116,255,.10), transparent 55%),
        radial-gradient(90% 70% at 92% 12%, rgba(227,179,65,.08), transparent 55%),
        linear-gradient(180deg, var(--ed-ink-2), var(--ed-ink));
}
[data-theme="light"] .ed-section--dark {
    background:
        radial-gradient(120% 80% at 0% 50%, rgba(124,116,255,.06), transparent 55%),
        var(--ed-ink-2);
}
[data-theme="light"] .ed-card,
[data-theme="light"] .ed-plan {
    background: var(--ed-panel);
    border-color: var(--ed-line);
}
[data-theme="light"] .ed-kicker,
[data-theme="light"] .ed-eyebrow,
[data-theme="light"] .ed-section-label,
[data-theme="light"] .ed-tick,
[data-theme="light"] .ed-stat__value--gold,
[data-theme="light"] .ed-plan__features li.has-gold i {
    color: #9a7b1e;
}
[data-theme="light"] .ed-badge--gold {
    color: #9a7b1e; border-color: rgba(154,123,30,.3);
}
[data-theme="light"] .ed-btn--primary {
    background: var(--ed-cream); color: var(--ed-ink);
}
[data-theme="light"] .ed-btn--primary:hover {
    background: #9a7b1e; color: #fff;
}
[data-theme="light"] .ed-accordion-trigger { color: var(--ed-cream); }
[data-theme="light"] .ed-accordion-trigger:hover { color: #9a7b1e; }
[data-theme="light"] .ed-form-input,
[data-theme="light"] .ed-form-select,
[data-theme="light"] .ed-form-textarea {
    color: var(--ed-cream);
}

/* ──────────────────────────────────────────
   PREFERS-REDUCED-MOTION
   ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .ed-reveal, .ed-h1, .ed-lead, .ed-assur {
        animation: none !important; opacity: 1 !important; transform: none !important;
    }
    .ed-card, .ed-plan, .ed-btn, .ed-ic,
    .ed-accordion-icon, .ed-accordion-body,
    .ed-form-input, .ed-form-select, .ed-form-textarea {
        transition: none !important;
    }
}
