/* Shared by the public home, rates and sign-in pages. */
.public-page {
    --home-photo: url('../img/web/home.webp');
    --login-photo: url('../img/web/login.webp');
    --ink: #413b2d;
    --olive: #50593e;
    --paper: #fcf9f6;
    --wash: #f5efea;
    background: var(--wash);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
}

.public-page > main { flex: 1; }
.public-page .header {
    position: sticky;
    background: var(--paper);
    box-shadow: none;
    border: 0;
}
.public-page .header-content { width: 90%; max-width: 1480px; }
.public-page .logo-image { width: 3rem; height: 3rem; }
.public-flag { display: block; width: 1.4rem; height: .95rem; border-radius: 3px; stroke: none; }
.public-page .logo-text { font: bold clamp(1.9rem, 3vw, 2.65rem)/1 Georgia, serif; }
.public-page .footer {
    position: static;
    padding: .9rem 1rem;
    background: var(--olive);
    color: white;
    font-size: .95rem;
}
@media (min-width: 769px) {
    .public-page .header-content { padding: .65rem 0; flex-wrap: wrap; }
    .public-page .nav-buttons { flex-wrap: wrap; gap: clamp(.65rem, 1.6vw, 1.75rem); }
    .public-page .nav-buttons .button { padding: .45rem clamp(1rem, 2vw, 2rem); border-radius: 6px; }
}
.public-page :focus-visible { outline: 3px solid #496630; outline-offset: 3px; }
.paper-panel { background: var(--paper); box-shadow: 0 6px 22px #50443412; border-radius: 1.25rem; }
.photo-hero {
    color: var(--ink);
    background: linear-gradient(90deg, #f6efe9f5 4%, #f6efe9de 25%, #f6efe900 50%),
                var(--home-photo) center / cover no-repeat;
}
.photo-hero h1 {
    text-align: left;
    font: 500 clamp(2.7rem, 4.25vw, 4.35rem)/1.03 Georgia, serif;
    letter-spacing: -.035em;
    overflow-wrap: break-word;
}
.hero-kicker { font: 400 clamp(1.25rem, 1.9vw, 1.85rem)/1.2 Georgia, serif; }
.public-page .ruled-heading {
    margin: 0;
    color: var(--ink);
    text-align: center;
    font: 500 clamp(1.7rem, 2.8vw, 2.55rem)/1.18 Georgia, serif;
    letter-spacing: -.025em;
}
.ruled-heading::after, .rates-hero .hero-kicker::after {
    content: "";
    display: block;
    width: 2.8rem;
    height: 1px;
    margin: .85rem auto 0;
    background: var(--olive);
}
.icon-disc {
    display: inline-grid;
    place-items: center;
    width: clamp(3rem, 5.8vw, 4.5rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background: #eeecdf;
    color: var(--olive);
}
.home-page svg, .rates-page svg, .login-page svg {
    width: 1.5em;
    height: 1.5em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.public-page .icon-disc svg { width: 52%; height: 52%; }

/* Accueil */
.home-hero {
    display: grid;
    align-items: center;
    min-height: clamp(23rem, 37.5vw, 39rem);
    padding: 3.25rem 0 5.75rem;
}
.hero-copy { width: 85%; max-width: 1360px; margin: auto; }
.home-hero h1 { max-width: min(16ch, 49vw); margin: .85rem 0; }
.home-motto { max-width: 24ch; font: 400 clamp(1.2rem, 1.8vw, 1.8rem)/1.4 Georgia, serif; }
.discover-link, .care-more {
    display: inline-flex;
    align-items: center;
    gap: .7em;
    line-height: 1.3;
}
.discover-link {
    margin-top: 1.5rem;
    padding: .75em 1.45em;
    border-radius: 3rem;
    background: var(--olive);
    color: white;
    text-decoration: none;
}
.discover-link:hover, .login-submit:enabled:not([aria-disabled="true"]):hover { background: #3c452d; }
.home-width { width: 90%; max-width: 1360px; margin: auto; }
.home-about {
    position: relative;
    margin-top: -2.75rem;
    padding: clamp(1.5rem, 2.6vw, 2.75rem);
    text-align: center;
}
.home-about p { margin-top: 1rem; font-size: clamp(1rem, 1.65vw, 1.4rem); }
.home-section { margin: clamp(2rem, 3.2vw, 3.75rem) 0; scroll-margin-top: 8rem; }
.home-section .ruled-heading { margin-bottom: 1.45rem; }
.care-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.care-card {
    display: flex;
    align-items: flex-start;
    gap: clamp(1rem, 2.3vw, 2rem);
    padding: clamp(1.4rem, 2.8vw, 2.8rem);
}
.care-card .icon-disc { flex: none; }
.care-copy { align-self: stretch; display: flex; flex-direction: column; gap: .65rem; align-items: flex-start; }
.care-copy h3 { font: 600 clamp(1.3rem, 2vw, 1.85rem)/1.18 Georgia, serif; color: #3e442e; }
.care-description { font-size: .95rem; }
.care-more {
    margin-top: auto;
    padding: .45rem 0 0;
    border: 0;
    background: none;
    color: #414b32;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
}
.care-more:hover, .contact-panel a:hover { text-decoration: underline; }
.care-dialog {
    max-width: min(38rem, 92vw);
    max-height: 85svh;
    margin: auto;
    padding: 2rem;
    border: 0;
    border-radius: 1.25rem;
    background: var(--paper);
}
.care-dialog::backdrop { background: #302d2480; }
.care-dialog form { float: right; }
.care-dialog button { background: none; border: 0; font-size: 1.8rem; width: 2.5rem; cursor: pointer; }
.care-dialog h2 { text-align: left; margin: 0 2.75rem 1rem 0; line-height: 1.2; }
.home-areas .care-grid { padding: 0 2.5%; gap: 4%; }
.area-pill {
    display: grid;
    align-content: center;
    padding: 1.5rem clamp(1.75rem, 4vw, 4rem);
    border-radius: 6rem;
    background: #697559;
    color: white;
    text-align: center;
}
.area-pill h3, .contact-channels a { display: flex; justify-content: center; align-items: center; gap: .8rem; }
.area-pill h3 { margin-bottom: .45rem; font-size: clamp(1.1rem, 1.8vw, 1.5rem); }
.home-contact { padding: 1.75rem 5%; background: #eee7e0; }
.contact-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 1rem 0;
    max-width: 54rem;
    margin: 1.25rem auto 0;
    padding: 1.4rem;
    text-align: center;
}
.contact-address { padding: 0 1rem; border-right: 1px solid #aaa592; }
.contact-panel .contact-ide { font-size: .85em; }
.contact-channels { display: grid; justify-content: center; gap: .35rem; }
.contact-panel a { color: #43512e; text-decoration: none; }
.contact-channels a { justify-content: flex-start; overflow-wrap: anywhere; }
.contact-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; font-size: .8rem; }
.contact-legal a { padding: 0 .7rem; }
.contact-legal a + a { border-left: 1px solid #aaa592; }

/* Tarifs */
.rates-width { width: 83%; max-width: 1320px; margin-inline: auto; }
.rates-hero {
    padding: clamp(1.6rem, 2vw, 2.4rem) 0 7.5rem;
    background-image: linear-gradient(to top, var(--wash), transparent 27%),
                      linear-gradient(90deg, #f6efe9fa 4%, #f6efe9ed 27%, #f6efe900 54%),
                      var(--home-photo);
    background-position: center 40%;
}
.rates-hero .hero-kicker::after { margin: .85rem 0; }
.rates-hero h1 { font-weight: 600; }
.rates-intro { max-width: min(42%, 32rem); margin-top: .9rem; font-size: clamp(1.1rem, 1.45vw, 1.45rem); line-height: 1.35; }
.rate-panels { position: relative; display: grid; gap: 1rem; margin-top: -5.5rem; margin-bottom: 1.75rem; }
.rate-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 1rem;
    align-items: start;
    padding: clamp(1.2rem, 1.6vw, 1.9rem) clamp(1.35rem, 2.6vw, 2.8rem);
}
.rate-panel .icon-disc { grid-row: span 2; width: clamp(3rem, 4.3vw, 4.2rem); }
.rate-panel h2 { margin: .1rem 0 .4rem; font: 600 clamp(1.6rem, 2.15vw, 2.2rem)/1.2 Georgia, serif; color: var(--ink); text-align: left; }
.rate-table {
    width: 100%;
    border: 1px solid #858974;
    border-radius: .6rem;
    border-spacing: 0;
    overflow: hidden;
    line-height: 1.25;
    text-align: center;
    font-size: clamp(.95rem, 1.2vw, 1.2rem);
}
.rate-table th, .rate-table td { padding: .5rem .75rem; }
.rate-table th, .rate-table thead td { background: #66724f; color: white; text-transform: uppercase; }
.rate-table th[scope="row"] { width: 33%; text-align: left; padding-left: clamp(1rem, 2vw, 2rem); }
.rate-table tr > * + * { border-left: 1px solid #aba899; }
.rate-table tbody tr > * { border-top: 1px solid #aba899; }
.rate-period { display: none; }
.rate-note { display: flex; align-items: center; justify-content: center; gap: 1.5rem; padding: 1rem 2rem; }
.rate-note svg { color: var(--olive); width: 3.5rem; height: 2rem; padding-right: 1.1rem; border-right: 1px solid; }

/* Connexion */
.login-page {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: #e7dfd6 var(--login-photo) 90% center / cover no-repeat;
    padding: clamp(1.75rem, 3vw, 4rem) 3.5%;
}
.login-panel {
    width: min(54%, 50rem);
    padding: clamp(1.4rem, 2.3vw, 2.5rem) clamp(1.5rem, 4vw, 4rem);
    border-radius: clamp(1.5rem, 2.2vw, 2.3rem);
    text-align: center;
    min-width: 0;
}
.login-icon { width: clamp(3rem, 5vw, 4.8rem); background: #e9e7cf; }
.login-panel .ruled-heading { color: var(--olive); font-size: clamp(2.5rem, 3.6vw, 3.75rem); font-weight: 700; }
.login-intro { margin: .9rem 0 1.6rem; color: #444b39; font-size: clamp(1.1rem, 1.6vw, 1.55rem); }
.login-panel .auth-form { display: grid; gap: clamp(.85rem, 1.45vw, 1.5rem); }
.login-field {
    display: flex;
    align-items: stretch;
    border-radius: .7rem;
    border: 1px solid #c8c5b9;
    background: white;
    overflow: hidden;
}
.login-field:focus-within { outline: 2px solid var(--olive); }
.field-icon { display: grid; place-items: center; width: 3.2rem; background: #efeeda; color: var(--olive); }
.login-field input {
    flex: 1;
    min-width: 0;
    padding: .8rem 1rem;
    border: 0;
    font: inherit;
    font-size: clamp(1rem, 1.35vw, 1.3rem);
    background: transparent;
}
.login-field input:focus-visible { outline: none; }
.password-toggle { display: grid; place-items: center; width: 2.8rem; border: 0; color: var(--olive); background: none; cursor: pointer; }
.password-toggle:focus-visible { outline-offset: -3px; }
.password-toggle[aria-pressed="true"] { background: #eeecdc; }
.login-panel .form-help { display: block; margin-top: .35rem; text-align: left; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.login-panel .turnstile-frame { margin: 0; padding: .4rem; background: transparent; min-height: 4.6rem; }
.login-panel .turnstile-frame--attention {
    outline: 2px solid #ad752d;
    outline-offset: 2px;
    background: #fff5e3;
}
.turnstile-feedback { margin: 0; }
.turnstile-feedback:not(:empty) {
    padding: .5rem .6rem;
    color: #674215;
    font-size: .9rem;
    line-height: 1.4;
}
.login-submit, .google-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    border-radius: .7rem;
    padding: .72rem 1rem;
    font: inherit;
    font-size: clamp(1.05rem, 1.4vw, 1.4rem);
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
}
.login-submit { background: #64734a; color: white; border: 1px solid transparent; }
.google-login { background: #f5efe7; color: #414936; border: 1px solid #cfc1ad; }
.google-login:enabled:not([aria-disabled="true"]):hover { background: #ede6da; }
.login-divider { display: flex; align-items: center; gap: 1rem; color: var(--olive); text-transform: lowercase; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: #d9d3c9; }
.login-panel .auth-links { margin: .9rem 0 0; font-size: .85rem; }

@media (max-width: 768px) {
    .public-page {
        --home-photo: url('../img/web/home-mobile.webp');
        --login-photo: url('../img/web/login-mobile.webp');
    }
    .public-page .header-content { width: 92%; }
    .public-page .logo-image { width: 2rem; height: 2rem; }
    .public-page .nav-buttons .button { text-align: center; }
    .care-grid { grid-template-columns: 1fr; }
    .home-areas .care-grid { padding: 0; gap: 1rem; }
    .home-hero, .rates-hero {
        background: var(--wash);
        display: flex;
        flex-direction: column;
        padding: 0;
        min-height: 0;
    }
    .photo-hero::before {
        content: "";
        width: 100%;
        height: clamp(10rem, 35vw, 16rem);
        background: var(--home-photo) 75% 38% / cover no-repeat;
    }
    .hero-copy, .rates-hero .rates-width { width: 90%; padding: 1.5rem 0; }
    .home-hero h1 { max-width: 16ch; font-size: clamp(2rem, 10.4vw, 2.7rem); }
    .home-motto { max-width: 32ch; }
    .home-about, .rate-panels { margin-top: .5rem; }
    .rates-width { width: 92%; }
    .rates-intro { max-width: 40rem; }
    .contact-panel { grid-template-columns: 1fr; }
    .contact-address { border: 0; padding: 0; }
    .contact-legal { gap: .4rem; }
    .contact-legal a + a { border: 0; }
    .rate-panel { display: block; }
    .rate-panel .icon-disc { width: 2.6rem; vertical-align: middle; margin-right: .5rem; }
    .rate-panel h2 { display: inline; vertical-align: middle; }
    .rate-table { display: block; border: 0; margin-top: 1rem; }
    .rate-table thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
    .rate-table tbody { display: grid; gap: .9rem; }
    .rate-table tbody tr { display: block; border-radius: .6rem; border: 1px solid #aba899; overflow: hidden; }
    .rate-table th[scope="row"] { display: block; width: 100%; border: 0; padding: .55rem .75rem; }
    .rate-table tbody td { display: flex; justify-content: space-between; gap: .65rem; align-items: center; text-align: right; border-left: 0; }
    .rate-table td span:last-child { white-space: nowrap; }
    .rate-period { display: block; color: #475139; text-align: left; font-weight: 600; }
    .rate-note { justify-content: flex-start; gap: .8rem; padding: 1rem; }
    .rate-note svg { width: 2rem; padding: 0; border: 0; }
    .login-page {
        display: block;
        padding: clamp(9rem, 33vw, 15rem) 3% 1rem;
        background-position: center top;
        background-size: auto clamp(14rem, 54vw, 25rem);
        background-color: var(--wash);
    }
    .login-panel { width: min(100%, 36rem); margin: auto; padding: 1.4rem clamp(.75rem, 3.5vw, 1.8rem); }
    .login-panel .turnstile-frame { padding: 0; border: 0; min-height: 4.1rem; }
    .login-intro { margin: .8rem 0 1.2rem; }
}
@media (max-width: 420px) {
    .care-card { gap: .75rem; padding: 1.1rem; }
    .care-card .icon-disc { width: 2.6rem; }
    .area-pill { border-radius: 2.5rem; }
    .field-icon { width: 2.6rem; }
}
@media (max-width: 350px) {
    .login-page { padding-inline: 0; }
    .login-panel { padding-inline: .5rem; }
}
