/*
 * ECOROOM — site public.
 * Feuille autonome chargée par partials/public-navbar (Tailwind reste présent pour les pages non migrées).
 * Base blanche, dégradés doux pêche/ambre, orange du logo en dégradé sur les accents.
 * Animations : public/site/site.js (apparition au défilement, compteurs), désactivées si « réduire les animations ».
 */

@font-face {
    font-family: "Bricolage";
    src: url("../auth/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
}

@font-face {
    font-family: "Figtree";
    src: url("../auth/fonts/figtree-latin-wght-normal.woff2") format("woff2");
    font-weight: 300 900;
    font-display: swap;
}

:root {
    --orange: #ff9a00;
    --orange-vif: #ff7a00;
    --ambre: #ffb84d;
    --orange-texte: #b45f00;
    --orange-fond: #fff4e5;
    --degrade: linear-gradient(135deg, #ff7a00 0%, #ff9a00 45%, #ffb84d 100%);
    --degrade-texte: linear-gradient(100deg, #ff7a00 0%, #ff9a00 50%, #f2a900 100%);
    --noir: #17140f;
    --texte: #1c1917;
    --ardoise: #5f5852;
    --discret: #8f8780;
    --trait: #efe9e3;
    --fond-doux: #fffaf4;
    --blanc: #ffffff;
    --ombre-carte: 0 1px 2px rgba(23, 20, 15, 0.04), 0 12px 32px rgba(120, 60, 0, 0.07);
    --ombre-survol: 0 2px 4px rgba(23, 20, 15, 0.04), 0 22px 48px rgba(120, 60, 0, 0.14);
    --rayon: 20px;
    --rayon-petit: 12px;
    --largeur: 1180px;
    --display: "Bricolage", "Segoe UI", system-ui, sans-serif;
    --texte-famille: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
    --courbe: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html:has(.site-nav) body {
    background: var(--blanc);
    color: var(--texte);
    font-family: var(--texte-famille);
    -webkit-font-smoothing: antialiased;
}

html:has(.site-nav) h1,
html:has(.site-nav) h2,
html:has(.site-nav) h3 {
    font-family: var(--display);
    letter-spacing: -0.02em;
}

[x-cloak] {
    display: none !important;
}

:where(html:has(.site-nav)) :focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

.s-conteneur {
    width: 100%;
    max-width: var(--largeur);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Apparition au défilement ──────────────────────────────────────── */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms var(--courbe), transform 700ms var(--courbe);
}

.js [data-reveal="gauche"] {
    transform: translateX(-28px);
}

.js [data-reveal="droite"] {
    transform: translateX(28px);
}

.js [data-reveal="zoom"] {
    transform: scale(0.96);
}

.js [data-reveal].est-visible {
    opacity: 1;
    transform: none;
}

/* ── Boutons et liens ──────────────────────────────────────────────── */

.s-bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 3.125rem;
    padding: 0 1.5rem;
    border: 0;
    border-radius: 999px;
    background: var(--degrade);
    color: var(--noir);
    font-family: var(--texte-famille);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(255, 122, 0, 0.3);
    transition: transform 200ms var(--courbe), box-shadow 200ms var(--courbe);
}

.s-bouton:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(255, 122, 0, 0.38);
}

.s-bouton svg {
    width: 18px;
    height: 18px;
    transition: transform 200ms var(--courbe);
}

.s-bouton:hover svg {
    transform: translateX(3px);
}

.s-bouton--contour {
    background: var(--blanc);
    color: var(--texte);
    box-shadow: inset 0 0 0 1.5px #e6ddd3;
}

.s-bouton--contour:hover {
    box-shadow: inset 0 0 0 1.5px var(--orange), 0 10px 24px rgba(120, 60, 0, 0.08);
}

.s-bouton--clair {
    background: var(--blanc);
    color: var(--noir);
    box-shadow: 0 10px 26px rgba(120, 50, 0, 0.18);
}

.s-bouton--petit {
    height: 2.625rem;
    padding: 0 1.125rem;
    font-size: 0.9375rem;
}

.s-lien {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--orange-texte);
    font-weight: 650;
    text-decoration: none;
}

.s-lien svg {
    width: 16px;
    height: 16px;
    transition: transform 200ms var(--courbe);
}

.s-lien:hover svg {
    transform: translateX(3px);
}

.s-pastille {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem 0.375rem 0.5rem;
    border-radius: 999px;
    background: var(--blanc);
    box-shadow: 0 0 0 1px #f3e3cf, 0 6px 18px rgba(120, 60, 0, 0.06);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ardoise);
}

.s-pastille span {
    display: inline-grid;
    place-items: center;
    height: 22px;
    padding: 0 0.5rem;
    border-radius: 999px;
    background: var(--degrade);
    color: var(--noir);
    font-size: 0.75rem;
    font-weight: 700;
}

/* ── Navigation ────────────────────────────────────────────────────── */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.site-nav.est-defile {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: var(--trait);
    box-shadow: 0 8px 24px rgba(23, 20, 15, 0.05);
}

.site-nav-barre {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 80px;
    transition: height 200ms ease;
}

.site-nav.est-defile .site-nav-barre {
    height: 68px;
}

.site-logo {
    display: flex;
    align-items: center;
    flex: none;
    text-decoration: none;
    color: var(--noir);
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.375rem;
}

.site-logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: width 200ms ease, height 200ms ease;
}

.site-nav.est-defile .site-logo img {
    width: 54px;
    height: 54px;
}

.site-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0.3125rem;
    list-style: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0 1px var(--trait);
}

.site-menu a {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    color: #44403c;
    font-size: 0.9375rem;
    font-weight: 550;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease;
}

.site-menu a:hover {
    color: var(--texte);
    background: var(--orange-fond);
}

.site-menu a[aria-current="page"] {
    color: var(--noir);
    background: var(--orange-fond);
    font-weight: 650;
}

.site-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-actions .s-lien {
    color: var(--texte);
}

.site-burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: var(--blanc);
    box-shadow: 0 0 0 1px var(--trait);
    color: var(--texte);
    cursor: pointer;
}

.site-burger svg {
    width: 22px;
    height: 22px;
    margin: auto;
}

.site-menu-mobile {
    display: none;
}

/* ── Accueil : héros ───────────────────────────────────────────────── */

.a-heros {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 6rem;
    background:
        radial-gradient(42rem 30rem at 8% 0%, rgba(255, 184, 77, 0.22), transparent 70%),
        radial-gradient(40rem 34rem at 100% 20%, rgba(255, 122, 0, 0.14), transparent 70%),
        radial-gradient(36rem 24rem at 60% 110%, rgba(255, 214, 153, 0.35), transparent 70%),
        #fffaf4;
}

.a-heros::after {
    /* fine grille de points, très discrète */
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(180, 95, 0, 0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 70%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 70%);
    pointer-events: none;
}

.a-heros-grille {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
}

.a-heros .s-pastille {
    margin-bottom: 1.5rem;
}

.a-heros h1 {
    margin: 0 0 1.375rem;
    font-size: clamp(2.625rem, 5.2vw, 4.5rem);
    font-weight: 780;
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: var(--noir);
}

.a-heros h1 .degrade {
    display: block;
    background: var(--degrade-texte);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: 0.08em;
}

.a-heros-texte {
    margin: 0 0 2.25rem;
    max-width: 33rem;
    font-size: 1.1875rem;
    line-height: 1.65;
    color: var(--ardoise);
}

.a-heros-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
}

.a-heros-confiance {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem 1.75rem;
    margin: 2.25rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.9375rem;
    color: var(--ardoise);
}

.a-heros-confiance li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.a-heros-confiance svg {
    width: 20px;
    height: 20px;
    padding: 3px;
    border-radius: 50%;
    background: var(--orange-fond);
    color: var(--orange-texte);
    flex: none;
}

/* Visuel : photo + éléments flottants */
.a-visuel {
    position: relative;
    padding: 1.5rem 2rem 2.5rem 2.5rem;
}

.a-visuel::before {
    content: "";
    position: absolute;
    inset: 0 0.5rem 1rem 1rem;
    border-radius: 36px;
    background: var(--degrade);
    opacity: 0.9;
    transform: rotate(-3deg);
}

.a-visuel-photo {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 4.3;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(120, 60, 0, 0.22);
}

.a-flottant {
    position: absolute;
    z-index: 2;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 44px rgba(90, 45, 0, 0.18);
    animation: flotter 6s ease-in-out infinite;
}

.a-sms {
    top: 3rem;
    left: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem 0.75rem 0.75rem;
    max-width: 290px;
}

.a-sms-icone {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 12px;
    background: #e7f8ee;
    color: #067647;
}

.a-sms-icone svg {
    width: 20px;
    height: 20px;
}

.a-sms strong {
    display: block;
    font-size: 0.875rem;
    color: var(--texte);
}

.a-sms span {
    font-size: 0.8125rem;
    color: var(--discret);
}

.a-carnet {
    right: 0;
    bottom: 0;
    width: min(290px, 70%);
    padding: 1rem 1.125rem 1.125rem;
    animation-delay: -3s;
}

.a-carnet-haut {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ardoise);
}

.a-carnet-haut strong {
    font-family: var(--display);
    font-size: 1.25rem;
    background: var(--degrade-texte);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.a-carnet ol {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.a-carnet li {
    aspect-ratio: 1;
    border-radius: 5px;
    background: #f5efe8;
}

.a-carnet li.est-paye {
    background: var(--degrade);
}

.a-carnet li.est-commission {
    background: transparent;
    border: 1.5px dashed var(--orange);
}

.a-carnet p {
    margin: 0.75rem 0 0;
    font-size: 0.75rem;
    color: var(--discret);
}

@keyframes flotter {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ── Chiffres ──────────────────────────────────────────────────────── */

.a-chiffres {
    position: relative;
    z-index: 2;
    margin-top: -3rem;
}

.a-chiffres ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin: 0;
    padding: 0.5rem;
    list-style: none;
    border-radius: var(--rayon);
    background: var(--blanc);
    box-shadow: var(--ombre-carte);
}

.a-chiffres li {
    padding: 1.5rem;
    text-align: center;
}

.a-chiffres li + li {
    border-left: 1px solid var(--trait);
}

.a-chiffres strong {
    display: block;
    font-family: var(--display);
    font-size: 2.5rem;
    font-weight: 780;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    background: var(--degrade-texte);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.a-chiffres span {
    font-size: 0.9375rem;
    color: var(--ardoise);
}

/* ── Sections ──────────────────────────────────────────────────────── */

.a-section {
    padding: 6rem 0;
}

.a-section--teinte {
    background: linear-gradient(180deg, #ffffff 0%, #fff8ef 50%, #ffffff 100%);
}

.a-section-entete {
    max-width: 42rem;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.a-section-entete .s-pastille {
    margin-bottom: 1rem;
}

.a-section-entete h2 {
    margin: 0 0 0.875rem;
    font-size: clamp(2rem, 3.6vw, 2.875rem);
    font-weight: 760;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--noir);
}

.a-section-entete p {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--ardoise);
}

/* Services */
.a-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.a-service {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: var(--rayon);
    background: var(--blanc);
    box-shadow: 0 0 0 1px var(--trait), var(--ombre-carte);
    transition: transform 300ms var(--courbe), box-shadow 300ms var(--courbe);
}

.a-service:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 0 1px #f3dcc0, var(--ombre-survol);
}

.a-service--vedette {
    background:
        linear-gradient(var(--blanc), var(--blanc)) padding-box,
        var(--degrade) border-box;
    border: 2px solid transparent;
    box-shadow: var(--ombre-survol);
}

.a-service-marque {
    position: absolute;
    top: -0.8rem;
    right: 1.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--degrade);
    color: var(--noir);
    font-size: 0.8125rem;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(255, 122, 0, 0.3);
}

.a-service-icone {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    background: var(--degrade);
    color: var(--noir);
    box-shadow: 0 10px 22px rgba(255, 122, 0, 0.28);
}

.a-service-icone svg {
    width: 26px;
    height: 26px;
}

.a-service h3 {
    margin: 0 0 0.625rem;
    font-size: 1.5rem;
    font-weight: 720;
}

.a-service > p {
    margin: 0 0 1.5rem;
    color: var(--ardoise);
    line-height: 1.6;
}

.a-service ul {
    display: grid;
    gap: 0.75rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
    font-size: 0.9375rem;
}

.a-service li {
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
}

.a-service li svg {
    flex: none;
    width: 20px;
    height: 20px;
    padding: 3px;
    border-radius: 50%;
    background: var(--orange-fond);
    color: var(--orange-texte);
}

.a-service .s-lien {
    margin-top: auto;
}

/* Étapes : une vraie séquence, reliée par un trait */
.a-etapes {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: etape;
}

.a-etapes::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 16%;
    right: 16%;
    border-top: 2px dashed #f2cf9f;
}

.a-etape {
    position: relative;
    text-align: center;
    counter-increment: etape;
}

.a-etape::before {
    content: counter(etape);
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--degrade);
    font-family: var(--display);
    font-size: 1.625rem;
    font-weight: 780;
    color: var(--noir);
    box-shadow: 0 0 0 8px #fff8ef, 0 12px 26px rgba(255, 122, 0, 0.3);
}

.a-etape h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 720;
}

.a-etape p {
    margin: 0 auto;
    max-width: 18rem;
    color: var(--ardoise);
    line-height: 1.6;
}

/* Tontines ouvertes */
.a-tontines {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.a-tontine {
    display: flex;
    flex-direction: column;
    padding: 1.625rem;
    border-radius: var(--rayon);
    background: var(--blanc);
    box-shadow: 0 0 0 1px var(--trait), var(--ombre-carte);
    transition: transform 300ms var(--courbe), box-shadow 300ms var(--courbe);
}

.a-tontine:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 0 1px #f3dcc0, var(--ombre-survol);
}

.a-tontine-haut {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.a-tontine h3 {
    margin: 0;
    font-size: 1.1875rem;
    font-weight: 700;
}

.a-tontine-type {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--discret);
}

.a-badge {
    flex: none;
    align-self: flex-start;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--orange-fond);
    color: var(--orange-texte);
    font-size: 0.8125rem;
    font-weight: 650;
    white-space: nowrap;
}

.a-badge--neutre {
    background: #f3f0ec;
    color: var(--ardoise);
}

.a-tontine dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem 1rem;
    margin: 0 0 1.25rem;
    padding: 1rem;
    border-radius: var(--rayon-petit);
    background: var(--fond-doux);
}

.a-tontine dt {
    font-size: 0.8125rem;
    color: var(--discret);
}

.a-tontine dd {
    margin: 0.125rem 0 0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.a-jauge {
    height: 6px;
    margin-bottom: 0.5rem;
    border-radius: 999px;
    background: #f3eee8;
    overflow: hidden;
}

.a-jauge span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--degrade);
}

.a-jauge-legende {
    margin: 0 0 1.25rem;
    font-size: 0.8125rem;
    color: var(--ardoise);
}

.a-tontine .s-bouton {
    margin-top: auto;
    width: 100%;
}

.a-tontines-pied {
    margin-top: 2.5rem;
    text-align: center;
}

/* Bandeau final : carte en dégradé */
.a-appel {
    padding: 2rem 0 6rem;
}

.a-appel-carte {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
    padding: 3.5rem;
    border-radius: 32px;
    background: var(--degrade);
    color: var(--noir);
    box-shadow: 0 30px 60px rgba(255, 122, 0, 0.25);
}

.a-appel-carte::before,
.a-appel-carte::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

.a-appel-carte::before {
    width: 340px;
    height: 340px;
    right: -90px;
    top: -140px;
}

.a-appel-carte::after {
    width: 220px;
    height: 220px;
    right: 22%;
    bottom: -150px;
    background: rgba(255, 255, 255, 0.12);
}

.a-appel h2 {
    position: relative;
    margin: 0 0 0.75rem;
    font-size: clamp(1.875rem, 3.4vw, 2.625rem);
    font-weight: 780;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--noir);
}

.a-appel p {
    position: relative;
    margin: 0;
    font-size: 1.125rem;
    color: #3d2a0a;
    max-width: 32rem;
}

.a-appel-actions {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.a-appel-tel {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--display);
    font-size: 1.75rem;
    font-weight: 780;
    color: var(--noir);
    text-decoration: none;
}

.a-appel-tel svg {
    width: 26px;
    height: 26px;
}

/* ── Pied de page ──────────────────────────────────────────────────── */

.site-pied {
    padding: 4rem 0 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #fff8ef 100%);
    border-top: 1px solid var(--trait);
    color: var(--ardoise);
    font-size: 0.9375rem;
}

.site-pied-grille {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
}

.site-pied-logo img {
    display: block;
    width: 84px;
    height: 84px;
    margin: -0.5rem 0 0.75rem -0.5rem;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.site-pied p {
    margin: 0;
    max-width: 22rem;
    line-height: 1.6;
}

.site-pied h2 {
    margin: 0 0 1rem;
    font-family: var(--texte-famille);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--noir);
}

.site-pied ul {
    display: grid;
    gap: 0.625rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-pied a {
    color: var(--ardoise);
    text-decoration: none;
    transition: color 150ms ease;
}

.site-pied a:hover {
    color: var(--orange-texte);
}

.site-pied-bas {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0e2cf;
    font-size: 0.875rem;
    color: var(--discret);
}

/* ══════════════════════════════════════════════════════════════════
 * Harmonisation des autres pages publiques (encore écrites avec Tailwind).
 * ══════════════════════════════════════════════════════════════════ */

html:has(.site-nav) .text-4xl,
html:has(.site-nav) .text-5xl,
html:has(.site-nav) .text-3xl,
html:has(.site-nav) .text-2xl,
html:has(.site-nav) .text-xl.font-bold,
html:has(.site-nav) .text-xl.font-semibold {
    font-family: var(--display);
    letter-spacing: -0.02em;
}

/* En-têtes de page en dégradé : version claire, texte foncé */
html:has(.site-nav) .bg-gradient-to-r,
html:has(.site-nav) .bg-gradient-to-br {
    background-image:
        radial-gradient(40rem 20rem at 0% 0%, rgba(255, 184, 77, 0.3), transparent 70%),
        radial-gradient(36rem 22rem at 100% 100%, rgba(255, 122, 0, 0.18), transparent 70%);
    background-color: #fff6ea;
    color: var(--noir);
}

html:has(.site-nav) .bg-gradient-to-r.text-white,
html:has(.site-nav) .bg-gradient-to-br.text-white,
html:has(.site-nav) .bg-gradient-to-r .text-white,
html:has(.site-nav) .bg-gradient-to-br .text-white {
    color: var(--noir);
}

html:has(.site-nav) .bg-gradient-to-r [class*="-100"],
html:has(.site-nav) .bg-gradient-to-br [class*="-100"] {
    color: var(--ardoise);
}

html:has(.site-nav) .bg-gradient-to-r a[class*="bg-"],
html:has(.site-nav) .bg-gradient-to-br a[class*="bg-"] {
    background-image: var(--degrade);
    color: var(--noir);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(255, 122, 0, 0.3);
}

html:has(.site-nav) .bg-white.rounded-lg,
html:has(.site-nav) .bg-white.rounded-xl,
html:has(.site-nav) .bg-white.rounded-2xl {
    border-radius: var(--rayon);
    border: 0;
    box-shadow: 0 0 0 1px var(--trait), var(--ombre-carte);
}

html:has(.site-nav) .bg-gray-50 {
    background-color: var(--fond-doux);
}

html:has(.site-nav) .text-gray-900 { color: var(--texte); }
html:has(.site-nav) .text-gray-600 { color: var(--ardoise); }

html:has(.site-nav) .uppercase {
    text-transform: none;
    letter-spacing: 0;
}

html:has(.site-nav) a.bg-blue-600,
html:has(.site-nav) a.bg-orange-600,
html:has(.site-nav) a.bg-orange-500,
html:has(.site-nav) a.bg-green-600,
html:has(.site-nav) a.bg-red-600,
html:has(.site-nav) button.bg-blue-600,
html:has(.site-nav) button.bg-orange-600,
html:has(.site-nav) form button[type="submit"] {
    background-color: var(--orange);
    background-image: var(--degrade);
    color: var(--noir);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(255, 122, 0, 0.26);
    transition: transform 200ms var(--courbe), box-shadow 200ms var(--courbe);
}

html:has(.site-nav) a.bg-blue-600:hover,
html:has(.site-nav) a.bg-orange-600:hover,
html:has(.site-nav) a.bg-orange-500:hover,
html:has(.site-nav) form button[type="submit"]:hover {
    transform: translateY(-2px);
}

html:has(.site-nav) .bg-blue-50,
html:has(.site-nav) .bg-blue-100,
html:has(.site-nav) .bg-orange-50,
html:has(.site-nav) .bg-orange-100,
html:has(.site-nav) .bg-green-50,
html:has(.site-nav) .bg-green-100,
html:has(.site-nav) .bg-purple-100,
html:has(.site-nav) .bg-yellow-100 {
    background-color: var(--orange-fond);
}

html:has(.site-nav) .bg-blue-600:not(a):not(button),
html:has(.site-nav) .bg-orange-500:not(a):not(button),
html:has(.site-nav) .bg-orange-600:not(a):not(button),
html:has(.site-nav) .bg-green-600:not(a):not(button) {
    background-image: var(--degrade);
    color: var(--noir);
}

html:has(.site-nav) .text-blue-600,
html:has(.site-nav) .text-blue-700,
html:has(.site-nav) .text-blue-800,
html:has(.site-nav) .text-orange-600,
html:has(.site-nav) .text-orange-700,
html:has(.site-nav) .text-green-600,
html:has(.site-nav) .text-purple-600,
html:has(.site-nav) .text-yellow-600 {
    color: var(--orange-texte);
}

html:has(.site-nav) .border-blue-200,
html:has(.site-nav) .border-green-500,
html:has(.site-nav) .border-orange-200,
html:has(.site-nav) .border-blue-500 {
    border-color: #ffdca6;
}

html:has(.site-nav) form input,
html:has(.site-nav) form select,
html:has(.site-nav) form textarea {
    border-radius: var(--rayon-petit);
}

html:has(.site-nav) form input:focus,
html:has(.site-nav) form select:focus,
html:has(.site-nav) form textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 154, 0, 0.2);
    --tw-ring-color: transparent;
}

/* ── Mobile ────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .site-menu,
    .site-actions {
        display: none;
    }

    .site-burger {
        display: grid;
    }

    .site-menu-mobile {
        display: block;
        padding: 0.5rem 0 1.25rem;
    }

    .site-menu-mobile a:not(.s-bouton) {
        display: block;
        padding: 0.875rem 0.25rem;
        color: var(--texte);
        font-size: 1.0625rem;
        font-weight: 550;
        text-decoration: none;
        border-bottom: 1px solid var(--trait);
    }

    .site-menu-mobile a[aria-current="page"] {
        color: var(--orange-texte);
        font-weight: 700;
    }

    .site-menu-mobile .s-bouton {
        width: 100%;
        margin-top: 1rem;
    }

    .a-heros-grille,
    .a-appel-carte {
        grid-template-columns: 1fr;
    }

    .a-visuel {
        max-width: 560px;
        margin: 0 auto;
    }

    .a-services,
    .a-etapes {
        grid-template-columns: 1fr;
    }

    .a-etapes::before {
        display: none;
    }

    .site-pied-grille {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .s-conteneur {
        padding: 0 1.125rem;
    }

    .site-nav-barre,
    .site-nav.est-defile .site-nav-barre {
        height: 64px;
    }

    .site-logo img,
    .site-nav.est-defile .site-logo img {
        width: 50px;
        height: 50px;
    }

    .a-heros {
        padding: 2.5rem 0 4.5rem;
    }

    .a-heros-texte {
        font-size: 1.0625rem;
    }

    .a-heros-actions .s-bouton {
        flex: 1 1 100%;
    }

    .a-visuel {
        padding: 1rem 0.5rem 4.5rem 0.75rem;
    }

    .a-visuel-photo {
        aspect-ratio: 4 / 3.8;
        border-radius: 22px;
    }

    .a-sms {
        top: auto;
        bottom: 1.5rem;
        left: 0;
        max-width: 230px;
    }

    .a-carnet {
        display: none;
    }

    .a-chiffres li + li {
        border-left: 0;
        border-top: 1px solid var(--trait);
    }

    .a-section {
        padding: 4rem 0;
    }

    .a-section-entete {
        margin-bottom: 2.25rem;
    }

    .a-service {
        padding: 1.5rem;
    }

    .a-appel-carte {
        padding: 2.25rem 1.5rem;
        border-radius: 24px;
    }

    .site-pied-grille {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .a-flottant {
        animation: none;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .s-bouton,
    .a-service,
    .a-tontine {
        transition: none;
    }
}

/* ══════════════════════════════════════════════════════════════════
 * Pages intérieures (Services, À propos, Contact, Tontines)
 * ══════════════════════════════════════════════════════════════════ */

.pg-heros {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 4rem;
    text-align: center;
    background:
        radial-gradient(38rem 24rem at 10% 0%, rgba(255, 184, 77, 0.24), transparent 70%),
        radial-gradient(34rem 26rem at 95% 30%, rgba(255, 122, 0, 0.14), transparent 70%),
        #fffaf4;
}

.pg-heros::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(180, 95, 0, 0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 75%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 75%);
    pointer-events: none;
}

.pg-heros > .s-conteneur {
    position: relative;
    z-index: 1;
}

.pg-heros .s-pastille {
    margin-bottom: 1.25rem;
}

.pg-heros h1 {
    margin: 0 auto 1rem;
    max-width: 48rem;
    font-size: clamp(2.375rem, 4.6vw, 3.75rem);
    font-weight: 780;
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: var(--noir);
}

.pg-heros h1 .degrade {
    background: var(--degrade-texte);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pg-heros p {
    margin: 0 auto;
    max-width: 38rem;
    font-size: 1.1875rem;
    line-height: 1.6;
    color: var(--ardoise);
}

.pg-ancres {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.625rem;
    margin-top: 2rem;
}

.pg-ancres a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    border-radius: 999px;
    background: var(--blanc);
    box-shadow: 0 0 0 1px #f3e3cf, 0 6px 18px rgba(120, 60, 0, 0.06);
    color: var(--texte);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: transform 200ms var(--courbe), box-shadow 200ms var(--courbe);
}

.pg-ancres a:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px var(--orange), 0 10px 24px rgba(120, 60, 0, 0.1);
}

.pg-ancres svg {
    width: 18px;
    height: 18px;
    color: var(--orange-texte);
}

/* Bloc service : texte + visuel, en alternance */
.pg-bloc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4.5rem;
    align-items: center;
    scroll-margin-top: 100px;
}

.pg-bloc + .pg-bloc {
    margin-top: 7rem;
}

.pg-bloc--inverse .pg-bloc-visuel {
    order: -1;
}

.pg-bloc h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.875rem, 3.2vw, 2.625rem);
    font-weight: 760;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--noir);
}

.pg-bloc .s-pastille {
    margin-bottom: 1rem;
}

.pg-bloc-texte > p {
    margin: 0 0 1.75rem;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ardoise);
}

.pg-coches {
    display: grid;
    gap: 0.875rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

.pg-coches li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 1rem;
    color: var(--texte);
}

.pg-coches svg {
    flex: none;
    width: 24px;
    height: 24px;
    padding: 4px;
    border-radius: 50%;
    background: var(--orange-fond);
    color: var(--orange-texte);
}

.pg-encart {
    margin: 0 0 2rem;
    padding: 1rem 1.25rem;
    border-radius: var(--rayon-petit);
    background: var(--fond-doux);
    box-shadow: inset 3px 0 0 var(--orange);
    font-size: 0.9375rem;
    color: var(--ardoise);
}

.pg-encart strong {
    color: var(--texte);
}

.pg-etapes-mini {
    display: grid;
    gap: 0.875rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
    counter-reset: mini;
}

.pg-etapes-mini li {
    display: flex;
    gap: 0.875rem;
    align-items: center;
    counter-increment: mini;
}

.pg-etapes-mini li::before {
    content: counter(mini);
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--degrade);
    color: var(--noir);
    font-weight: 750;
    font-size: 0.875rem;
}

/* Visuels illustratifs */
.pg-bloc-visuel {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 420px;
    padding: 2.5rem;
    border-radius: 32px;
    background:
        radial-gradient(22rem 16rem at 20% 10%, rgba(255, 184, 77, 0.35), transparent 70%),
        radial-gradient(20rem 18rem at 90% 90%, rgba(255, 122, 0, 0.22), transparent 70%),
        #fff3e3;
    overflow: hidden;
}

.v-carte {
    position: relative;
    z-index: 1;
    width: min(360px, 100%);
    padding: 1.5rem;
    border-radius: 22px;
    background: var(--blanc);
    box-shadow: 0 30px 60px rgba(120, 60, 0, 0.18);
}

.v-carte-titre {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ardoise);
}

.v-montant {
    margin: 0.375rem 0 1.25rem;
    font-family: var(--display);
    font-size: 2.25rem;
    font-weight: 780;
    letter-spacing: -0.03em;
    color: var(--noir);
}

.v-montant small {
    font-size: 0.45em;
    color: var(--discret);
    font-weight: 600;
    letter-spacing: 0;
}

.v-barres {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 96px;
    margin-bottom: 1.25rem;
}

.v-barres span {
    flex: 1;
    border-radius: 6px 6px 3px 3px;
    background: #f5ebdf;
}

.v-barres span.est-fort {
    background: var(--degrade);
}

.v-lignes {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
}

.v-lignes li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--trait);
}

.v-lignes b {
    color: #067647;
}

.v-lignes b.est-sortie {
    color: #b42318;
}

.v-carnet ol {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    margin: 1rem 0;
    padding: 0;
    list-style: none;
}

.v-carnet li {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f7f1ea;
    font-size: 0.75rem;
    font-weight: 600;
    color: #b6ada4;
}

.v-carnet li.est-paye {
    background: var(--degrade);
    color: var(--noir);
}

.v-carnet li.est-commission {
    background: transparent;
    border: 1.5px dashed var(--orange);
    color: var(--orange-texte);
}

.v-carnet p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--discret);
}

.v-bulle {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem 0.625rem 0.625rem;
    border-radius: 16px;
    background: var(--blanc);
    box-shadow: 0 16px 36px rgba(90, 45, 0, 0.18);
    font-size: 0.8125rem;
    animation: flotter 6s ease-in-out infinite;
}

.v-bulle span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #e7f8ee;
    color: #067647;
}

.v-bulle svg {
    width: 16px;
    height: 16px;
}

.v-bulle strong {
    display: block;
    color: var(--texte);
}

/* Cercle de tontine */
.v-cercle {
    position: relative;
    z-index: 1;
    width: min(340px, 100%);
    aspect-ratio: 1;
}

.v-cercle::before {
    content: "";
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    border: 2px dashed #f0c48a;
    animation: tourner 40s linear infinite;
}

.v-cercle-centre {
    position: absolute;
    inset: 30%;
    display: grid;
    place-content: center;
    text-align: center;
    border-radius: 50%;
    background: var(--blanc);
    box-shadow: 0 20px 44px rgba(120, 60, 0, 0.18);
}

.v-cercle-centre small {
    font-size: 0.75rem;
    color: var(--discret);
}

.v-cercle-centre strong {
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 780;
    color: var(--noir);
}

.v-membre {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    border-radius: 50%;
    background: var(--blanc);
    box-shadow: 0 8px 20px rgba(120, 60, 0, 0.16);
    font-weight: 750;
    font-size: 0.875rem;
    color: var(--ardoise);
    transform: rotate(var(--a)) translate(clamp(120px, 38vw, 150px)) rotate(calc(-1 * var(--a)));
}

.v-membre.est-tour {
    background: var(--degrade);
    color: var(--noir);
    box-shadow: 0 0 0 6px rgba(255, 154, 0, 0.2), 0 10px 24px rgba(255, 122, 0, 0.35);
}

@keyframes tourner {
    to { transform: rotate(360deg); }
}

/* Comparatif */
.pg-comparatif {
    overflow-x: auto;
    border-radius: var(--rayon);
    background: var(--blanc);
    box-shadow: 0 0 0 1px var(--trait), var(--ombre-carte);
}

.pg-comparatif table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.pg-comparatif th,
.pg-comparatif td {
    padding: 1.125rem 1.5rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--trait);
}

.pg-comparatif thead th {
    font-family: var(--display);
    font-size: 1.125rem;
    font-weight: 720;
    color: var(--noir);
    background: var(--fond-doux);
}

.pg-comparatif thead th:first-child {
    background: var(--blanc);
}

.pg-comparatif tbody th {
    width: 22%;
    font-weight: 600;
    color: var(--ardoise);
}

.pg-comparatif tr:last-child th,
.pg-comparatif tr:last-child td {
    border-bottom: 0;
}

/* Valeurs, mission */
.pg-grille-cartes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.pg-carte {
    padding: 1.75rem;
    border-radius: var(--rayon);
    background: var(--blanc);
    box-shadow: 0 0 0 1px var(--trait), var(--ombre-carte);
    transition: transform 300ms var(--courbe), box-shadow 300ms var(--courbe);
}

.pg-carte:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 0 1px #f3dcc0, var(--ombre-survol);
}

.pg-carte .a-service-icone {
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    border-radius: 14px;
}

.pg-carte .a-service-icone svg {
    width: 22px;
    height: 22px;
}

.pg-carte h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1875rem;
    font-weight: 720;
}

.pg-carte p {
    margin: 0;
    color: var(--ardoise);
    line-height: 1.6;
}

.pg-histoire {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 4rem;
    align-items: center;
}

.pg-histoire-photo {
    position: relative;
}

.pg-histoire-photo::before {
    content: "";
    position: absolute;
    inset: 1.5rem -1.25rem -1.25rem 1.5rem;
    border-radius: 32px;
    background: var(--degrade);
    transform: rotate(2deg);
}

.pg-histoire-photo img {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3.4;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(120, 60, 0, 0.18);
}

.pg-histoire h2 {
    margin: 0 0 1.25rem;
    font-size: clamp(1.875rem, 3.2vw, 2.5rem);
    font-weight: 760;
    letter-spacing: -0.03em;
    color: var(--noir);
}

.pg-histoire-texte p {
    margin: 0 0 1rem;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--ardoise);
}

/* Contact */
.pg-contact {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 2.5rem;
    align-items: start;
}

.pg-coordonnees {
    display: grid;
    gap: 1rem;
}

.pg-coord {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.375rem;
    border-radius: var(--rayon);
    background: var(--blanc);
    box-shadow: 0 0 0 1px var(--trait), var(--ombre-carte);
}

.pg-coord .a-service-icone {
    width: 46px;
    height: 46px;
    margin: 0;
    border-radius: 14px;
    flex: none;
}

.pg-coord .a-service-icone svg {
    width: 22px;
    height: 22px;
}

.pg-coord h2 {
    margin: 0 0 0.25rem;
    font-family: var(--texte-famille);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--discret);
}

.pg-coord a,
.pg-coord p {
    display: block;
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 650;
    color: var(--texte);
    text-decoration: none;
}

.pg-coord a:hover {
    color: var(--orange-texte);
}

.pg-coord--appel {
    background: var(--degrade);
    box-shadow: 0 18px 40px rgba(255, 122, 0, 0.25);
}

.pg-coord--appel .a-service-icone {
    background: var(--blanc);
    color: var(--orange-texte);
    box-shadow: none;
}

.pg-coord--appel h2 {
    color: #5a3600;
}

.pg-coord--appel a {
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 780;
}

.pg-horaires {
    display: grid;
    gap: 0.5rem;
    margin: 0.25rem 0 0;
    font-size: 0.9375rem;
}

.pg-horaires div {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.pg-horaires dt {
    color: var(--ardoise);
}

.pg-horaires dd {
    margin: 0;
    font-weight: 650;
}

.pg-formulaire {
    padding: 2.25rem;
    border-radius: 24px;
    background: var(--blanc);
    box-shadow: 0 0 0 1px var(--trait), 0 30px 60px rgba(120, 60, 0, 0.1);
}

.pg-formulaire h2 {
    margin: 0 0 0.375rem;
    font-size: 1.625rem;
    font-weight: 760;
}

.pg-formulaire > p {
    margin: 0 0 1.75rem;
    color: var(--ardoise);
}

.f-grille {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.125rem;
}

.f-champ {
    display: grid;
    gap: 0.4375rem;
}

.f-champ--large {
    grid-column: 1 / -1;
}

.f-champ label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--texte);
}

.f-champ label small {
    font-weight: 500;
    color: var(--discret);
}

.f-saisie {
    width: 100%;
    height: 3.125rem;
    padding: 0 1rem;
    border: 1px solid #e3dbd2;
    border-radius: var(--rayon-petit);
    background: #fffdfb;
    color: var(--texte);
    font: inherit;
    font-size: 1rem;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
    -webkit-appearance: none;
    appearance: none;
}

textarea.f-saisie {
    height: auto;
    min-height: 150px;
    padding: 0.875rem 1rem;
    line-height: 1.55;
    resize: vertical;
}

select.f-saisie {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b625c'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 0 1 1.06.02L10 11.17l3.71-3.94a.75.75 0 1 1 1.08 1.04l-4.25 4.5a.75.75 0 0 1-1.08 0l-4.25-4.5a.75.75 0 0 1 .02-1.06Z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 18px;
}

.f-saisie:hover {
    border-color: #cfc3b6;
}

.f-saisie:focus {
    outline: none;
    background: var(--blanc);
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 154, 0, 0.18);
}

.f-saisie[aria-invalid="true"] {
    border-color: #b42318;
}

.f-erreur {
    margin: 0;
    font-size: 0.8125rem;
    color: #b42318;
}

.f-piege {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.f-pied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    color: var(--discret);
}

.f-alerte {
    display: flex;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
    padding: 0.875rem 1rem;
    border-radius: var(--rayon-petit);
    background: #fef3f2;
    color: #b42318;
    font-size: 0.9375rem;
}

.f-succes {
    padding: 1rem 0 0.5rem;
    text-align: center;
}

.f-succes-icone {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: #e7f8ee;
    color: #067647;
    box-shadow: 0 0 0 10px rgba(6, 118, 71, 0.06);
}

.f-succes-icone svg {
    width: 34px;
    height: 34px;
}

.f-succes h2 {
    margin: 0 0 0.5rem;
}

.f-succes p {
    margin: 0 auto 1.5rem;
    max-width: 26rem;
    color: var(--ardoise);
}

/* Questions fréquentes */
.pg-faq {
    display: grid;
    gap: 0.875rem;
    max-width: 50rem;
    margin: 0 auto;
}

.pg-faq details {
    border-radius: var(--rayon);
    background: var(--blanc);
    box-shadow: 0 0 0 1px var(--trait), var(--ombre-carte);
}

.pg-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    font-weight: 650;
    font-size: 1.0625rem;
    cursor: pointer;
    list-style: none;
}

.pg-faq summary::-webkit-details-marker {
    display: none;
}

.pg-faq summary::after {
    content: "";
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--orange-fond) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23b45f00'%3E%3Cpath d='M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5v-4.5Z'/%3E%3C/svg%3E") center / 16px no-repeat;
    transition: transform 250ms var(--courbe);
}

.pg-faq details[open] summary::after {
    transform: rotate(45deg);
}

.pg-faq details p {
    margin: 0;
    padding: 0 1.5rem 1.375rem;
    color: var(--ardoise);
    line-height: 1.65;
}

/* Tontines publiques */
.pg-filtres {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 1rem;
    align-items: end;
    margin-top: -2.5rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    position: relative;
    z-index: 2;
    border-radius: 22px;
    background: var(--blanc);
    box-shadow: 0 0 0 1px var(--trait), 0 24px 50px rgba(120, 60, 0, 0.1);
}

.pg-filtres .f-champ label {
    font-size: 0.875rem;
}

.pg-filtres-actions {
    display: flex;
    gap: 0.5rem;
}

.pg-vide {
    max-width: 34rem;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 24px;
    background: var(--blanc);
    box-shadow: 0 0 0 1px var(--trait), var(--ombre-carte);
}

.pg-vide .a-service-icone {
    margin: 0 auto 1.25rem;
}

.pg-vide h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.pg-vide p {
    margin: 0 0 1.5rem;
    color: var(--ardoise);
}

.pg-pagination {
    margin-top: 2.5rem;
}

@media (max-width: 1024px) {
    .pg-bloc,
    .pg-histoire,
    .pg-contact {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .pg-bloc--inverse .pg-bloc-visuel {
        order: 0;
    }

    .pg-bloc + .pg-bloc {
        margin-top: 4.5rem;
    }

    .pg-bloc-visuel {
        min-height: 340px;
    }

    .pg-filtres {
        grid-template-columns: 1fr 1fr;
    }

    .pg-filtres-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .pg-heros {
        padding: 3rem 0 3rem;
    }

    .pg-bloc-visuel {
        padding: 1.5rem;
        min-height: 300px;
        border-radius: 24px;
    }

    .v-bulle {
        display: none;
    }

    .pg-formulaire {
        padding: 1.5rem;
    }

    .f-grille,
    .pg-filtres {
        grid-template-columns: 1fr;
    }

    .pg-filtres {
        margin-top: -1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .v-bulle,
    .v-cercle::before {
        animation: none;
    }
}

.pg-carte--valeur {
    position: relative;
    overflow: hidden;
    padding-top: 2rem;
}

.pg-carte--valeur::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--degrade);
}
