body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #2d2d2d;
    background: #f5f7f6;
}

/* Définitions de variables par défaut pour compatibilité inter-navigateurs */
:root{
    --pine-700: #2e5e2d;
    --display: 'Playfair Display', serif;
}

/* Extra small screens: reduce price size so title/description stay visible */
@media (max-width: 420px) {
    .price {
        font-size: 1rem;
    }
    .price-list h3 {
        font-size: 1rem;
    }
    .price-list p {
        font-size: .82rem;
    }
        /* Force a fixed column for the price on small screens so the left content keeps space */
        .price-list li {
            grid-template-columns: 1fr 92px !important;
        }
        .price-list .price {
            width: 92px !important;
            text-align: right;
        }
    .price-list li {
        gap: 8px;
        grid-template-columns: 1fr auto;
    }
    .price-list li > div:first-child { min-width: 0; overflow: visible; }
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    background: #6b8f8a;
    text-align: center;
    position: relative;
}

header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

header div {
    position: relative;
    z-index: 2;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
}

.btn {
    background: #d4a373;
    color: white;
    padding: 14px 26px;
    border-radius: 30px;
    text-decoration: none;
}

nav {
    position: sticky;
    top: 0;
    background: white;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #6b8f8a;
}

section {
    max-width: 1100px;
    margin: auto;
    padding: 80px 20px;
}

h2 {
    font-family: 'Playfair Display', serif;
    color: #6b8f8a;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

#reflexologie {
    position: relative;
}

#reflexologie .calendly-button {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: #0069ff;
    color: #ffffff;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.14);
    font-weight: 600;
}

/* CONTACT image default styling (desktop) */
#contact .contact-image {
    width: 280px;
    height: auto;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    display: block;
}

#reflexologie .calendly-button:hover {
    background: #0050d1;
}

/* Generic Calendly button for in-flow placement */
.calendly-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    background: #0069ff;
    color: #ffffff;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    font-weight: 600;
    margin-top: 20px;
}
.calendly-button:hover { background: #0050d1; }

/* Place and style calendly button inside the first card of reflexologie-plantaire */
#reflexologie-plantaire .card {
    display: flex;
    flex-direction: column;
}

#reflexologie-plantaire .card .calendly-button {
    background: #6b8f8a; /* same as header */
    color: #ffffff;
    align-self: center; /* center horizontally */
    margin-top: 20px;
    padding: 12px 28px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

#reflexologie-plantaire .card .calendly-button:hover{
    background: #587a6f;
}

/* Make the contact form submit button match the Planifier button (green) */
#contact .calendly-button,
#contact .btn.calendly-button{
    background: #6b8f8a;
    color: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
#contact .calendly-button:hover,
#contact .btn.calendly-button:hover{
    background: #587a6f;
}

footer {
    background: #6b8f8a;
    color: white;
    text-align: center;
    padding: 40px;
}

/* Footer links should be readable on the green background */
footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}
footer a:hover {
    text-decoration: underline;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

button {
    margin-top: 15px;
}

a {
    color: #6b8f8a;
}

a:hover {
    text-decoration: underline;
}

/* Style pour la section "Qui suis-je ?" */
.card-bio {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.portrait {
    width: 280px;
    height: auto;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ===================================================================
     TARIFS (Appliquer sur tous les écrans)
=================================================================== */
.tarifs-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.price-card {
    background: white;
    color: #2d2d2d;
    border-radius: 16px;
    padding: 30px;
    max-width: 720px;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

/* Ensure card and list text are visible on all browsers / mobile
   Force white card background and dark text like Firefox rendering */
.price-card, .card {
    background: white !important;
    color: #2d2d2d !important;
}
.price-list h3, .price-list p {
    color: #2d2d2d !important;
}
.price-list li > div:first-child { color: inherit !important; }

.price-card h3 {
    color: #2d2d2d;
}

.price-card p {
    color: #666;
    margin: 0;
    font-size: .95rem;
}

.price {
    font-family: var(--display, 'Playfair Display', serif);
    font-size: 1.25rem;
    color: var(--pine-700, #6b8f8a);
    font-weight: 600;
    white-space: nowrap;
}

.price-list {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Strong resets for price lists to ensure consistent rendering across browsers */
.card .price-list,
.price-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.card .price-list li,
.price-list li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 12px !important;
}

.price-list li {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    text-align: left;
}

.price-list li:last-child {
    border-bottom: 0;
}

.price-list h3 {
    color: #2d2d2d;
    font-size: 1.02rem;
    margin: 0 0 2px;
}

.price-list p {
    color: #777;
    font-size: .88rem;
}

/* Allow left column to shrink/wrap on small screens so text remains visible */
.price-list li > div:first-child {
    flex: 1 1 auto;
    min-width: 0; /* allow flex children to shrink below content width */
}
.price-list h3,
.price-list p {
    white-space: normal;
    overflow-wrap: break-word;
}
.price-list .price {
    flex: 0 0 auto;
    margin-left: 12px;
}

.price-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5f7f6;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 8px 0 24px;
    font-size: .9rem;
    color: #2d2d2d;
}

.price-meta {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-meta li {
    font-size: .88rem;
    color: #555;
    padding-left: 18px;
    position: relative;
}

.price-meta li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--pine-700, #6b8f8a);
}

.price-card .btn-primary {
    background: var(--pine-700, #6b8f8a);
    width: 100%;
    color: #fff;
}

.price-card .btn-primary:hover {
    background: color-mix(in srgb, var(--pine-700, #6b8f8a) 70%, black);
}

/* Mettre la section tarifs2 en fond pleine largeur comme le header */
#tarifs2 {
    width: 100%;
    max-width: none;
    background: #6b8f8a;
    /* même couleur que le header */
    color: #fff;
    padding: 60px 0;
}

#tarifs2 .tarifs-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8em;
    }

    nav a {
        margin: 0 8px;
        font-size: 0.9em;
    }

    section {
        padding: 40px 15px;
    }

    .card-bio {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .portrait {
        width: 100%;
        max-width: 100%;
        height: auto;
        flex-shrink: initial;
        display: block;
        /* Preserve aspect ratio and avoid visual stretching on small screens */
        object-fit: cover;
    }

    /* CONTACT: empiler le formulaire et redimensionner l'image pour éviter le décalage */
    /* Force stacking of contact content on small screens (override inline display:flex) */
    #contact .card > div {
        display: block !important;
        gap: 16px;
        align-items: stretch !important;
    }

    #contact .contact-image {
        width: 100% !important;
        max-width: 320px;
        height: auto !important;
        margin: 0 auto;
        border-radius: 12px;
        flex-shrink: 1 !important;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

    /* ===================================================================
   TARIFS
=================================================================== */
    .tarifs-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .price-card {
        background: var(--pine-700);
        color: #fff;
        border-radius: 10px;
        padding: 40px;
        max-width: 520px;
        width: 100%;
    }

    .price-card h3 {
        color: #fff;
    }

    .price-card p {
        color: rgba(255, 255, 255, .75);
        margin: 0;
        font-size: .9rem;
    }


    .price {
        font-family: var(--display, 'Playfair Display', serif);
        font-size: 1.7rem;
        color: var(--pine-700);
        font-weight: 500;
        white-space: nowrap;
    }

    .price-list {
        list-style: none;
        margin: 0 0 8px;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    .price-list li {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 12px;
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, .14);
        text-align: left;
    }

    .price-list li:last-child {
        border-bottom: 0;
    }

    .price-list h3 {
        color: #fff;
        font-size: 1.02rem;
        margin: 0 0 2px;
    }

    .price-list p {
        color: rgba(255, 255, 255, .65);
        font-size: .82rem;
    }

    .price-option {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(255, 255, 255, .08);
        border-radius: 6px;
        padding: 12px 16px;
        margin: 8px 0 24px;
        font-size: .9rem;
        color: var(--pine-700);
    }

    .price-meta {
        list-style: none;
        margin: 0 0 28px;
        padding: 0;
        text-align: left;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .price-meta li {
        font-size: .88rem;
        color: rgba(255, 255, 255, .85);
        padding-left: 18px;
        position: relative;
    }

    .price-meta li::before {
        content: "—";
        position: absolute;
        left: 0;
        color: var(--pine-700);
    }

    .price-card .btn-primary {
        background: var(--pine-700);
        width: 100%;
    }

    .price-card .btn-primary:hover {
        background: var(--pine-700);
    }
}