/* =========================================================
   InvestImmo — style "scaleup" français
   Pastels, gros arrondis, illustrations, personnalité
   ========================================================= */

:root {
    /* couleurs "brand" */
    --c-coral: #FF4D5E;
    --c-coral-dark: #E53747;
    --c-dark: #1A1A3E;
    --c-yellow: #FFD93D;
    --c-cream: #FFFBF5;

    /* pastels de blocs */
    --c-pink: #FFE4E7;
    --c-mint: #D4F5E9;
    --c-yell-soft: #FFF0B3;
    --c-lavender: #E8DFFF;
    --c-peach: #FFD4B8;
    --c-sky: #D6E8FF;

    --c-text: #1A1A3E;
    --c-muted: #6B6B8A;
    --c-border: #EDE9E0;

    /* système */
    --r-sm: 12px;
    --r-md: 20px;
    --r-lg: 32px;
    --r-xl: 48px;

    --shadow-sm: 0 2px 0 rgba(26,26,62,.08);
    --shadow-md: 0 6px 0 rgba(26,26,62,.1);
    --shadow-lg: 0 12px 40px rgba(26,26,62,.12);
    --shadow-pop: 0 10px 0 var(--c-dark);

    --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --wrap: 1240px;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-cream);
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
em { font-style: italic; font-weight: inherit; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--c-dark);
    margin: 0 0 .5em;
}
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.75rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.4rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ============ STICKERS / BADGES ============ */
.sticker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--c-yellow);
    color: var(--c-dark);
    border: 2px solid var(--c-dark);
    border-radius: 999px;
    font-weight: 700;
    font-size: .85rem;
    box-shadow: 3px 3px 0 var(--c-dark);
    transform: rotate(-1.5deg);
    white-space: nowrap;
}
.sticker--coral { background: var(--c-coral); color: #FFF; }
.sticker--mint { background: var(--c-mint); }
.sticker--yellow { background: var(--c-yellow); }
.sticker--dark { background: var(--c-dark); color: var(--c-yellow); border-color: var(--c-yellow); }
.sticker__dot {
    width: 8px; height: 8px;
    background: var(--c-coral);
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: .6; }
}

/* ============ BOUTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--c-coral);
    color: #FFF;
    border: 2.5px solid var(--c-dark);
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-body);
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--c-dark);
    transition: transform .12s, box-shadow .12s;
    text-align: center;
}
.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--c-dark);
    color: #FFF;
}
.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 var(--c-dark);
}
.btn--primary { background: var(--c-coral); color: #FFF; }
.btn--dark { background: var(--c-dark); color: #FFF; }
.btn--yellow { background: var(--c-yellow); color: var(--c-dark); }
.btn--xl { padding: 18px 36px; font-size: 1.1rem; }
.btn__arrow { font-size: 1.2rem; transition: transform .2s; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--text {
    background: transparent;
    border: 0;
    color: var(--c-dark);
    box-shadow: none;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    padding: 14px 8px;
}
.btn--text:hover { background: transparent; transform: none; box-shadow: none; color: var(--c-coral); }
.btn--text-light { color: var(--c-cream); }
.btn--text-light:hover { color: var(--c-yellow); }

/* ============ HIGHLIGHTS TYPO ============ */
.hl { position: relative; display: inline-block; }
.hl--coral { color: var(--c-coral); }
.hl--yellow {
    background: var(--c-yellow);
    padding: 0 .2em;
    border-radius: 6px;
    color: var(--c-dark);
    transform: rotate(-1deg);
    display: inline-block;
}
.hl--underline::after {
    content: '';
    position: absolute;
    left: -2%; right: -2%;
    bottom: -6px;
    height: 14px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'><path d='M2 10 Q50 2 100 8 T198 6' stroke='%23FF4D5E' stroke-width='4' fill='none' stroke-linecap='round'/></svg>") no-repeat center/100% 100%;
}

/* ============ NAV / HEADER ============ */
.nav {
    position: sticky;
    top: 16px;
    z-index: 100;
    padding: 0 24px;
    margin: 16px 0 0;
}
.nav__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #FFF;
    border: 2.5px solid var(--c-dark);
    border-radius: 999px;
    padding: 10px 10px 10px 24px;
    box-shadow: 4px 4px 0 var(--c-dark);
    max-width: var(--wrap);
    margin: 0 auto;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--c-dark);
    letter-spacing: -.03em;
}
.brand__logo { width: 36px; height: 36px; }
.brand strong { font-weight: 800; color: var(--c-coral); }
.brand--light { color: var(--c-cream); }
.brand--light strong { color: var(--c-yellow); }

.nav__menu {
    display: flex;
    gap: 4px;
    flex: 1;
    justify-content: center;
}
.nav__menu a {
    padding: 10px 16px;
    font-weight: 500;
    font-size: .95rem;
    color: var(--c-text);
    border-radius: 999px;
    transition: background .2s;
}
.nav__menu a:hover { background: var(--c-cream); }
.nav__menu a.is-active { background: var(--c-pink); font-weight: 600; }

.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__login { padding: 10px 16px; font-weight: 500; font-size: .95rem; }
.nav__login:hover { color: var(--c-coral); }

/* ============ HERO ============ */
.hero {
    position: relative;
    margin-top: 18px;
    padding: 40px 0 140px;
    background: var(--c-pink);
    border-radius: var(--r-xl);
    overflow: hidden;
    margin-left: 24px;
    margin-right: 24px;
}
.hero__blob1 {
    position: absolute;
    top: -100px; right: -80px;
    width: 520px;
    opacity: .6;
    pointer-events: none;
    z-index: 1;
}
.hero__blob2 {
    position: absolute;
    bottom: -120px; left: -100px;
    width: 480px;
    opacity: .5;
    pointer-events: none;
    z-index: 1;
}
.hero__wave {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 100px;
    pointer-events: none;
    display: none;
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero__title {
    margin: 0 0 24px;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1.05;
}
.hero__title em,
.hero__title .hero__title-vrai {
    color: var(--c-coral);
    font-style: italic;
    font-weight: 800;
    font-size: 1.25em;
    display: inline-block;
    line-height: 1;
}
.hero__lead {
    font-size: 1.22rem;
    color: var(--c-text);
    max-width: 600px;
    margin-bottom: 32px;
    line-height: 1.5;
}
.hero__lead strong { color: var(--c-coral); }

.hero__cta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero__trust {
    display: flex;
    gap: 16px;
    align-items: center;
}
.hero__trust-avatars { display: flex; }
.hero__trust-avatars .avatar { margin-left: -10px; border: 3px solid var(--c-pink); }
.hero__trust-avatars .avatar:first-child { margin-left: 0; }
.stars { color: var(--c-coral); font-size: 1rem; letter-spacing: 2px; }
.hero__trust small { color: var(--c-muted); font-size: .88rem; }
.hero__trust strong { color: var(--c-dark); }

.avatar {
    width: 40px; height: 40px;
    background: var(--c, #FFD4B8);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: .88rem;
    color: var(--c-dark);
    border: 2px solid var(--c-dark);
}
.avatar--lg { width: 56px; height: 56px; font-size: 1.05rem; }

.hero__illus { position: relative; }
.illus-hero { width: 100%; height: auto; max-width: 600px; margin: 0 auto; }

/* ============ TUILES STATS ============ */
.tiles {
    margin-top: -80px;
    position: relative;
    z-index: 5;
    padding: 0 24px;
}
.tiles__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0;
}
.tile {
    position: relative;
    padding: 28px;
    border-radius: var(--r-md);
    border: 2.5px solid var(--c-dark);
    box-shadow: 4px 4px 0 var(--c-dark);
    overflow: hidden;
    transition: transform .2s;
}
.tile:hover { transform: translateY(-4px); }
.tile:nth-child(1) { transform: rotate(-1deg); }
.tile:nth-child(2) { transform: rotate(1deg); }
.tile:nth-child(3) { transform: rotate(-0.5deg); }
.tile:nth-child(4) { transform: rotate(1.5deg); }
.tile:hover:nth-child(odd) { transform: rotate(-1deg) translateY(-4px); }
.tile:hover:nth-child(even) { transform: rotate(1deg) translateY(-4px); }

.tile--pink { background: var(--c-pink); }
.tile--mint { background: var(--c-mint); }
.tile--yellow { background: var(--c-yell-soft); }
.tile--lavender { background: var(--c-lavender); }

.tile__num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--c-dark);
    letter-spacing: -0.04em;
}
.tile__num small { font-size: 1.8rem; font-weight: 700; }
.tile__label {
    color: var(--c-dark);
    font-weight: 500;
    font-size: .95rem;
    margin-top: 8px;
    line-height: 1.35;
}
.tile__deco {
    position: absolute;
    top: 16px; right: 16px;
    width: 40px; height: 40px;
    opacity: .9;
}

/* ============ SECTION HEAD ============ */
.section-head {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 60px;
}
.section-head h2 { margin: 20px 0; }
.section-head p { font-size: 1.15rem; color: var(--c-muted); max-width: 620px; margin: 0 auto; }
.section-head--split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: none;
    text-align: left;
    gap: 24px;
}
.section-head--light h2, .section-head--light p { color: var(--c-dark); }

/* ============ STRATÉGIES ============ */
.strategies { padding: 120px 0 100px; }

.strat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.strat {
    padding: 28px;
    border-radius: var(--r-md);
    border: 2.5px solid var(--c-dark);
    box-shadow: 5px 5px 0 var(--c-dark);
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.strat:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 var(--c-dark);
}
.strat--coral { background: var(--c-pink); }
.strat--mint { background: var(--c-mint); }
.strat--yellow { background: var(--c-yell-soft); }
.strat--lavender { background: var(--c-lavender); }

.strat__illus {
    width: 120px; height: 120px;
    margin: 0 auto 16px;
    background: #FFFBF5;
    border-radius: var(--r-sm);
    border: 2px solid var(--c-dark);
    padding: 10px;
}
.strat__badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--c-dark);
    color: #FFF;
    font-size: .72rem;
    font-weight: 700;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .05em;
    align-self: flex-start;
    margin-bottom: 10px;
}
.strat h3 { font-size: 1.45rem; margin-bottom: 10px; }
.strat p { color: var(--c-text); font-size: .95rem; margin-bottom: 18px; flex: 1; }

.strat__kpi {
    display: flex;
    gap: 20px;
    padding-top: 16px;
    border-top: 2px dashed var(--c-dark);
    margin-bottom: 16px;
}
.strat__kpi span { display: flex; flex-direction: column; font-size: .78rem; color: var(--c-muted); }
.strat__kpi strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--c-dark); font-weight: 800; }

.strat__link {
    font-weight: 700;
    color: var(--c-dark);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    align-self: flex-start;
}
.strat__link:hover { color: var(--c-coral); }

/* ============ MÉTHODE ============ */
.method {
    margin: 0 24px;
    padding: 100px 0;
    background: var(--c-dark);
    color: var(--c-cream);
    border-radius: var(--r-xl);
    position: relative;
    overflow: hidden;
}
.method::before {
    content: '';
    position: absolute;
    top: 10%; right: -120px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--c-coral), transparent 70%);
    opacity: .25;
    pointer-events: none;
}
.method::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--c-yellow), transparent 70%);
    opacity: .2;
    pointer-events: none;
}
.method .section-head h2 { color: var(--c-cream); }
.method .section-head p { color: rgba(255,251,245,.8); }

.method__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.step {
    background: var(--c-cream);
    color: var(--c-dark);
    padding: 28px;
    border-radius: var(--r-md);
    position: relative;
    transition: transform .2s;
}
.step:hover { transform: translateY(-6px); }
.step__num {
    position: absolute;
    top: -18px; right: 24px;
    width: 52px; height: 52px;
    background: var(--c-yellow);
    border: 2.5px solid var(--c-dark);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--c-dark);
    box-shadow: 3px 3px 0 var(--c-dark);
}
.step__icon { width: 80px; height: 80px; margin-bottom: 16px; }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--c-muted); font-size: .95rem; margin: 0; }
.step__cta {
    display: inline-block;
    margin-top: 14px;
    color: var(--c-coral);
    font-weight: 700;
    text-decoration: none;
    font-size: .95rem;
}
.step__cta:hover { text-decoration: underline; }

/* ============ OPPORTUNITÉS ============ */
.biens { padding: 120px 0 100px; }

.biens__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.bien {
    background: var(--c-cream);
    border: 2.5px solid var(--c-dark);
    border-radius: var(--r-md);
    box-shadow: 5px 5px 0 var(--c-dark);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.bien:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 var(--c-dark);
}
.bien__visual {
    position: relative;
    aspect-ratio: 14/10;
    padding: 20px;
    display: grid;
    place-items: center;
    border-bottom: 2.5px solid var(--c-dark);
}
.bien__visual svg { width: 100%; max-width: 260px; height: auto; }
.bien__visual--pink { background: var(--c-pink); }
.bien__visual--mint { background: var(--c-mint); }
.bien__visual--yellow { background: var(--c-yell-soft); }
.bien__tag {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--c-dark);
    color: #FFF;
    font-size: .75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
}
.bien__tag--green { background: #0F9D6B; }
.bien__tag--blue { background: #2B6CE8; }

.bien__body { padding: 22px; }
.bien__loc { color: var(--c-muted); font-size: .85rem; margin-bottom: 6px; font-weight: 500; }
.bien__specs {
    display: flex; gap: 6px;
    color: var(--c-muted);
    font-size: .85rem;
    margin-bottom: 16px;
}
.bien__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 2px dashed var(--c-dark);
}
.bien__price small {
    display: block;
    color: var(--c-muted);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.bien__price strong {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--c-dark);
}
.bien__yield {
    background: var(--c-yellow);
    padding: 8px 14px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--c-dark);
    border: 2px solid var(--c-dark);
}
.bien__yield--blue { background: var(--c-sky); }

/* ============ CTA BIG ============ */
.cta-big {
    margin: 0 24px 100px;
    padding: 80px 0;
    background: var(--c-coral);
    border-radius: var(--r-xl);
    color: var(--c-cream);
    position: relative;
    overflow: hidden;
}
.cta-big::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 10%, rgba(255,217,61,.35), transparent 40%);
    pointer-events: none;
}
.cta-big__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
}
.cta-big__deco1 {
    position: absolute;
    top: 40px; right: 40px;
    width: 120px;
    animation: spin 30s linear infinite;
}
.cta-big__deco2 {
    position: absolute;
    bottom: 40px; left: 40px;
    width: 140px;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-big h2 { color: var(--c-cream); margin: 20px 0 16px; }
.cta-big h2 em { color: var(--c-yellow); font-style: italic; }
.cta-big p { font-size: 1.15rem; color: rgba(255,251,245,.9); margin-bottom: 28px; }
.cta-big__actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cta-big__illus svg { width: 100%; max-width: 480px; margin: 0 auto; }

/* ============ REVIEWS ============ */
.reviews { padding: 100px 0; }

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.review {
    margin: 0;
    padding: 32px;
    border-radius: var(--r-md);
    border: 2.5px solid var(--c-dark);
    box-shadow: 5px 5px 0 var(--c-dark);
    position: relative;
}
.review:nth-child(1) { transform: rotate(-1.5deg); }
.review:nth-child(2) { transform: rotate(1deg); }
.review:nth-child(3) { transform: rotate(-0.5deg); }

.review--pink { background: var(--c-pink); }
.review--mint { background: var(--c-mint); }
.review--yellow { background: var(--c-yell-soft); }

.review__stars {
    color: var(--c-coral);
    letter-spacing: 3px;
    font-size: 1.1rem;
    margin-bottom: 14px;
}
.review p {
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--c-dark);
    margin-bottom: 22px;
    font-weight: 500;
}
.review footer { display: flex; align-items: center; gap: 14px; }
.review footer strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--c-dark); }
.review footer small { color: var(--c-muted); font-size: .85rem; }

/* ============ MAG / BLOG ============ */
.mag { padding: 100px 0; }

.mag__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.mag-card {
    padding: 28px;
    border-radius: var(--r-md);
    border: 2.5px solid var(--c-dark);
    box-shadow: 5px 5px 0 var(--c-dark);
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.mag-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 var(--c-dark);
}
.mag-card--lavender { background: var(--c-lavender); }
.mag-card--peach { background: var(--c-peach); }
.mag-card--mint { background: var(--c-mint); }

.mag-card__cat {
    display: inline-block;
    background: var(--c-dark);
    color: var(--c-yellow);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    align-self: flex-start;
    margin-bottom: 14px;
}
.mag-card h3 { font-size: 1.35rem; margin-bottom: 18px; line-height: 1.2; }
.mag-card h3 a { color: var(--c-dark); }
.mag-card h3 a:hover { color: var(--c-coral); }

.mag-card__illus {
    width: 100%;
    height: 130px;
    background: #FFFBF5;
    border-radius: var(--r-sm);
    border: 2px solid var(--c-dark);
    padding: 12px;
    margin-bottom: 16px;
}
.mag-card__meta { color: var(--c-muted); font-size: .85rem; font-weight: 500; margin-top: auto; }

/* ============ NEWSLETTER ============ */
.newsletter {
    margin: 0 24px 40px;
    padding: 60px 0;
    background: var(--c-yellow);
    border-radius: var(--r-xl);
    border: 2.5px solid var(--c-dark);
    position: relative;
}
.newsletter__inner {
    display: grid;
    grid-template-columns: auto 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}
.newsletter__deco { width: 160px; height: auto; }
.newsletter h2 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); margin: 0 0 8px; }
.newsletter p { color: var(--c-dark); margin: 0; font-weight: 500; }

.newsletter__form {
    display: flex;
    gap: 10px;
    background: var(--c-cream);
    border: 2.5px solid var(--c-dark);
    border-radius: 999px;
    padding: 6px;
}
.newsletter__form input {
    flex: 1;
    padding: 14px 20px;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: var(--c-dark);
}
.newsletter__form input:focus { outline: none; }
.newsletter__form input::placeholder { color: var(--c-muted); }

/* ============ FOOTER ============ */
.footer {
    background: var(--c-dark);
    color: rgba(255,251,245,.8);
    padding-top: 80px;
}
.footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,251,245,.1);
}
.footer__brand p {
    color: rgba(255,251,245,.75);
    margin: 20px 0;
    font-size: .95rem;
    max-width: 340px;
}
.footer__social { display: flex; gap: 10px; }
.footer__social a {
    width: 40px; height: 40px;
    background: rgba(255,251,245,.08);
    border-radius: 50%;
    display: grid; place-items: center;
    color: var(--c-cream);
    font-weight: 700;
    font-size: .85rem;
    transition: background .2s, color .2s;
}
.footer__social a:hover { background: var(--c-yellow); color: var(--c-dark); }

.footer__col h4 {
    color: var(--c-cream);
    font-size: 1rem;
    margin-bottom: 18px;
}
.footer__col a {
    display: block;
    color: rgba(255,251,245,.75);
    padding: 6px 0;
    font-size: .95rem;
    transition: color .15s;
}
.footer__col a:hover { color: var(--c-yellow); }

.footer__bottom { padding: 24px 0; }
.footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer__bottom small { color: rgba(255,251,245,.6); font-size: .88rem; }
.footer__legals { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__legals a { color: rgba(255,251,245,.6); font-size: .85rem; }
.footer__legals a:hover { color: var(--c-yellow); }

/* =========================================================
   PAGE ARTICLE
   ========================================================= */
.article-hero {
    margin: 30px 24px 0;
    padding: 60px 40px 80px;
    background: var(--c-lavender);
    border-radius: var(--r-xl);
    position: relative;
    overflow: hidden;
}
.article-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 300px; height: 300px;
    background: var(--c-yellow);
    border-radius: 50%;
    opacity: .5;
}
.article-hero::after {
    content: '';
    position: absolute;
    bottom: -120px; left: -100px;
    width: 320px; height: 320px;
    background: var(--c-coral);
    border-radius: 50%;
    opacity: .3;
}
.article-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}
.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: .88rem;
    color: var(--c-muted);
    font-weight: 500;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--c-coral); }

.article-hero h1 {
    font-size: clamp(2.2rem, 4.8vw, 4rem);
    margin: 18px 0;
    line-height: 1.05;
}
.article-hero__lead {
    font-size: 1.25rem;
    color: var(--c-text);
    line-height: 1.5;
    max-width: 720px;
    margin-bottom: 32px;
}
.article-hero__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--c-cream);
    border: 2.5px solid var(--c-dark);
    border-radius: 999px;
    box-shadow: 3px 3px 0 var(--c-dark);
    display: inline-flex;
}
.article-hero__meta strong { display: block; font-family: var(--font-display); color: var(--c-dark); font-size: .95rem; }
.article-hero__meta small { color: var(--c-muted); font-size: .82rem; }

.article-cover {
    max-width: 1000px;
    margin: -40px auto 50px;
    padding: 0 24px;
    position: relative;
    z-index: 3;
}
.article-cover__frame {
    background: var(--c-mint);
    padding: 14px;
    border-radius: var(--r-md);
    border: 2.5px solid var(--c-dark);
    box-shadow: 6px 6px 0 var(--c-dark);
    transform: rotate(-0.5deg);
}
.article-cover svg {
    width: 100%;
    height: auto;
    background: var(--c-cream);
    border-radius: var(--r-sm);
    border: 2px solid var(--c-dark);
}
.article-cover figcaption {
    text-align: center;
    color: var(--c-muted);
    font-size: .88rem;
    margin-top: 16px;
    font-style: italic;
}

/* Layout article : sommaire à gauche, contenu à droite */
.article-layout {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 24px 80px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 56px;
    align-items: start;
}

/* Sommaire (TOC) */
.article-toc {
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    font-family: var(--font-sans);
}
.article-toc__title {
    font-family: var(--font-display);
    font-size: .8rem;
    font-weight: 800;
    margin: 0 0 14px;
    color: var(--c-dark);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.article-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 2px solid rgba(26, 26, 62, .15);
}
.article-toc__item { margin: 0; padding: 0; }
.article-toc__item a {
    display: block;
    padding: 6px 14px;
    color: var(--c-muted);
    line-height: 1.4;
    font-size: .9rem;
    border-left: 2px solid transparent;
    margin-left: -2px;
    transition: color .15s, border-color .15s;
    text-decoration: none;
}
.article-toc__item a:hover {
    color: var(--c-coral);
    border-left-color: var(--c-coral);
}
.article-toc__item--h3 a {
    padding-left: 26px;
    font-size: .82rem;
}
.article-toc__item.is-active > a {
    color: var(--c-dark);
    font-weight: 700;
    border-left-color: var(--c-coral);
}

/* Sommaire inline (shortcode [toc]) */
.article-body .article-toc__nav {
    background: var(--c-cream);
    border: 2px solid var(--c-dark);
    border-radius: var(--r-md);
    padding: 18px 22px;
    margin: 28px 0;
}
.article-body .article-toc__nav .article-toc__list { border-left: 0; }
.article-body .article-toc__nav .article-toc__item a { padding-left: 0; }
.article-body .article-toc__nav .article-toc__item--h3 a { padding-left: 18px; }

/* Sur mobile : pas de colonne, sommaire empilé en encart */
@media (max-width: 1000px) {
    .article-layout {
        display: block;
        max-width: 760px;
    }
    .article-toc {
        position: static;
        max-height: none;
        background: var(--c-mint);
        border: 2px solid var(--c-dark);
        border-radius: var(--r-md);
        padding: 18px 22px;
        margin: 0 0 32px;
    }
    .article-toc__list { border-left: 0; }
    .article-toc__item a { padding-left: 0; }
    .article-toc__item--h3 a { padding-left: 18px; }
}

/* Corps article */
.article-body {
    min-width: 0;
    padding: 0 0 40px;
    font-size: 1.08rem;
    line-height: 1.75;
}
.article-body h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin-top: 56px;
    margin-bottom: 18px;
}
.article-body h2 .hl--yellow { font-size: inherit; }
.article-body h3 {
    font-size: 1.35rem;
    margin-top: 36px;
    margin-bottom: 14px;
}
.article-body p { color: var(--c-text); }
.article-body p strong { color: var(--c-dark); font-weight: 700; }
.article-body ul, .article-body ol { padding-left: 0; margin-bottom: 1.5em; }
.article-body ul li, .article-body ol li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 10px;
    list-style: none;
}
.article-body ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 10px;
    width: 14px; height: 14px;
    background: var(--c-yellow);
    border: 2px solid var(--c-dark);
    border-radius: 50%;
}
.article-body ol { counter-reset: li; }
.article-body ol li { counter-increment: li; }
.article-body ol li::before {
    content: counter(li);
    position: absolute;
    left: 0; top: 2px;
    width: 24px; height: 24px;
    background: var(--c-coral);
    color: #FFF;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .8rem;
    font-weight: 700;
    border: 2px solid var(--c-dark);
}

/* Table */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 32px 0;
    background: var(--c-cream);
    border: 2.5px solid var(--c-dark);
    border-radius: var(--r-md);
    box-shadow: 5px 5px 0 var(--c-dark);
    overflow: hidden;
    font-size: .98rem;
}
.data-table thead { background: var(--c-dark); color: var(--c-yellow); }
.data-table th { padding: 16px 20px; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.data-table td { padding: 14px 20px; border-top: 1px solid var(--c-border); }
.data-table tbody tr:nth-child(even) { background: #FFFBF0; }
.data-table tr.highlight { background: var(--c-yellow) !important; }
.data-table tr.highlight td { color: var(--c-dark); font-family: var(--font-display); }

/* =========================================================
   CLASSES SPÉCIALES : .focus .tldr .info .warning .error
   Toutes avec gros arrondis et personnalité
   ========================================================= */

/* .tldr — bloc résumé */
.tldr {
    background: var(--c-yell-soft);
    border: 2.5px solid var(--c-dark);
    border-radius: var(--r-md);
    padding: 28px 30px 28px 30px;
    margin: 0 0 50px;
    box-shadow: 5px 5px 0 var(--c-dark);
    position: relative;
}
.tldr::before {
    content: 'En bref';
    position: absolute;
    top: -16px; left: 24px;
    background: var(--c-dark);
    color: var(--c-yellow);
    padding: 6px 16px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .05em;
}
.tldr h2 {
    display: none;
}
.tldr ul { margin: 8px 0 0; padding: 0; }
.tldr ul li {
    padding-left: 32px;
    margin-bottom: 10px;
    list-style: none;
    position: relative;
    font-size: 1rem;
}
.tldr ul li::before {
    content: '✓';
    position: absolute;
    left: 0; top: 0;
    width: 22px; height: 22px;
    background: var(--c-coral);
    color: #FFF;
    border: 2px solid var(--c-dark);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .75rem;
    font-weight: 700;
}
.tldr strong { color: var(--c-coral); }

/* .focus — encadré mise en avant */
.focus {
    background: var(--c-coral);
    color: var(--c-cream);
    border: 2.5px solid var(--c-dark);
    border-radius: var(--r-md);
    padding: 26px 30px;
    margin: 36px 0;
    box-shadow: 5px 5px 0 var(--c-dark);
    position: relative;
    overflow: hidden;
}
.focus::after {
    content: '★';
    position: absolute;
    top: -20px; right: -12px;
    font-size: 8rem;
    color: var(--c-cream);
    opacity: .12;
    line-height: 1;
    transform: rotate(12deg);
    pointer-events: none;
}
.focus__label {
    display: inline-block;
    background: var(--c-yellow);
    color: var(--c-dark);
    padding: 4px 14px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 12px;
    border: 2px solid var(--c-dark);
}
.focus p { margin: 0; font-size: 1.08rem; line-height: 1.55; color: var(--c-cream); position: relative; z-index: 1; }
.focus strong { color: var(--c-yellow); }

/* .info — bleu pastel */
.info {
    background: var(--c-sky);
    border: 2.5px solid var(--c-dark);
    border-radius: var(--r-md);
    padding: 22px 28px 22px 80px;
    margin: 28px 0;
    box-shadow: 4px 4px 0 var(--c-dark);
    color: var(--c-dark);
    font-size: 1rem;
    position: relative;
    min-height: 84px;
}
.info::before {
    content: 'i';
    position: absolute;
    left: 22px; top: 22px;
    width: 40px; height: 40px;
    background: #2B6CE8;
    color: #FFF;
    border: 2.5px solid var(--c-dark);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    font-style: italic;
    box-shadow: 2px 2px 0 var(--c-dark);
}
.info strong { color: #2B6CE8; }

/* .warning — orange */
.warning {
    background: #FFE0B3;
    border: 2.5px solid var(--c-dark);
    border-radius: var(--r-md);
    padding: 22px 28px 22px 80px;
    margin: 28px 0;
    box-shadow: 4px 4px 0 var(--c-dark);
    color: var(--c-dark);
    font-size: 1rem;
    position: relative;
    min-height: 84px;
}
.warning::before {
    content: '!';
    position: absolute;
    left: 22px; top: 22px;
    width: 40px; height: 40px;
    background: #FF8C2B;
    color: #FFF;
    border: 2.5px solid var(--c-dark);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    box-shadow: 2px 2px 0 var(--c-dark);
}
.warning strong { color: #C86200; }

/* .error — rouge */
.error {
    background: var(--c-pink);
    border: 2.5px solid var(--c-dark);
    border-radius: var(--r-md);
    padding: 22px 28px 22px 80px;
    margin: 28px 0;
    box-shadow: 4px 4px 0 var(--c-dark);
    color: var(--c-dark);
    font-size: 1rem;
    position: relative;
    min-height: 84px;
}
.error::before {
    content: '×';
    position: absolute;
    left: 22px; top: 22px;
    width: 40px; height: 40px;
    background: #D02A2A;
    color: #FFF;
    border: 2.5px solid var(--c-dark);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.6rem;
    line-height: 1;
    box-shadow: 2px 2px 0 var(--c-dark);
}
.error strong { color: #D02A2A; }

/* ============ AUTEUR / PARTAGE ============ */
.author-box {
    display: flex;
    gap: 20px;
    background: var(--c-mint);
    border: 2.5px solid var(--c-dark);
    border-radius: var(--r-md);
    padding: 28px;
    margin: 50px 0 30px;
    box-shadow: 5px 5px 0 var(--c-dark);
    align-items: flex-start;
}
.author-box .avatar {
    width: 72px; height: 72px;
    font-size: 1.3rem;
    background: var(--c-yellow);
    flex-shrink: 0;
}
.author-box strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--c-dark); display: block; }
.author-box small { color: var(--c-muted); font-size: .88rem; display: block; margin-bottom: 8px; }
.author-box p { color: var(--c-text); font-size: .95rem; margin: 0; }

.article-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 30px 0;
    border-top: 2px dashed var(--c-dark);
    border-bottom: 2px dashed var(--c-dark);
    margin-top: 30px;
    flex-wrap: wrap;
}
.tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tags a {
    background: var(--c-cream);
    color: var(--c-dark);
    padding: 7px 14px;
    border: 2px solid var(--c-dark);
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    transition: background .15s;
}
.tags a:hover { background: var(--c-yellow); }

.share { display: flex; gap: 10px; align-items: center; font-size: .9rem; color: var(--c-muted); font-weight: 500; }
.share a {
    width: 40px; height: 40px;
    background: var(--c-dark);
    color: var(--c-yellow);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: .88rem;
    transition: background .15s;
}
.share a:hover { background: var(--c-coral); color: #FFF; }

/* ============ RELATED ============ */
.related {
    background: var(--c-cream);
    padding: 80px 0 100px;
    margin-top: 40px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
    .hero__inner { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .hero__lead { margin-left: auto; margin-right: auto; }
    .hero__cta, .hero__trust { justify-content: center; }
    .strat-grid, .tiles__grid { grid-template-columns: repeat(2, 1fr); }
    .method__grid, .biens__grid, .reviews__grid, .mag__grid { grid-template-columns: repeat(2, 1fr); }
    .nav__menu { display: none; }
    .cta-big__inner { grid-template-columns: 1fr; }
    .cta-big__illus { display: none; }
    .newsletter__inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
    .newsletter__deco { margin: 0 auto; }
    .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 720px) {
    .hero, .method, .cta-big, .newsletter, .article-hero { margin-left: 12px; margin-right: 12px; border-radius: var(--r-lg); }
    .hero { padding: 60px 0 100px; }
    .tiles { margin-top: -60px; padding: 0 12px; }
    .tiles__grid, .strat-grid, .method__grid, .biens__grid, .reviews__grid, .mag__grid { grid-template-columns: 1fr; gap: 16px; }
    .tile, .strat, .mag-card, .review { transform: none !important; }
    .nav { margin: 12px; padding: 0; top: 8px; }
    .nav__inner { padding: 8px 8px 8px 16px; gap: 12px; }
    .nav__login { display: none; }
    .strategies, .biens, .reviews, .mag { padding: 70px 0; }
    .method { padding: 70px 0; }
    .section-head--split { flex-direction: column; align-items: flex-start; }
    .footer__top { grid-template-columns: 1fr; gap: 30px; }
    .hero__cta .btn { width: 100%; }
    .article-body h2 { margin-top: 40px; }
    .data-table { font-size: .88rem; }
    .data-table th, .data-table td { padding: 12px 14px; }
    .article-foot { flex-direction: column; align-items: flex-start; }
    .author-box { flex-direction: column; }
    .hero__blob1, .hero__blob2 { width: 280px; }
    .cta-big__deco1, .cta-big__deco2 { display: none; }
}

/* =========================================================
   OVERRIDES WORDPRESS
   Styles nécessaires pour s'intégrer avec le contenu WP
   ========================================================= */

/* Accessibilité : skip link */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.skip-link:focus {
    background: var(--c-dark);
    color: var(--c-yellow);
    clip: auto !important;
    clip-path: none;
    display: block;
    font-weight: 700;
    height: auto;
    left: 6px;
    padding: 15px 23px;
    text-decoration: none;
    top: 7px;
    width: auto;
    z-index: 100000;
    border-radius: 10px;
}

/* Images featured dans la cover article */
.article-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/7;
    object-fit: cover;
    border-radius: var(--r-sm);
    border: 2px solid var(--c-dark);
    display: block;
}

/* Vignettes dans les mag-cards */
.mag-card__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 3/2;
    border-radius: var(--r-sm);
    border: 2px solid var(--c-dark);
    overflow: hidden;
    margin-bottom: 16px;
}
.mag-card__thumb img,
.mag-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.mag-card:hover .mag-card__img { transform: scale(1.04); }

/* Avatars WP (get_avatar) */
.avatar img,
img.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
/* Quand get_avatar renvoie directement un <img class="avatar"> */
img.avatar {
    border: 2px solid var(--c-dark);
}

/* Le logo personnalisé WP dans le brand */
.custom-logo-link { display: inline-flex; }
.custom-logo { max-height: 42px; width: auto; display: block; }

/* Pagination */
.pagination .nav-links,
.navigation.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}
.page-numbers {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    background: var(--c-cream);
    border: 2px solid var(--c-dark);
    border-radius: 999px;
    font-weight: 700;
    color: var(--c-dark);
    box-shadow: 2px 2px 0 var(--c-dark);
    transition: transform .15s;
}
.page-numbers:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--c-dark); }
.page-numbers.current { background: var(--c-coral); color: #FFF; }
.page-numbers.dots { border: 0; box-shadow: none; background: transparent; }

/* Alignements WP (alignwide / alignfull) */
.article-body .alignwide {
    margin-left: -32px;
    margin-right: -32px;
    max-width: none;
    width: auto;
}
.article-body .alignfull {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    width: 100vw;
}
@media (max-width: 1000px) {
    .article-body .alignwide { margin-left: 0; margin-right: 0; }
}

/* Images dans le contenu d'article */
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--r-sm);
    border: 2px solid var(--c-dark);
}
.article-body figure { margin: 28px 0; }
.article-body figcaption {
    text-align: center;
    color: var(--c-muted);
    font-size: .88rem;
    margin-top: 10px;
    font-style: italic;
}

/* Blockquote WP */
.article-body blockquote:not(.review) {
    border-left: 5px solid var(--c-coral);
    padding: 14px 22px;
    margin: 24px 0;
    font-style: italic;
    color: var(--c-text);
    background: var(--c-cream);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* Code blocks */
.article-body code {
    background: var(--c-yell-soft);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: .9em;
    border: 1px solid var(--c-dark);
}
.article-body pre {
    background: var(--c-dark);
    color: var(--c-cream);
    padding: 20px;
    border-radius: var(--r-md);
    overflow-x: auto;
    border: 2.5px solid var(--c-dark);
    box-shadow: 5px 5px 0 var(--c-dark);
}
.article-body pre code {
    background: transparent;
    padding: 0;
    border: 0;
    color: inherit;
}

/* Recherche (formulaire) */
.search-form {
    display: flex;
    gap: 8px;
    background: var(--c-cream);
    border: 2.5px solid var(--c-dark);
    border-radius: 999px;
    padding: 6px;
    box-shadow: 4px 4px 0 var(--c-dark);
}
.search-form input[type="search"] {
    flex: 1;
    padding: 12px 20px;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
}
.search-form input[type="search"]:focus { outline: none; }
.search-form button {
    padding: 12px 24px;
    background: var(--c-coral);
    color: #FFF;
    border: 2px solid var(--c-dark);
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}
