/*
Pioggiola Nature - Main Stylesheet
*/

/* --- Variables --- */
:root {
    --font-primary: 'Lora', serif;
    --font-secondary: 'Lato', sans-serif;
    --color-dark-green: #2E4034;
    --color-medium-green: #587462;
    --color-beige: #F5F1E9;
    --color-brown: #6D5D4B;
    --color-dark: #333;
    --color-light: #fff;
}

/* --- Global --- */
body {
    font-family: var(--font-secondary);
    color: var(--color-dark);
    background-color: var(--color-light);
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-dark-green);
    font-weight: 700;
}

a {
    color: var(--color-medium-green);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-dark-green);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--color-dark-green);
    color: var(--color-light);
    font-family: var(--font-secondary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--color-medium-green);
    color: var(--color-light);
}

.btn-light {
    background-color: var(--color-beige);
    color: var(--color-dark-green);
}
.btn-light:hover {
    background-color: var(--color-light);
}

/* --- Header --- */
.site-header {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-dark-green);
}

.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.main-navigation li {
    margin-left: 25px;
}

.main-navigation a {
    font-family: var(--font-secondary);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.main-navigation .current-menu-item a,
.main-navigation a:hover {
    border-color: var(--color-medium-green);
}


/* --- Footer --- */
.site-footer {
    background-color: var(--color-dark-green);
    color: var(--color-beige);
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
}
.site-footer p {
    margin: 5px 0;
}

/* --- Page Header --- */
.page-header {
    text-align: center;
    padding: 60px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 60px;
}
.page-header h1 {
    font-size: 48px;
    margin: 0 0 10px 0;
}
.page-header p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Homepage Specifics --- */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-light);
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.4);
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-size: 80px;
    font-weight: 400;
    margin: 0 0 10px 0;
    color: var(--color-light);
}
.hero p {
    font-size: 24px;
    font-family: var(--font-primary);
    font-style: italic;
    margin-bottom: 30px;
}

.text-section {
    padding: 80px 0;
    text-align: center;
}
.text-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}
.text-section p {
    max-width: 700px;
    margin: 0 auto 15px auto;
    font-size: 18px;
    color: #555;
}

.services-section {
    background-color: var(--color-beige);
    padding: 80px 0;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}
.service-item img {
    height: 50px;
    margin-bottom: 15px;
}
.service-item h3 {
    margin: 0 0 10px 0;
}

.cta-section {
    padding: 80px 0;
    text-align: center;
    color: var(--color-light);
    background-size: cover;
    background-position: center;
    position: relative;
}
.cta-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(46, 64, 52, 0.7);
}
.cta-section .container {
    position: relative;
    z-index: 2;
}
.cta-section h2 {
    font-size: 36px;
    color: var(--color-light);
}

/* --- Page Chambres --- */
.room-item {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}
.room-item:nth-child(even) {
    flex-direction: row-reverse;
}
.room-image {
    flex: 1;
}
.room-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}
.room-content {
    flex: 1;
}
.room-content h2 {
    margin-top: 0;
}
.room-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.room-content li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 8px;
}
.room-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-medium-green);
}

/* --- Page Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}
.contact-info p {
    margin-bottom: 20px;
}
.map-placeholder {
    height: 250px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}
.contact-form form input,
.contact-form form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-secondary);
}
.contact-form form button {
    width: auto;
    cursor: pointer;
}

/* --- Page Galerie --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 60px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- Page Activités --- */
.activities-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}
.activity-item {
    background: var(--color-beige);
    border-radius: 5px;
    overflow: hidden;
}
.activity-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
.activity-item h3, .activity-item p {
    padding: 0 20px;
}
.activity-item p {
    padding-bottom: 20px;
}


/* --- Responsive --- */
@media (max-width: 768px) {
    .services-grid, .activities-list {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .room-item, .room-item:nth-child(even) {
        flex-direction: column;
    }
    .main-navigation {
        /* JS nécessaire pour un menu burger fonctionnel */
        display: none;
    }
    .hero h1 {
        font-size: 50px;
    }
    .hero p {
        font-size: 18px;
    }
}

/* --- Styles pour index.php (Blog/Archives) --- */
.page-content {
    padding: 60px 0;
}
.post-excerpt {
    border-bottom: 1px solid #eee;
    padding-bottom: 40px;
    margin-bottom: 40px;
}
.post-excerpt:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.entry-header h2 a {
    color: var(--color-dark-green);
}
.entry-header h2 a:hover {
    color: var(--color-medium-green);
}