/* ═══════════════════════════════════════════════════════════════════════════
   ALPAGATITUDE — Feuille de style principale
   Palette : vert forêt, brun doré, crème
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────────────────── */
:root {
    --green-dark:   #2e5a3e;
    --green:        #3d7a52;
    --green-light:  #5a9e6f;
    --green-pale:   #e8f3ec;
    --gold:         #b8860b;
    --gold-light:   #d4a843;
    --cream:        #faf7f0;
    --cream-dark:   #f0ebe0;
    --brown:        #6b4226;
    --brown-light:  #a0714f;
    --text:         #2a2a2a;
    --text-light:   #5a5a5a;
    --white:        #ffffff;
    --border:       #d8d0c4;
    --shadow:       rgba(0,0,0,.12);
    --shadow-lg:    rgba(0,0,0,.22);
    --radius:       12px;
    --radius-sm:    6px;
    --transition:   .25s ease;
    --header-h:     72px;
    --font-serif:   Georgia, 'Times New Roman', serif;
    --font-sans:    'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Reset / Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-sans);
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }

ul { list-style: none; }

h1,h2,h3,h4,h5 {
    font-family: var(--font-serif);
    line-height: 1.25;
    color: var(--green-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p { margin-bottom: 1rem; }

/* ── Layout helpers ─────────────────────────────────────────────────────── */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.25rem;
}
.section { padding: 5rem 0; }
.section-alt { background: var(--cream-dark); }
.section-green { background: var(--green-pale); }
.text-center { text-align: center; }

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header h2 { margin-bottom: .5rem; }
.section-header p { color: var(--text-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.section-divider {
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold-light);
    border-radius: 2px;
    margin: .75rem auto 0;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: .7rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-align: center;
    white-space: nowrap;
}
.btn-primary {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}
.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(62,122,82,.35);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--green-dark);
}
.btn-gold {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}
.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-sm { padding: .45rem 1.2rem; font-size: .85rem; }
.btn-full { width: 100%; display: block; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: rgba(46,90,62,.97);
    backdrop-filter: blur(8px);
    z-index: 1000;
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 20px var(--shadow-lg); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--white) !important;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: .5px;
    flex-shrink: 0;
}
.logo:hover { color: var(--gold-light) !important; }
.logo-icon { font-size: 1.8rem; line-height: 1; }

.main-nav { display: flex; align-items: center; gap: 1rem; }
.main-nav ul { display: flex; align-items: center; gap: .25rem; }
.main-nav a {
    color: rgba(255,255,255,.88);
    padding: .4rem .85rem;
    border-radius: 6px;
    font-size: .92rem;
    transition: all var(--transition);
}
.main-nav a:hover, .main-nav a.active {
    color: var(--white);
    background: rgba(255,255,255,.12);
}
.btn-nav {
    background: var(--gold) !important;
    color: var(--white) !important;
    border-radius: 50px !important;
    padding: .45rem 1.2rem !important;
    font-weight: 600 !important;
}
.btn-nav:hover { background: var(--gold-light) !important; }

/* Lang switcher */
.lang-switcher { display: flex; gap: .2rem; margin-left: .5rem; }
.lang-btn {
    font-size: 1.2rem;
    padding: .2rem .3rem;
    border-radius: var(--radius-sm);
    opacity: .65;
    transition: opacity var(--transition), transform var(--transition);
    color: unset;
}
.lang-btn:hover, .lang-btn.active { opacity: 1; transform: scale(1.15); }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    padding-top: var(--header-h);
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(160deg, rgba(46,90,62,.82) 0%, rgba(107,66,38,.65) 100%),
        var(--green-dark);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(255,255,255,.04)' stroke-width='1'/%3E%3C/svg%3E") repeat;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 720px;
}
.hero-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,.15);
    color: var(--gold-light);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50px;
    padding: .35rem 1rem;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.hero p { font-size: 1.15rem; opacity: .9; margin-bottom: 2rem; max-width: 560px; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.6);
    font-size: .8rem;
    text-align: center;
    animation: bounce 2s infinite;
}
.hero-scroll svg { display: block; margin: .3rem auto 0; }
@keyframes bounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

/* Alpaca floating tile on hero */
.hero-alpaca {
    position: absolute;
    right: 6%;
    bottom: 0;
    font-size: clamp(8rem, 20vw, 18rem);
    line-height: 1;
    opacity: .18;
    pointer-events: none;
    user-select: none;
}

/* ── About cards ────────────────────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.about-text p { color: var(--text-light); }
.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
}
.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
}
.feature-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.feature-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.feature-card p { font-size: .88rem; color: var(--text-light); margin: 0; }

/* ── Cards (rooms / activities) ─────────────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.75rem;
}
.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 12px var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px var(--shadow-lg);
}
.card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--green-pale);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    background: linear-gradient(135deg, var(--green-pale), var(--cream-dark));
}
.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-body h3 { margin-bottom: .5rem; color: var(--green-dark); }
.card-body p { color: var(--text-light); font-size: .92rem; flex: 1; }
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    font-size: .88rem;
    color: var(--text-light);
    gap: .5rem;
    flex-wrap: wrap;
}
.card-meta-item { display: flex; align-items: center; gap: .3rem; }
.card-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green-dark);
}
.card-price small { font-size: .75rem; font-weight: 400; color: var(--text-light); }

/* ── Stats / CTA band ───────────────────────────────────────────────────── */
.stats-band {
    background: var(--green-dark);
    color: var(--white);
    padding: 3rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}
.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-serif);
    color: var(--gold-light);
}
.stat-label { font-size: .9rem; opacity: .8; }

/* ── CTA section ────────────────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    padding: 5rem 0;
    text-align: center;
    color: var(--white);
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { opacity: .9; margin-bottom: 2rem; font-size: 1.1rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 4px 24px var(--shadow);
    max-width: 760px;
    margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.25rem; position: relative; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: .4rem;
    color: var(--green-dark);
}
.form-control {
    width: 100%;
    padding: .7rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: .95rem;
    background: var(--cream);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(61,122,82,.18);
    background: var(--white);
}
textarea.form-control { resize: vertical; min-height: 110px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: .8rem; color: var(--text-light); margin-top: .25rem; }
.form-error { font-size: .82rem; color: #c0392b; margin-top: .25rem; }
.form-section-title {
    font-weight: 600;
    color: var(--green-dark);
    margin: 1.5rem 0 .75rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
}

/* Radio / type tabs */
.type-tabs { display: flex; gap: .5rem; margin-bottom: 1rem; }
.type-tab {
    flex: 1;
    padding: .75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--cream);
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    font-size: .92rem;
    transition: all var(--transition);
    color: var(--text-light);
}
.type-tab.active {
    border-color: var(--green);
    background: var(--green-pale);
    color: var(--green-dark);
}

/* Total estimé */
.total-box {
    background: var(--green-pale);
    border: 1px solid var(--green-light);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}
.total-amount { font-size: 1.5rem; color: var(--green-dark); }

/* Alert messages */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: .95rem;
    border-left: 4px solid;
}
.alert-success { background: #f0faf4; border-color: var(--green); color: #1e5631; }
.alert-error   { background: #fdf0f0; border-color: #c0392b; color: #7b1d1d; }
.alert-warning { background: #fffbf0; border-color: var(--gold); color: #634c00; }
.alert-info    { background: #f0f6ff; border-color: #2980b9; color: #154360; }

/* ── Page hero (sous-pages) ─────────────────────────────────────────────── */
.page-hero {
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: 3rem;
    background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 100%);
    color: var(--white);
    text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: .5rem; }
.page-hero p { opacity: .85; font-size: 1.1rem; max-width: 560px; margin: 0 auto; }
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 1rem;
    font-size: .85rem;
    opacity: .75;
    flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { opacity: .5; }

/* ── Timeline / Steps ───────────────────────────────────────────────────── */
.steps { display: flex; justify-content: center; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.step {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .9rem;
    color: var(--text-light);
}
.step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    background: var(--border);
    color: var(--text-light);
    flex-shrink: 0;
}
.step.done .step-num { background: var(--green); color: var(--white); }

/* ── Confirmation page ──────────────────────────────────────────────────── */
.confirm-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: 0 4px 24px var(--shadow);
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}
.confirm-icon { font-size: 4rem; margin-bottom: 1rem; }
.confirm-details {
    background: var(--green-pale);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin: 1.5rem 0;
    text-align: left;
}
.confirm-details dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.5rem; }
.confirm-details dt { font-weight: 600; color: var(--green-dark); font-size: .9rem; }
.confirm-details dd { color: var(--text); font-size: .9rem; }

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 3rem;
    align-items: start;
}
.contact-info h3 { margin-bottom: 1rem; }
.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}
.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--green-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.contact-info-text strong { display: block; font-size: .88rem; color: var(--text-light); }
.contact-info-text span { font-size: .95rem; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--green-dark);
    color: rgba(255,255,255,.8);
    font-size: .9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding: 4rem 0 2rem;
}
.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: .5rem;
}
.footer-brand p { opacity: .75; font-size: .88rem; line-height: 1.6; }
.footer-social { display: flex; gap: .75rem; margin-top: 1rem; }
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: background var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--white); }
.footer-links h4, .footer-contact h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1rem;
}
.footer-links ul li { margin-bottom: .4rem; }
.footer-links a { color: rgba(255,255,255,.7); }
.footer-links a:hover { color: var(--gold-light); }
.footer-contact p { opacity: .8; margin-bottom: .4rem; }
.footer-contact a { color: rgba(255,255,255,.8); }
.footer-contact a:hover { color: var(--gold-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.25rem 0;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    opacity: .65;
    font-size: .82rem;
}

/* ── Badges ─────────────────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: .25rem .65rem;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.badge-success { background: #d4edda; color: #1e5631; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger  { background: #f8d7da; color: #721c24; }
.badge-secondary { background: #e2e3e5; color: #383d41; }
.badge-info    { background: #d1ecf1; color: #0c5460; }

/* ── Pagination ─────────────────────────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    gap: .4rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    font-weight: 600;
    font-size: .9rem;
    color: var(--text);
    transition: all var(--transition);
}
.page-link:hover,
.page-link.active { background: var(--green); border-color: var(--green); color: var(--white); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .about-grid    { grid-template-columns: 1fr; }
    .footer-grid   { grid-template-columns: 1fr 1fr; }
    .contact-grid  { grid-template-columns: 1fr; }
    .footer-brand  { grid-column: span 2; }
}

@media (max-width: 700px) {
    :root { --header-h: 60px; }
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: var(--green-dark);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: .5rem;
        z-index: 999;
        box-shadow: 0 8px 30px var(--shadow-lg);
    }
    .main-nav.open { display: flex; }
    .main-nav ul { flex-direction: column; width: 100%; }
    .main-nav a { display: block; padding: .75rem 1rem; width: 100%; }
    .lang-switcher { justify-content: center; margin-top: .5rem; margin-left: 0; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: unset; }
    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn { text-align: center; }
    .steps { flex-direction: column; align-items: flex-start; max-width: 280px; margin: 0 auto 2rem; }
    .confirm-card { padding: 2rem 1.25rem; }
    .form-card { padding: 1.5rem 1rem; }
}

/* ── Animations ─────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .6s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .22s; }
.delay-3 { animation-delay: .34s; }

/* ── Utility ─────────────────────────────────────────────────────────────── */
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: .5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
