/* ================================================
   AU FIL DES CIMES - Main Stylesheet
   ================================================ */

/* --- Reset & Variables --- */
:root {
    --green-dark: #2d3b1f;
    --green: #3a7d2c;
    --green-light: #5a8f3c;
    --green-pale: #e8f0e0;
    --orange: #c4652a;
    --orange-light: #e8935a;
    --blue: #2c6fbb;
    --cream: #faf8f3;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-500: #737373;
    --gray-700: #404040;
    --gray-900: #171717;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--orange); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Navigation --- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.navbar-logo img { height: 50px; width: auto; }
.navbar-menu { display: flex; list-style: none; gap: 8px; align-items: center; }
.navbar-menu a {
    display: block; padding: 8px 16px; border-radius: 8px;
    font-size: 0.9rem; font-weight: 500; color: var(--gray-700);
    transition: var(--transition);
}
.navbar-menu a:hover, .navbar-menu a.active {
    background: var(--green-pale); color: var(--green);
}
.lang-switch {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 12px !important; border: 1px solid var(--gray-300);
    border-radius: 20px !important; font-size: 0.8rem !important;
    font-weight: 600 !important;
}
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span {
    display: block; width: 24px; height: 2px; background: var(--gray-700);
    margin: 5px 0; transition: var(--transition);
}

/* --- Hero --- */
.hero {
    position: relative; height: 100vh; min-height: 600px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: url('/assets/img/hero-bg.jpg') center center / cover no-repeat; background-color: #1a3a12;
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.4) 100%);
}
.hero-content {
    position: relative; z-index: 2; text-align: center; background: rgba(0,0,0,0.4); padding: 48px 56px; border-radius: 16px; backdrop-filter: blur(4px);
    color: var(--white); padding: 20px;
}
.hero-logo { max-width: 350px; margin: 0 auto 20px; filter: brightness(0) invert(1); }
.hero h1 {
    font-family: var(--font-heading); font-size: 3.5rem;
    font-weight: 700; margin-bottom: 8px; letter-spacing: 2px;
}
.hero .subtitle {
    font-size: 1.4rem; font-weight: 300; opacity: 0.9;
    margin-bottom: 8px; letter-spacing: 3px; text-transform: uppercase;
}
.hero .tagline {
    font-size: 1.2rem; font-style: italic; opacity: 0.8;
    margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 50px; font-weight: 600;
    font-size: 1rem; border: 2px solid transparent;
    cursor: pointer; transition: var(--transition); text-align: center;
}
.btn-primary {
    background: var(--orange); color: var(--white);
    border-color: var(--orange);
}
.btn-primary:hover {
    background: var(--orange-light); border-color: var(--orange-light);
    color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.btn-outline {
    background: transparent; color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
    background: var(--white); color: var(--green-dark);
    transform: translateY(-2px);
}
.btn-green { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover {
    background: var(--green-light); border-color: var(--green-light);
    color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* --- Sections --- */
.section { padding: 100px 0; }
.section-alt { background: var(--white); }
.section-green { background: var(--green-dark); color: var(--white); }
.section-title {
    font-family: var(--font-heading); font-size: 2.5rem;
    color: var(--green-dark); text-align: center; margin-bottom: 8px;
}
.section-green .section-title { color: var(--white); }
.section-subtitle {
    text-align: center; font-size: 1.1rem; color: var(--gray-500);
    margin-bottom: 60px;
}
.section-green .section-subtitle { color: rgba(255,255,255,0.7); }

/* --- Category Cards --- */
.categories-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 32px; margin-bottom: 0;
}
.category-card {
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
    transition: var(--transition); position: relative;
}
.category-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.category-card-img {
    height: 220px; position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    display: flex; align-items: center; justify-content: center;
}
.category-card-img .icon-large {
    font-size: 4rem; opacity: 0.3; color: white;
}
.category-card-body { padding: 28px; }
.category-card-body h3 {
    font-family: var(--font-heading); font-size: 1.4rem;
    color: var(--green-dark); margin-bottom: 8px;
}
.category-card-body .subtitle { font-size: 0.95rem; color: var(--orange); margin-bottom: 12px; font-weight: 500; }
.category-card-body p { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 20px; }

/* --- Formula Cards --- */
.formulas-section { padding: 60px 0; }
.formula-list { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.formula-card {
    display: grid; grid-template-columns: 300px 1fr auto;
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.formula-card:hover { box-shadow: var(--shadow-md); }
.formula-card-img {
    height: 100%; min-height: 200px;
    background: linear-gradient(135deg, var(--green-pale) 0%, var(--green-light) 100%);
    display: flex; align-items: center; justify-content: center;
}
.formula-card-body { padding: 28px; }
.formula-card-body h3 { font-family: var(--font-heading); font-size: 1.3rem; color: var(--green-dark); margin-bottom: 4px; }
.formula-card-body .formula-tagline { color: var(--orange); font-size: 0.9rem; font-weight: 500; margin-bottom: 12px; }
.formula-card-body p { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 16px; }
.formula-meta { display: flex; gap: 20px; flex-wrap: wrap; }
.formula-meta-item { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--gray-500); }
.formula-card-price {
    display: flex; flex-direction: column; justify-content: center;
    align-items: center; padding: 28px; min-width: 160px;
    border-left: 1px solid var(--gray-200); text-align: center;
}
.formula-card-price .price {
    font-family: var(--font-heading); font-size: 2rem;
    color: var(--green); font-weight: 700;
}
.formula-card-price .price-label { font-size: 0.8rem; color: var(--gray-500); margin-bottom: 16px; }
.badge-future {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600; background: var(--orange-light);
    color: white;
}
.badge-difficulty {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600;
}
.badge-facile { background: #dcfce7; color: #166534; }
.badge-moyen { background: #fef3c7; color: #92400e; }
.badge-difficile { background: #fee2e2; color: #991b1b; }

/* --- Calendar / Outings --- */
.outings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 24px; }
.outing-card {
    background: var(--white); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--green); transition: var(--transition);
}
.outing-card:hover { box-shadow: var(--shadow-md); }
.outing-card .outing-date {
    font-family: var(--font-heading); font-size: 1.1rem;
    color: var(--orange); font-weight: 700; margin-bottom: 4px;
}
.outing-card h3 { font-size: 1.2rem; color: var(--green-dark); margin-bottom: 8px; }
.outing-card .outing-info { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 16px; }
.outing-card .outing-spots {
    display: flex; justify-content: space-between; align-items: center;
}
.spots-bar { flex: 1; height: 6px; background: var(--gray-200); border-radius: 3px; margin-right: 16px; overflow: hidden; }
.spots-bar-fill { height: 100%; border-radius: 3px; background: var(--green); transition: var(--transition); }
.spots-bar-fill.almost-full { background: var(--orange); }
.spots-bar-fill.full { background: #dc2626; }

/* --- Booking Form --- */
.booking-section { background: var(--cream); }
.booking-form {
    max-width: 600px; margin: 0 auto;
    background: var(--white); padding: 40px;
    border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; color: var(--gray-700); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 16px; border: 1px solid var(--gray-300);
    border-radius: 8px; font-size: 1rem; font-family: var(--font-body);
    transition: var(--transition); background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(90,143,60,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check input[type="checkbox"] { margin-top: 4px; width: auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert {
    padding: 16px 20px; border-radius: 8px; margin-bottom: 20px;
    font-size: 0.9rem;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* --- About --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img {
    border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 4/5; background: var(--green-pale);
    display: flex; align-items: center; justify-content: center;
    color: var(--green); font-size: 1.2rem; box-shadow: var(--shadow-md);
}
.about-text h2 { font-family: var(--font-heading); font-size: 2rem; color: var(--green-dark); margin-bottom: 16px; }
.about-text p { margin-bottom: 16px; }

/* --- Testimonials --- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.testimonial-card {
    background: rgba(255,255,255,0.1); padding: 32px;
    border-radius: var(--radius); position: relative;
}
.testimonial-card::before {
    content: '\201C'; position: absolute; top: 16px; left: 20px;
    font-size: 4rem; font-family: var(--font-heading); color: var(--orange);
    opacity: 0.3; line-height: 1;
}
.testimonial-card p { font-style: italic; margin-bottom: 16px; padding-top: 20px; }
.testimonial-author { font-weight: 600; font-size: 0.9rem; color: var(--orange-light); }
.stars { color: #fbbf24; letter-spacing: 2px; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-icon {
    width: 48px; height: 48px; background: var(--green-pale);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; color: var(--green); flex-shrink: 0;
    font-size: 1.2rem;
}
.contact-info-item h4 { font-size: 0.95rem; color: var(--green-dark); margin-bottom: 2px; }
.contact-info-item p { font-size: 0.9rem; color: var(--gray-500); }

/* --- Footer --- */
.footer {
    background: var(--green-dark); color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { max-width: 200px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.8; }
.footer p { font-size: 0.9rem; }
.footer h4 { color: var(--white); margin-bottom: 16px; font-size: 1rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer ul a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px; text-align: center; font-size: 0.8rem;
}
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-link {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: white; transition: var(--transition);
}
.social-link:hover { background: var(--orange); color: white; }

/* --- Scroll animations --- */
.fade-in {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- Modal --- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    z-index: 2000; display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--white); border-radius: var(--radius);
    max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto;
    box-shadow: var(--shadow-lg); position: relative;
}
.modal-header {
    padding: 24px 28px; border-bottom: 1px solid var(--gray-200);
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { font-family: var(--font-heading); color: var(--green-dark); }
.modal-close {
    background: none; border: none; font-size: 1.5rem;
    cursor: pointer; color: var(--gray-500); padding: 4px;
}
.modal-body { padding: 28px; }

/* --- Gallery --- */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}
.gallery-item {
    aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
    background: var(--green-pale); cursor: pointer; position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.05); }

/* --- Page header for sub-pages --- */
.page-header {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
    padding: 140px 0 60px; text-align: center; color: white;
}
.page-header h1 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 8px; }
.page-header p { opacity: 0.8; font-size: 1.1rem; }

/* --- Responsive --- */
@media (max-width: 968px) {
    .categories-grid { grid-template-columns: 1fr; }
    .formula-card { grid-template-columns: 1fr; }
    .formula-card-img { min-height: 180px; }
    .formula-card-price { border-left: none; border-top: 1px solid var(--gray-200); flex-direction: row; justify-content: space-between; }
    .about-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .navbar-menu { 
        display: none; position: fixed; top: 72px; left: 0; right: 0;
        background: white; flex-direction: column; padding: 16px;
        box-shadow: var(--shadow-md); gap: 4px;
    }
    .navbar-menu.open { display: flex; }
    .burger { display: block; }
    .hero h1 { font-size: 2.2rem; }
    .hero .subtitle { font-size: 1rem; }
    .section-title { font-size: 2rem; }
    .form-row { grid-template-columns: 1fr; }
    .outings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .section { padding: 60px 0; }
    .booking-form { padding: 24px; }
}
