/* ──────────────────────────────────────────────────────────────────────────
   Espace dédié aux sages-femmes — Landing page
   Reprend la maquette HTML fournie (palette + responsive 2 cols / 1 col)
   ─────────────────────────────────────────────────────────────────────── */

.esf-body {
    --blue-main: #3486C7;
    --orange-main: #E8A212;
    --blue-light: #5FA7DC;
    --blue-vlight: #C5DFF2;
    --orange-light: #F4B651;
    --bg-color: #FAFAFB;
    --text-dark: #334155;
    --text-muted: #64748b;
    --white: #ffffff;

    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

.esf-body *,
.esf-body *::before,
.esf-body *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Decorative shapes ──────────────────────────────────────────────────── */
.esf-deco-shape {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    pointer-events: none;
}

.esf-shape-1 {
    width: 400px;
    height: 400px;
    background-color: var(--blue-vlight);
    top: -100px;
    right: -100px;
}

.esf-shape-2 {
    width: 300px;
    height: 300px;
    background-color: var(--orange-light);
    bottom: -50px;
    left: -50px;
}

/* ── Header & logo ──────────────────────────────────────────────────────── */
.esf-header {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.esf-logo {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
}

/* ── Main content ───────────────────────────────────────────────────────── */
.esf-main {
    width: 90%;
    max-width: 800px;
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.esf-title {
    font-size: 2.2rem;
    color: var(--blue-main);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
}

.esf-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.esf-intro :is(p, span, div) {
    margin: 0;
}

/* ── Button grid ────────────────────────────────────────────────────────── */
.esf-button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    justify-content: center;
}

.esf-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    padding: 1.2rem clamp(1rem, 2vw, 1.5rem);
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(0.94rem, 1.55vw, 1.05rem);
    line-height: 1.2;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    color: var(--white);
    text-align: center;
    border: none;
    cursor: pointer;
}

.esf-btn-blue {
    background-color: var(--blue-main);
}

.esf-btn-orange {
    background-color: var(--orange-main);
}

.esf-btn:hover,
.esf-btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    filter: brightness(1.05);
    color: var(--white);
    text-decoration: none;
}

.esf-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    flex-shrink: 0;
    overflow: visible;
}

/* Le premier bouton a une icône légèrement plus grande dans la maquette */
.esf-button-grid .esf-btn:first-child svg {
    width: 32px;
    height: 32px;
}

/* ── Hero visual ────────────────────────────────────────────────────────── */
.esf-hero-visual {
    margin: 2.5rem auto 0;
    width: min(340px, 78vw);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.esf-hero-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.esf-footer {
    margin-top: 1.5rem;
    padding-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    width: 100%;
}

/* ── Responsive : tablette ──────────────────────────────────────────────── */
@media (max-width: 780px) and (min-width: 641px) {
    .esf-btn {
        gap: 10px;
        padding: 1.05rem 0.9rem;
        font-size: 0.88rem;
    }
    .esf-btn svg,
    .esf-button-grid .esf-btn:first-child svg {
        width: 24px;
        height: 24px;
    }
}

/* ── Responsive : mobile ────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .esf-title {
        font-size: 1.55rem;
    }
    .esf-intro {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .esf-button-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .esf-btn {
        min-height: 58px;
        justify-content: flex-start;
        text-align: left;
        padding: 1rem 1.2rem;
        gap: 14px;
        white-space: normal;
    }
    .esf-btn svg,
    .esf-button-grid .esf-btn:first-child svg {
        width: 26px;
        height: 26px;
    }
    .esf-logo {
        max-width: 160px;
    }
}
