/* ==========================================================================
   legacy-content.css — wilfried-medium.fr
   CSS transitoire pour pages migrées depuis l'ancien site Elementor
   Hérite des variables du design system (style.css + pilier-system.css)
   
   ⚠️  Ce fichier est temporaire — chaque page sera recodée proprement
       en utilisant les composants ps-* du design system.
   
   Structure attendue dans Gutenberg (bloc HTML personnalisé) :
   
   <div class="legacy-page">
     <section class="lc-hero">...</section>
     <div class="lc-body lc-container">
       <h1>...</h1>
       <h2>...</h2>
       <p>...</p>
       <img>
     </div>
   </div>
   ========================================================================== */


/* ==========================================================================
   1. WRAPPER GLOBAL
   ========================================================================== */

.legacy-page {
    width: 100%;
    overflow-x: hidden;
    background: var(--color-bg-body, #1b0033);
    color: var(--color-text, #ffffff);
    font-family: var(--font-body, 'Lato', sans-serif);
}

.legacy-page *,
.legacy-page *::before,
.legacy-page *::after {
    box-sizing: border-box;
}


/* ==========================================================================
   2. CONTAINER
   ========================================================================== */

.lc-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 32px);
}


/* ==========================================================================
   3. HERO SIMPLE
   ========================================================================== */

.lc-hero {
    position: relative;
    width: 100%;
    padding: clamp(50px, 10vw, 100px) 0 clamp(40px, 8vw, 80px);
    background: linear-gradient(
        160deg,
        rgba(131, 14, 231, 0.25) 0%,
        rgba(27, 0, 51, 0.95) 60%
    ),
    var(--color-bg-body, #1b0033);
    border-bottom: 1px solid rgba(131, 14, 231, 0.3);
    text-align: center;
}

.lc-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at 50% 0%,
        rgba(131, 14, 231, 0.2) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.lc-hero .lc-container {
    position: relative;
    z-index: 1;
}

/* Breadcrumb dans le hero */
.lc-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.lc-breadcrumb a {
    color: rgba(255, 215, 0, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.lc-breadcrumb a:hover {
    color: var(--color-accent, #FFD700);
}

.lc-breadcrumb-sep {
    color: rgba(255, 255, 255, 0.3);
}


/* ==========================================================================
   4. CONTENU PRINCIPAL
   ========================================================================== */

.lc-body {
    padding: clamp(40px, 8vw, 80px) clamp(16px, 4vw, 32px);
}


/* ==========================================================================
   5. TYPOGRAPHIE
   ========================================================================== */

/* H1 — uniquement dans le hero */
.lc-hero h1,
.legacy-page h1 {
    font-family: var(--font-heading, 'Allan', cursive);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 16px;
}

.lc-hero h1 .highlight,
.legacy-page h1 .highlight {
    color: var(--color-accent, #FFD700);
    text-shadow: 0 0 28px rgba(255, 215, 0, 0.3);
}

/* Sous-titre hero */
.lc-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto;
}

/* H2 */
.legacy-page h2 {
    font-family: var(--font-heading, 'Allan', cursive);
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--color-accent, #FFD700);
    line-height: 1.3;
    margin: 48px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(131, 14, 231, 0.3);
}

.legacy-page h2:first-child {
    margin-top: 0;
}

/* H3 */
.legacy-page h3 {
    font-family: var(--font-heading, 'Allan', cursive);
    font-size: clamp(1.15rem, 3vw, 1.6rem);
    font-weight: 700;
    color: rgba(255, 215, 0, 0.85);
    line-height: 1.35;
    margin: 32px 0 14px;
}

/* H4 */
.legacy-page h4 {
    font-family: var(--font-body, 'Lato', sans-serif);
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    font-weight: 700;
    color: #ffffff;
    margin: 24px 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Paragraphes */
.legacy-page p {
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 20px;
}

.legacy-page p:last-child {
    margin-bottom: 0;
}

/* Strong / em */
.legacy-page strong {
    color: #ffffff;
    font-weight: 700;
}

.legacy-page em {
    color: rgba(255, 215, 0, 0.9);
    font-style: italic;
}

/* Liens */
.legacy-page a {
    color: var(--color-accent, #FFD700);
    text-decoration: underline;
    text-decoration-color: rgba(255, 215, 0, 0.4);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.legacy-page a:hover {
    color: #ffffff;
    text-decoration-color: rgba(255, 255, 255, 0.6);
}

/* Listes */
.legacy-page ul,
.legacy-page ol {
    margin: 0 0 24px 0;
    padding-left: 24px;
}

.legacy-page ul li,
.legacy-page ol li {
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 8px;
    padding-left: 4px;
}

.legacy-page ul {
    list-style: none;
    padding-left: 0;
}

.legacy-page ul li::before {
    content: '✦';
    color: rgba(131, 14, 231, 0.8);
    margin-right: 10px;
    font-size: 0.7em;
    vertical-align: middle;
}

/* Blockquote / témoignage */
.legacy-page blockquote,
.legacy-page .lc-quote {
    margin: 32px 0;
    padding: 20px 24px;
    background: rgba(40, 0, 68, 0.6);
    border-left: 3px solid rgba(131, 14, 231, 0.7);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    line-height: 1.75;
}

.legacy-page blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    font-style: normal;
    color: var(--color-accent, #FFD700);
}


/* ==========================================================================
   6. IMAGES
   ========================================================================== */

.legacy-page img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 32px auto;
}

.lc-img-caption {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: -20px;
    margin-bottom: 32px;
    font-style: italic;
}


/* ==========================================================================
   7. SECTIONS COLORÉES (alternance)
   ========================================================================== */

.lc-section {
    padding: clamp(40px, 8vw, 70px) 0;
}

.lc-section-alt {
    background: rgba(40, 0, 68, 0.5);
    border-top: 1px solid rgba(131, 14, 231, 0.15);
    border-bottom: 1px solid rgba(131, 14, 231, 0.15);
}


/* ==========================================================================
   8. NOTICE "PAGE EN COURS DE REFONTE"
   Optionnel — à retirer une fois la page redesignée
   ========================================================================== */

.lc-wip-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 8px;
    margin-bottom: 40px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.lc-wip-notice strong {
    color: var(--color-accent, #FFD700);
}


/* ==========================================================================
   9. CTA SIMPLE EN BAS DE PAGE
   ========================================================================== */

.lc-cta-block {
    margin: 48px 0 0;
    padding: 40px;
    background: radial-gradient(ellipse at top, rgba(131, 14, 231, 0.2), transparent 70%),
                rgba(40, 0, 68, 0.7);
    border: 1px solid rgba(131, 14, 231, 0.35);
    border-radius: 16px;
    text-align: center;
}

.lc-cta-block h3 {
    font-family: var(--font-heading, 'Allan', cursive);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: #ffffff;
    margin: 0 0 12px;
    border: none;
    padding: 0;
}

.lc-cta-block p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 24px;
}

.lc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-family: var(--font-body, 'Lato', sans-serif);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lc-btn-primary {
    background: linear-gradient(135deg, #830EE7, #5a0aa3);
    color: #ffffff;
    border: 1px solid rgba(131, 14, 231, 0.5);
    box-shadow: 0 4px 20px rgba(131, 14, 231, 0.4);
}

.lc-btn-primary:hover {
    background: linear-gradient(135deg, #9b22ff, #6d0ec7);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(131, 14, 231, 0.6);
    color: #ffffff;
    text-decoration: none;
}

.lc-btn-secondary {
    background: transparent;
    color: var(--color-accent, #FFD700);
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.lc-btn-secondary:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.7);
    transform: translateY(-2px);
    color: var(--color-accent, #FFD700);
    text-decoration: none;
}

.lc-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}


/* ==========================================================================
   10. RESPONSIVE
   ========================================================================== */

@media (max-width: 600px) {
    .lc-hero {
        text-align: left;
    }
    
    .lc-hero-subtitle {
        margin: 0;
    }
    
    .lc-breadcrumb {
        justify-content: flex-start;
    }

    .lc-cta-block {
        padding: 28px 20px;
    }

    .lc-cta-buttons {
        flex-direction: column;
    }

    .lc-btn {
        width: 100%;
        justify-content: center;
    }
}