@font-face {
    font-family: 'title';
    src: url('/assets/fonts/title.woff2') format('woff2'),
         url('/assets/fonts/title.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'body';
    src: url('/assets/fonts/body.woff2') format('woff2'),
         url('/assets/fonts/body.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
}

/* évite que les composants natifs basculent en dark */

.font-title {
    font-family: 'title', sans-serif;
}

.font-body {
    font-family: 'body', sans-serif;
}

:root {
    --c-mint: #88FFD7;
    --c-blue: #99CBFF;
    --c-forest: #00735C;
    --c-teracota: #A04A47;
    --c-beige: #fdf4f0;
    --c-yellow: #F4E492;
    --c-pink: #FF99D0;
    --c-ink: #0f172a;
    --c-ink-2: #334155;
    --c-bg: #ffffff;
    --c-myred: #e02424;
}

.text-red-var {
    color: var(--c-myred);
}

.text-blue-var {
    color: var(--c-blue);
}

.text-pink-var {
    color: var(--c-pink);
}

.text-green-var {
    color: var(--c-mint);
}

.text-yellow-var {
    color: var(--c-yellow);
}

.text-tc-var {
    color: var(--c-teracota);
}

.text-beige-var {
    color: var(--c-beige);
}

.text-forest-var {
    color: var(--c-forest);
}

/*************************
 * Header / Nav palette  *
 *************************/
/* Pills type nav like your mockup */
.nav-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    /* plus compact */
    border-radius: 9999px;
    font-weight: 700;
    line-height: 1;
    font-size: 0.9rem;
    /* réduit taille texte */
    transition: filter .15s ease, transform .05s ease;
    justify-content: center;
    /* centre horizontalement */
}

.nav-pill:hover {
    filter: brightness(0.96);
}

.nav-pill:active {
    transform: translateY(1px);
}

/* Underline bar across header */
.header-underline {
    height: 10px;
    /* plus fin */
    background: var(--c-forest);
}

/* Icon buttons with counters */
.icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.icon-btn:hover {
    background: transparent;
}

.icon-btn__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 9999px;
    /* Fallback seulement : la couleur réelle est posée en inline par les templates
       (bg-gray-300 si vide, bg-[var(--c-teracota)] sinon) et chargée après via Tailwind. */
    background: var(--c-teracota);
    color: #fff;
    font-weight: 700;
    border: 2px solid #fff;
    /* petit contraste */
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
}

/* Footer minor tune */
.footer-muted {
    color: #64748b;
}

header {
    font-family: 'title', sans-serif;
}

footer {
    font-family: 'body', sans-serif;
}

footer h3 {
    font-family: 'title', sans-serif;
}


/* Boutons nav personnalisés */
.custom-pill {
    color: var(--c-forest);
    background: transparent;
    border: 2px solid transparent;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
    font-size: 1.15rem;
    /* équiv. Tailwind text-2xl */
}

.custom-pill:active {
    transform: translateY(1px);
}

/* Hover: fond bleu, texte blanc */
.custom-pill:hover {
    background: var(--c-forest);
    color: var(--c-beige);
    border-color: var(--c-forest);
}

/* Actif (page en cours): fond bleu, texte blanc */
.custom-pill.active {
    background: var(--c-forest);
    color: var(--c-beige);
    border-color: var(--c-forest);
}

/* Boutique mise en avant si pas active */
.custom-pill.highlight {
    background: var(--c-forest);
    color: #fff !important;
    border-color: var(--c-forest);
}

.custom-pill.highlight:hover {
    background: var(--c-forest);
    border-color: var(--c-forest);
}

/* Boutons nav par défaut */
#mainNav a {
    color: var(--c-forest);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

/* Option : léger grain */
.faq-parchment {
    background: linear-gradient(180deg, rgba(244, 228, 146, 0.22), rgba(255, 255, 255, 0.5));
}

/* Hover seulement si pas courant */
#mainNav a:not(.highlight-current):hover {
    background-color: var(--c-forest) !important;
    color: var(--c-beige) !important;
}

/* Contenu CGV */
.legal-copy h1,
.legal-copy h2,
.legal-copy h3 {
    font-family: 'title', sans-serif;
    color: var(--c-ink);
}

.legal-copy h1 {
    font-size: 1.5rem;
    margin: 1.5rem 0 .75rem;
}

.legal-copy h2 {
    font-size: 1.1rem;
    margin: 1.25rem 0 .5rem;
    font-family: 'title', sans-serif;
}

.legal-copy h3 {
    font-size: 1.2rem;
    margin: 1rem 0 .5rem;
}

.legal-copy p,
.legal-copy li {
    font-family: 'body', sans-serif;
    color: #334155;
    line-height: 1.8;
}

.legal-copy p {
    margin: .75rem 0;
}

.legal-copy a {
    color: var(--c-forest);
    text-decoration: underline;
}

.legal-copy ul,
.legal-copy ol {
    padding-left: 1.25rem;
    margin: .5rem 0 .75rem;
}

.legal-copy ol {
    list-style: decimal;
}

.legal-copy ul {
    list-style: disc;
}

.legal-copy table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.legal-copy th,
.legal-copy td {
    border: 1px solid #e5e7eb;
    padding: .5rem .75rem;
}

.legal-copy blockquote {
    border-left: 4px solid var(--c-forest);
    padding-left: .75rem;
    color: #475569;
}

.legal-toc nav ul {
    list-style: none;
    padding-left: 0;
}

.legal-toc a {
    color: var(--c-ink);
    text-decoration: none;
}

.legal-toc a:hover {
    color: var(--c-forest);
}

.legal-toc li {
    margin: .25rem 0;
}

.legal-toc .toc-h2 {
    margin-left: .5rem;
}

.legal-toc .toc-h3 {
    margin-left: 1rem;
}

/* Impression */
@media print {

    header,
    .header-underline,
    nav,
    footer {
        display: none !important;
    }

    .legal-toc {
        display: none;
    }

    .legal-copy {
        font-size: 12pt;
    }
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: .5rem 1rem;
    font-family: 'title', sans-serif;
    border: 2px solid var(--c-forest);
    background: #fff;
    color: var(--c-ink);
}

.filter-pill.active {
    background: var(--c-forest);
    color: #fff;
    border-color: var(--c-forest);
}


/* === Parchment : bordure bleue + tout en font-title === */
.parchment {
    border: 4px solid var(--c-forest);
    border-radius: 16px;
    background: var(--c-beige);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    font-family: 'title', sans-serif;
    /* <- tout le bloc en font-title */
}

/* Titre/trigger du parchemin */
.parchment-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    font-family: 'title', sans-serif;
    /* <- titre en font-title */
    font-weight: 700;
    color: var(--c-forest);
    background: #fff;
    border-bottom: 2px solid rgba(15, 23, 42, 0.08);
}

.parchment[open] .parchment-toggle {
    background: var(--c-beige);
}

/* Indicateur du filtre courant (chip) */
.current-chip {
    font-family: 'title', sans-serif;
    /* <- font-title */
    font-size: .9rem;
    background: #fff;
    border: 2px solid var(--c-forest);
    /* <- bordure bleue */
    color: var(--c-forest);
    /* <- texte bleu */
    border-radius: 9999px;
    padding: .2rem .7rem;
}

/* Corps du parchemin */
.parchment-body {
    padding: 1rem 1.2rem 1.2rem;
    max-height: 280px;
    overflow: auto;
    font-family: 'title', sans-serif;
    /* <- liens/titres en font-title */
}

/* Grille des liens */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .6rem .8rem;
}

/* Boutons filtre : bordure + texte bleus ; actif = plein bleu */
.filter-link {
    display: flex;
    /* au lieu de inline-block */
    align-items: center;
    /* centre verticalement */
    justify-content: center;
    /* centre horizontalement */
    text-align: center;
    padding: .55rem .9rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--c-forest);
    background: #fff;
    color: var(--c-forest);
    transition: transform .05s ease, filter .15s ease, background .2s ease, color .2s;
}

.filter-link:hover {
    filter: brightness(.96);
}

.filter-link:active {
    transform: translateY(1px);
}

.filter-link.active {
    background: var(--c-forest);
    /* <- plein bleu */
    color: #fff !important;
    /* <- texte blanc */
    border-color: var(--c-forest);
}

/* (Optionnel) accessibilité focus */
.parchment-toggle:focus-visible,
.filter-link:focus-visible {
    outline: 3px solid var(--c-forest);
    outline-offset: 2px;
}

/* Désactive le scroll interne pour certains encarts */
.parchment-body.no-scroll {
    max-height: none !important;
    overflow: visible !important;
    background: var(--c-beige);
}

/* Checkout: les blocs .parchment sont toujours ouverts et non cliquables */
#checkout .parchment.is-static .parchment-toggle {
    pointer-events: none;
    /* désactive le toggle */
    cursor: default;
}

#checkout .parchment.is-static summary {
    list-style: none;
}

#checkout .parchment.is-static summary::-webkit-details-marker {
    display: none;
}

/* Pas de scroll interne, tout visible */
#checkout .parchment.is-static .parchment-body {
    max-height: none !important;
    overflow: visible !important;
}

/* Checkout: le parchemin Paiement est fermé et non cliquable */
#checkout .parchment.is-locked .parchment-toggle {
    pointer-events: none;
    cursor: default;
}

#checkout .parchment.is-locked summary {
    list-style: none;
}

#checkout .parchment.is-locked summary::-webkit-details-marker {
    display: none;
}

/* Corps visible sans scroll quand il sera ouvert par script */
#checkout .parchment .parchment-body.no-scroll {
    max-height: none !important;
    overflow: visible !important;
}

/* Mobile menu pills = même logique que desktop */
#mobileNav a.custom-pill:not(.highlight):not(.highlight-current) {
    display: block;
    background: #fff;
    /* fond blanc */
    color: var(--c-forest);
    /* texte bleu */
    border-color: transparent;
    /* pas de bord visible */
}

/* Boutique mise en avant par défaut (comme desktop) */
#mobileNav a.custom-pill.highlight {
    background: var(--c-forest);
    color: #fff !important;
    border-color: var(--c-forest);
}

#mainNav a.custom-pill.highlight-current,
#mobileNav a.custom-pill.highlight-current,
.nav-pill.custom-pill.highlight-current {
  background-color: var(--c-forest) !important;
  border-color: var(--c-forest) !important;
  color: #fff !important;
}


/* #### titres Markdown (rendus en <h4>) : rouge, gras, avec un point devant */
.md-content h4 {
    color: var(--c-ink);
    font-weight: 1000 !important;
    /* bien gras */
    position: relative;
    padding-left: 1.2em;
    /* espace pour le point */
    margin: .75rem 0 .5rem;
}

.md-content h4::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    line-height: 1;
    transform: translateY(.1em);
    /* ajuste verticalement */
    font-size: 1.3em;
    /* un poil plus gros que le texte */
    color: var(--c-ink);
}

/* MR: nouveau contexte d’empilement et hauteur garantie */
#mr-zone {
    isolation: isolate;
    position: relative;
    z-index: 1;
}

#Zone_Widget {
    min-height: 420px
}

#Zone_Widget .leaflet-container {
    height: 420px !important;
    min-height: 420px !important;
}

#Zone_Widget .leaflet-pane,
#Zone_Widget .leaflet-map-pane {
    width: 100%;
    height: 100%;
}

#Zone_Widget iframe {
    width: 100%;
    height: 420px;
    min-height: 420px;
    display: block;
}

/* MR – mobile : pas de carte, liste scrollable */
@media (max-width: 640px) {
    #Zone_Widget {
        min-height: auto !important;
    }

    /* cache la map si le plugin l’injecte quand même */
    #Zone_Widget .leaflet-container,
    #Zone_Widget iframe {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
    }

    /* assure un conteneur de liste confortable (classes "fourre-tout" par sécurité) */
    #Zone_Widget .PS_PointList,
    #Zone_Widget .mr-results,
    #Zone_Widget .results,
    #Zone_Widget [class*="result"],
    #Zone_Widget [class*="list"] {
        max-height: 70vh;
        overflow: auto;
    }
}

/* Effet machine à écrire */
@keyframes typing {
    from { width: 0 }
    to   { width: 100% }
}
@keyframes caret {
    50% { border-color: transparent }
}
.start-typing {
    animation: typing var(--typing-duration, 1.8s) steps(var(--typing-steps, 30), end) forwards,
               caret 1s step-end infinite;
}
.reveal {
    will-change: transform, opacity;
}

/* videos guide lavage */

.md-prose {
    max-width: 70ch; /* largeur de lecture confortable */
    margin-inline: auto; /* centre le bloc */
}

/* Vidéos insérées dans le markdown */
.md-prose video {
    display: block;
    width: min(100%, 720px); /* ne dépasse jamais 720px sur desktop */
    height: auto; /* conserve le ratio */
    max-height: 70vh; /* évite les très grandes hauteurs */
    margin: 1rem auto; /* centre la vidéo */
    border-radius: 12px;
    background: #000; /* fond noir avant le 1er frame */
}

/* Option : sur mobile, laisse la largeur mais limite la hauteur */
@media (max-width: 640px) {
    .md-prose {
        max-width: none;
    }

    /* le texte peut prendre 100% */
    .md-prose video {
        max-height: 40vh;
    }
}


/* Pill visuelle pour Giftcard */
.gc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding: 4px 10px;
    border-radius: 9999px;
    font: 600 12px/1 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    vertical-align: middle;
}

.gc-pill--ok {
    background: #065f46;
    color: #fff;
}

/* vert */
.gc-pill--bad {
    background: #7f1d1d;
    color: #fff;
}

/* rouge */
.gc-pill.hidden {
    display: none !important;
}

/* Fond rose whoami Desktop only */
@media (min-width: 768px) {
    .bg-desktop-pink {
        background: color-mix(in srgb, var(--c-beige) 14%, white);
    }
}


/*****************
 * Ratings pages *
 *****************/
.ratings-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 2.5rem 1rem 3.5rem;
    font-family: 'body', sans-serif;
}

.ratings-title {
    font-family: 'title', sans-serif;
    color: var(--c-ink);
}

.ratings-sub {
    color: rgba(15, 23, 42, 0.72);
}

.ratings-error {
    background: rgba(224, 36, 36, .08);
    border: 2px solid rgba(224, 36, 36, .25);
    padding: 10px 12px;
    border-radius: 16px;
    margin-top: 14px;
    color: var(--c-ink);
}

.rating-outer {
    background: var(--c-forest);
    border-radius: 22px;
    padding: 12px;
    margin: 18px 0;
}

.rating-inner {
    background: var(--c-beige);
    border-radius: 18px;
    padding: 14px;
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 14px;
    border: 2px solid rgba(0, 115, 92, 0.35);
}

.rating-media img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 14px;
}

.rating-name {
    font-family: 'title', sans-serif;
    font-size: 1.35rem;
    margin: 0 0 6px;
    color: var(--c-ink);
}

.rating-hint {
    margin: 0 0 10px;
    color: rgba(15, 23, 42, 0.65);
    font-size: 0.85rem;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 12px;
}

.rating-stars .label {
    font-family: 'title', sans-serif;
    font-size: 0.95rem;
    color: rgba(15, 23, 42, 0.85);
}

.star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 6px;
}
.star-input input { display: none; }
.star-input label {
    cursor: pointer;
    font-size: 22px;
    color: rgba(15, 23, 42, .25);
    user-select: none;
}
.star-input input:checked ~ label { color: #f0b429; }
.star-input label:hover,
.star-input label:hover ~ label { color: #f0b429; }

.rating-textarea {
    width: 100%;
    border-radius: 14px;
    border: 2px solid rgba(15, 23, 42, .12);
    padding: 10px 12px;
    font-size: 14px;
    resize: vertical;
    background: rgba(255, 255, 255, .7);
    outline: none;
}

.ratings-bottom {
    margin-top: 26px;
    display: grid;
    gap: 10px;
}

.ratings-bottom label {
    font-family: 'title', sans-serif;
    color: rgba(15, 23, 42, 0.85);
    font-size: 0.9rem;
}

.ratings-bottom input[type="text"]{
    border-radius: 14px;
    border: 2px solid rgba(15, 23, 42, .12);
    padding: 12px 12px;
    background: rgba(255,255,255,.8);
}

.ratings-submit {
    border: 0;
    border-radius: 16px;
    padding: 14px 16px;
    background: var(--c-forest);
    color: white;
    font-weight: 800;
    font-family: 'title', sans-serif;
    cursor: pointer;
}
.ratings-submit:hover { filter: brightness(1.06); }

@media (max-width: 700px){
    .rating-inner { grid-template-columns: 1fr; }
    .rating-media img { height: 180px; }
}


