/*
Theme Name: Chalet Montagne
Theme URI: https://www.chalet-montagne.com
Description: Thème WordPress moderne et élégant pour propriétaires de studios, appartements et chalets à la montagne. Compatible avec le plugin Chalet-Montagne.com Tools V2.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.7
Requires PHP: 8.1
Author: Chalet Montagne
Author URI: https://www.chalet-montagne.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chaletmontagne
Domain Path: /languages
Tags: vacation-rental, mountain, responsive, translation-ready, custom-menu, featured-images

Chalet Montagne WordPress Theme
Copyright (C) 2025, Chalet Montagne
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 - Reset & Normalize
2.0 - Typography
3.0 - Layout
4.0 - Header
5.0 - Navigation
6.0 - Content
7.0 - Footer
8.0 - Responsive
--------------------------------------------------------------*/

/*--------------------------------------------------------------
1.0 - Reset & Normalize
--------------------------------------------------------------*/
* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text, #333);
    background: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*--------------------------------------------------------------
2.0 - Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--color-dark, #1B2838);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: #2C5F7C;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1a3a4a;
}

/*--------------------------------------------------------------
3.0 - Layout
--------------------------------------------------------------*/
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-content {
    min-height: 60vh;
    padding: 40px 0;
}

/*--------------------------------------------------------------
4.0 - Header
--------------------------------------------------------------*/
.site-header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.site-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    min-height: 80px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.site-title a {
    color: #2C5F7C;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: #1a3a4a;
}

.site-description {
    margin: 0;
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 400;
}

/*--------------------------------------------------------------
5.0 - Navigation
--------------------------------------------------------------*/
.main-navigation {
    margin: 0;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px;
    align-items: center;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 28px 20px;
    color: var(--color-charcoal, #2F3640);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: #2C5F7C;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-navigation a:hover {
    color: #2C5F7C;
    background: rgba(44, 95, 124, 0.05);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after {
    transform: scaleX(1);
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: #2C5F7C;
}

/*--------------------------------------------------------------
6.0 - Content
--------------------------------------------------------------*/
.content-area {
    margin-bottom: 40px;
}

.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    margin-bottom: 10px;
}

.entry-content {
    line-height: 1.8;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

/*--------------------------------------------------------------
7.0 - Footer
--------------------------------------------------------------*/
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.site-info {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.site-info a {
    color: #ecf0f1;
}

/*--------------------------------------------------------------
8.0 - Responsive
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .site-branding {
        flex-direction: column;
        text-align: center;
    }
}
