/* ============================================================
   MAGNET — Feuille de style commune des pages lead magnet
   Base : minimalisme.php
   ============================================================ */

/* ============================================================
   RESET & VARIABLES
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary:      #FFBD59;
    --primary-dark: #E6A04A;
    --primary-hover:#FF9A56;
    --text:         #2c3e50;
    --text-light:   #6c757d;
    --danger:       #ef4444;
    --white:        #ffffff;
    --bg:           #f8f9fa;
    --border:       #e9ecef;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f0e8;
    min-height: 100vh;
    color: var(--text-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color .3s ease;
    font-weight: 600;
}
a:hover { color: var(--primary-hover); }

/* ============================================================
   LOGO
   ============================================================ */
.lm-logo {
    text-align: center;
    margin-bottom: 24px;
}

.logo-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    /*font-size: 30px;*/
    font-weight: 700;
}

.remi {
    color: var(--text);
}

.lede {
    color: #6c9bd1;
    font-weight: 400;
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.lm-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px 80px;
}

.lm-topbar {
    max-width: 560px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

/* ============================================================
   BADGE
   ============================================================ */
.lm-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--text);
    border-radius: 24px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.lm-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--text);
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
}

/* ============================================================
   HERO
   ============================================================ */
.lm-hero {
    max-width: 560px;
    width: 100%;
    margin-bottom: 10px;
    padding: 0 4px;
}

.lm-hero h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 16px;
}

.lm-hero h1 em {
    font-style: normal;
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--primary);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.lm-hero p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
}

.title    { text-align: center; }
.subtitle { text-align: center; }

/* ============================================================
   CARD
   ============================================================ */
.lm-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,.10);
    padding: 40px 40px 36px;
    max-width: 560px;
    width: 100%;
    margin-top: 30px;
}

.lm-card-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 22px;
    display: block;
}

/* ============================================================
   FORM GRID
   ============================================================ */
.lm-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

/* Les .lm-field dans .lm-row ne doivent pas rajouter de margin */
.lm-row .lm-field {
    margin-bottom: 0;
}

.lm-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.lm-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 4px;
}

.lm-field label .req {
    color: var(--danger);
    font-size: 14px;
    font-weight: 700;
}

/* ============================================================
   INPUT WRAPPER + ICON
   ============================================================ */
.lm-input-wrap {
    position: relative;
}

.lm-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #adb5bd;
    pointer-events: none;
    transition: color .25s ease;
    display: block;
}

.lm-input-wrap:focus-within .lm-input-icon {
    color: var(--primary-dark);
}

.lm-input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
    outline: none;
}

.lm-input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255,189,89,.15);
}

.lm-input::placeholder { color: #adb5bd; }

.lm-input-hint {
    font-size: 12px;
    color: var(--text-light);
    font-style: italic;
}

/* ============================================================
   SELECT
   ============================================================ */
.lm-select {
    width: 100%;
    padding: 13px 40px 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23adb5bd' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}

/* On change seulement background-color pour garder la flèche */
.lm-select:focus {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(255,189,89,.15);
}

/* ============================================================
   OPTIONAL FIELD
   ============================================================ */
.lm-optional-toggle {
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    user-select: none;
    transition: color .2s;
}
.lm-optional-toggle:hover { color: var(--primary-dark); }
.lm-optional-toggle svg { transition: transform .3s; flex-shrink: 0; }
.lm-optional-toggle.open svg { transform: rotate(90deg); }

.lm-optional-field { display: none; }
.lm-optional-field.visible {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

/* ============================================================
   LEGAL
   ============================================================ */
.lm-legal {
    background: #f8f6f2;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 12.5px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 22px;
}

.lm-legal a { color: var(--primary-dark); }

/* ============================================================
   CTA
   ============================================================ */
.lm-submit {
    width: 100%;
    padding: 18px 24px;
    background: var(--primary);
    color: var(--text);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
}
.lm-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,189,89,.35);
}
.lm-submit:active { transform: translateY(0); }

/* ============================================================
   BENEFITS
   ============================================================ */
.lm-benefits-title {
    margin-bottom: 14px !important;
}

.lm-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text);
}

.lm-benefit-check {
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: rgba(255,189,89,.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.lm-benefit-check svg {
    width: 11px;
    height: 11px;
    display: block;
}

/* ============================================================
   ANTI-SPAM
   ============================================================ */
.lm-antispam {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
}

/* ============================================================
   SUCCESS
   ============================================================ */
.lm-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.lm-success-icon {
    width: 72px;
    height: 72px;
    background: rgba(16,185,129,.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

.lm-success h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.lm-success p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* ============================================================
   VALIDATION ERRORS
   ============================================================ */
.lm-error-msg {
    display: none;
    font-size: 12px;
    color: var(--danger);
    font-weight: 500;
}

.lm-field.error .lm-input,
.lm-field.error .lm-select {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239,68,68,.10);
}

.lm-field.error .lm-error-msg { display: block; }

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0 0;
    width: inherit;
    height: inherit;
    background: none;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ede7d9;
}

.divider span {
    font-size: 0.75rem;
    color: #b0a898;
    white-space: nowrap;
}

/* ---------- DISCLAIMER ---------- */
.funnel-disclaimer {
            width: min(100%, 550px);
            margin: 25px auto 0;
            padding: 18px 22px;
            border: 1px solid #FFBD59;
            border-radius: 14px;
            background: rgba(255,255,255,.55);
            text-align: center;
            animation: fadeDown 0.6s 0.1s ease both;
}

.funnel-disclaimer p {
    font-size: 12px;
    line-height: 1.6;
    color: #8b837a;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
    .lm-card { padding: 28px 20px 26px; }
    .lm-row  { grid-template-columns: 1fr; gap: 0; }
    .lm-row .lm-field { margin-bottom: 14px; }
    .lm-hero h1 { font-size: 26px; }
}
