@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

* {
    box-sizing: border-box;
}

:root {
    --rose: #d94f70;
    --rose-dark: #b93859;
    --rose-light: #fce7ed;
    --texte: #30252a;
    --gris: #746a6f;
    --blanc: #ffffff;
    --bordure: #f0d9df;
    --ombre: 0 10px 35px rgba(110,40,60,.10);
}

body {
    margin: 0;
    font-family: 'DM Sans',Arial,sans-serif;
    background: #f3f4f6 url("images/cd39ea.jpg") center center / cover fixed no-repeat;
    color: var(--texte);
}

.container {
    max-width: 1250px;
    margin: auto;
    padding: 25px;
}

.container.narrow {
    max-width: 700px;
}

.page-center {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.hero-card {
    width: min(760px,100%);
    transform: translateY(-80px);
    padding: 55px 40px;
    text-align: center;
    background: rgba(255,255,255,0.30); 
    border: 1px solid var(--bordure);
    border-radius: 24px;
    box-shadow: var(--ombre);
}

.hero-card .heart {
    color: var(--rose);
    font-size: 42px;
    margin-bottom: 10px;
}

.hero-card h1,
.simple-header h1 {
    margin: 0 0 10px;
    font-family: 'Playfair Display',Georgia,serif;
    font-size: clamp(30px,5vw,48px);
    color: var(--rose-dark);
}

.subtitle {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 16px;
    border-radius: 30px;
    background: var(--rose-light);
    color: var(--rose-dark);
    font-size: 15px;
    font-weight: 600;
}

.hero-card p,
.simple-header p {
    margin: 0;
    color: var(--gris);
    font-size: 16px;
    line-height: 1.6;
}

.home-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button,
button {
    display: inline-block;
    padding: 13px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg,#df5c7a,#c83d5d);
    box-shadow: 0 5px 12px rgba(200,61,93,.20);
    text-decoration: none;
    transition: transform .2s ease,box-shadow .2s ease;
}

.button:hover,
button:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(200,61,93,.28);
}

.button.secondary,
button.secondary {
    color: var(--rose-dark);
    background: var(--rose-light);
    box-shadow: none;
}

.button.ghost {
    color: var(--rose-dark);
    background: #ffffff;
    border: 1px solid var(--bordure);
    box-shadow: none;
}

.home-forgot {
    margin-top: 20px !important;
    font-size: 14px !important;
}

a {
    color: var(--rose-dark);
}

.simple-header {
    position: relative;
    text-align: center;
    padding: 20px 10px 25px;
    margin-bottom: 20px;
}



.simple-header .back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 14px;
    text-decoration: none;
}

.form-container {
    max-width: 650px;
    margin: 0 auto 25px;
    padding: 32px;
    background: rgba(255,255,255,0.30); 
    border: 1px solid var(--bordure);
    border-radius: 20px;
    box-shadow: var(--ombre);
}

.form-container h2 {
    margin-top: 0;
    font-family: 'Playfair Display',Georgia,serif;
    font-size: 28px;
    color: var(--rose-dark);
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
}

label span {
    font-weight: normal;
    color: #999999;
}

input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #e4d6da;
    border-radius: 10px;
    background: #ffffff;
    color: var(--texte);
    font-family: inherit;
    font-size: 16px;
    outline: none;
}

input:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(217,79,112,.10);
}

input[readonly] {
    background: #f9f5f6;
}

.small-text {
    color: var(--gris);
    font-size: 14px;
    line-height: 1.5;
}

.message {
    max-width: 650px;
    margin: 0 auto 18px;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 14px;
}

.message.success {
    background: #e8f7ed;
    color: #21683b;
    border: 1px solid #c8ead4;
}

.message.error {
    background: #fff0f1;
    color: #a32d42;
    border: 1px solid #f5ccd4;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px;
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: 16px;
    box-shadow: var(--ombre);
}

.search-box input {
    flex: 1;
    min-width: 220px;
}

#map {
    width: 100%;
    height: 600px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 35px;
    border: 1px solid var(--bordure);
    box-shadow: 0 15px 40px rgba(80,30,45,.14);
}

.info {
    max-width: 700px;
    margin: 35px auto;
    padding: 25px 30px;
    text-align: center;
    background: rgba(255,255,255,.7);
    border: 1px solid var(--bordure);
    border-radius: 16px;
}

.info h3 {
    margin: 0 0 15px;
    font-family: 'Playfair Display',Georgia,serif;
    font-size: 23px;
    color: var(--rose-dark);
}

.info p {
    margin: 10px 0;
    color: var(--gris);
    line-height: 1.6;
}

.popup {
    min-width: 200px;
}

.popup strong {
    display: block;
    margin-bottom: 4px;
    color: var(--rose-dark);
    font-size: 16px;
}

.popup hr {
    border: 0;
    border-top: 1px solid #eeeeee;
    margin: 10px 0;
}

.popup a {
    text-decoration: none;
    font-weight: 600;
}

.ville {
    margin-top: 4px;
    color: #777777;
    font-size: 13px;
}

.danger-zone {
    max-width: 650px;
    margin: 25px auto;
    padding: 24px;
    text-align: center;
    background: #fff6f7;
    border: 1px solid #f3cdd4;
    border-radius: 16px;
}

.danger-zone h2 {
    margin-top: 0;
    color: #a32d42;
    font-size: 20px;
}

.danger-zone p {
    color: var(--gris);
}

button.danger {
    background: #a32d42;
    box-shadow: none;
}

.form-link {
    margin-top: 20px;
    text-align: center;
}

.center-link {
    margin: 25px 0;
    text-align: center;
}

  .header-button {
        display: inline-block;
        padding: 13px 20px;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        font-family: inherit;
        font-size: 15px;
        font-weight: 600;
        color: #ffffff;
        background: linear-gradient(135deg,#df5c7a,#c83d5d);
        box-shadow: 0 5px 12px rgba(200,61,93,.20);
        text-decoration: none;
        transition: transform .2s ease,box-shadow .2s ease;
        text-decoration: none;
        margin-bottom: 20px;
    }

    .header-button:hover {
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 7px 18px rgba(200,61,93,.28);
        text-decoration: none;
    }

    .header-button.logout {
        color: var(--rose-dark);
        background: #ffffff;
        border: 1px solid var(--bordure);
        box-shadow: none;
    }

    .header-button.logout:hover {
        color: var(--rose-dark);
        background: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(0,0,0,.08);
    }

    .member-count {
        margin: 20px 0 5px;
        color: var(--rose-dark);
        font-size: 15px;
        font-weight: 600;
    }

    .member-count-marker {
        background: transparent;
        border: none;
    }

    .member-count-marker-inner {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #2A81CB;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 700;
        border: 3px solid #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    }

/* Responsive */

@media (max-width: 700px) {
    .container {
        padding: 10px;
    }

    .page-center {
        padding: 10px;
    }

    .hero-card {
        padding: 40px 20px;
        border-radius: 18px;
    }

    .home-actions {
        flex-direction: column;
    }

    .home-actions .button {
        width: 100%;
    }

    .form-container {
        padding: 24px 18px;
    }

    .search-box {
        flex-direction: column;
        padding: 10px;
    }

    .search-box button {
        width: 100%;
    }

    #map {
        height: 450px;
        border-radius: 14px;
    }

    .simple-header::before {
        left: 5%;
    }

    .simple-header::after {
        right: 5%;
    }

    .header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        margin-bottom: 10px;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .header-button {
        display: inline-block;
        padding: 8px 13px;
        border-radius: 9px;
        background: var(--rose-light);
        color: var(--rose-dark);
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        transition: .2s ease;
        text-align: center;
        white-space: nowrap;
    }

    .header-button:hover {
        background: #f8d5df;
        color: var(--rose-dark);
        transform: translateY(-1px);
    }

    .header-button.logout {
        background: #fff0f1;
        color: #a32d42;
    }

    .header-button.logout:hover {
        background: #fbdfe3;
        color: #a32d42;
    }

    .header-top {
        align-items: flex-start;
    }

    .header-actions {
        flex-direction: column;
        align-items: stretch;
    }
}