/* =========================
   PALETTE & BASE
   ========================= */

:root {
    /* Couleurs inspirées de ton logo / visuels */
    --bg-page: #f5f1e8;          /* beige papier */
    --bg-hero: #f9f5ec;
    --bg-hero-border: #e3d8c3;
    --bg-portal: #fbf7ef;
    --bg-card: #ffffff;
    --bg-chip: #e7f3eb;
    --accent: #2f8b57;           /* vert principal */
    --accent-soft: #66a97b;      /* vert plus clair */
    --accent-alt: #3f7f94;       /* bleu doux */
    --text-main: #1f3b2d;        /* vert sombre lisible */
    --text-muted: #6d7b6f;
    --border-subtle: #d9e1d6;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
    --radius-card: 1.2rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    color: var(--text-main);
    background-color: var(--bg-page);
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    font-family: inherit;
}

/* =========================
   LAYOUT GÉNÉRAL
   ========================= */

.page-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2.5rem;
}

/* =========================
   HERO = HEADER BRANDÉ
   ========================= */

.hero {
    background-color: var(--bg-hero);
    border-radius: 1.6rem;
    padding: 2.1rem 1.8rem 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--bg-hero-border);
    margin-bottom: 1.9rem;
}

/* Version centrée pour Panorasim */

.hero-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Logo Panorasim */

.hero-logo-block {
    margin-bottom: 1.1rem;
}

.hero-logo {
    max-width: 260px;
    width: 100%;
    height: auto;
    display: block;
}

.hero-logo-large {
    max-width: 320px;
}

/* Texte d’introduction */

.hero-content {
    max-width: 40rem;
}

.hero-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-kicker {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-alt);
    margin: 0 0 0.35rem;
}

.hero-title {
    margin: 0;
    font-family: "Montserrat", system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(2.1rem, 3vw, 2.6rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-subtitle {
    margin: 0.7rem 0 0.4rem;
    font-size: 1rem;
    color: var(--text-main);
}

.hero-subtitle strong {
    font-weight: 600;
}

.hero-subtext {
    margin: 0 0 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-points {
    margin: 0;
    padding-left: 1.1rem;
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-main);
}

.hero-points li + li {
    margin-top: 0.25rem;
}

.hero-actions {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.hero-footnote {
    margin: 0.9rem 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* =========================
   BOUTONS
   ========================= */

.btn-primary {
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.6rem;
    background: linear-gradient(120deg, #e8f7ec, #c5ecd1);
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border: 1px solid #b3ddc0;
    transition:
        transform 150ms ease-out,
        box-shadow 150ms ease-out,
        background 150ms ease-out;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    background: linear-gradient(120deg, #e2f4e7, #bce6ca);
}

.btn-link {
    border: none;
    background: none;
    padding: 0;
    font-size: 0.9rem;
    color: var(--accent-alt);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* =========================
   PORTAIL / LISTE DE VISITES
   ========================= */

.portal {
    background-color: var(--bg-portal);
    border-radius: 1.4rem;
    padding: 1.4rem 1.5rem 1.6rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
}

.portal-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.2rem;
}

.portal-title-block h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.portal-title-block p {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.portal-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

/* =========================
   RECHERCHE
   ========================= */

.search-wrapper {
    position: relative;
    min-width: min(260px, 100%);
}

.search-input {
    width: 100%;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background-color: #ffffff;
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
    transition:
        border-color 150ms ease-out,
        box-shadow 150ms ease-out;
}

.search-input::placeholder {
    color: #a0aca1;
}

.search-input:focus {
    border-color: var(--accent-soft);
    box-shadow: 0 0 0 3px rgba(102, 169, 123, 0.25);
}

/* =========================
   FILTRES
   ========================= */

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.filter-chip {
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    padding: 0.28rem 0.8rem;
    font-size: 0.8rem;
    background-color: #ffffff;
    color: var(--text-muted);
    cursor: pointer;
    transition:
        background-color 150ms ease-out,
        border-color 150ms ease-out,
        color 150ms ease-out;
}

.filter-chip.active {
    background-color: var(--bg-chip);
    border-color: var(--accent-soft);
    color: var(--text-main);
}

/* =========================
   GRID & CARTES
   ========================= */

.tour-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.6rem;
}

.tour-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition:
        transform 180ms ease-out,
        box-shadow 180ms ease-out,
        border-color 180ms ease-out;
}

.tour-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-soft);
}

.tour-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* vignette simplifiée */

.tour-thumb {
    position: relative;
    padding-top: 56%;
    background: linear-gradient(135deg, #d6eddc, #c1e5d0);
}

.tour-type-pill {
    position: absolute;
    left: 0.8rem;
    top: 0.8rem;
    border-radius: 999px;
    padding: 0.18rem 0.7rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(191, 215, 198, 0.9);
    color: var(--text-main);
}

/* Corps de carte */

.tour-body {
    padding: 0.7rem 0.85rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tour-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.tour-meta {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tour-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.15rem;
}

.tour-tag {
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    font-size: 0.72rem;
    background-color: #f3f7f3;
    border: 1px solid #d3e3d2;
    color: var(--text-main);
}

.tour-footer {
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.tour-footer .indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.tour-footer .indicator::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background-color: #72b785;
}

.tour-footer .chevron {
    font-size: 0.85rem;
}

/* =========================
   EMPTY STATE
   ========================= */

.empty-state {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.8rem 0.9rem;
    border-radius: 0.9rem;
    border: 1px dashed var(--border-subtle);
    background-color: #fbfaf6;
    display: none;
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.9rem 1.25rem 1.6rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.site-footer a {
    color: var(--accent-alt);
}

.site-footer a:hover {
    text-decoration: underline;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {
    .hero {
        padding: 1.8rem 1.5rem 1.7rem;
    }

    .hero-logo-large {
        max-width: 280px;
    }

    .portal-header {
        align-items: flex-start;
    }

    .tour-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding-inline: 1rem;
    }

    .hero {
        padding-inline: 1.4rem;
    }

    .portal {
        padding-inline: 1.1rem;
    }

    .portal-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tour-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        padding-inline: 1rem;
    }

    .hero-points {
        padding-left: 1rem;
    }
}
