/* ===================================
   Page Header
   =================================== */
.page-header {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3e50 0%, #3d5a6e 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 80px;
}

/* Specific background for Maison d'Hôtes page */
.page-header.maison-hote-header {
    background-image: url('../images/538789204.jpg');
}

/* Specific background for Chambres page */
.page-header.chambres-header {
    background-image: url('../images/12668100.jpg');
    background-position: center center;
}

/* Specific background for Gîtes page */
.page-header.gites-header {
    background-image: url('../images/10371592.jpg');
    background-position: center center;
}

/* Specific background for Pièces à Vivre page */
.page-header.pieces-header {
    background-image: url('../images/pieces/escalier-1.jpg');
    background-position: center center;
}

/* Specific background for Jardins page */
.page-header.jardins-header {
    background-image: url('../images/538812287.jpg');
    background-position: center center;
}

/* Specific background for Livre d'Or page */
.page-header.livre-or-header {
    background-image: url('../images/538789204.jpg');
    background-position: center center;
}

/* Specific background for Contact page */
.page-header.contact-header {
    background-image: url('../images/10372372.jpg');
    background-position: center center;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(61, 47, 31, 0.55) 0%, rgba(42, 31, 20, 0.75) 100%);
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.page-header h1 {
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 3px 3px 8px rgba(0,0,0,0.6);
    letter-spacing: 2px;
}

.page-header p {
    font-size: 1.5rem;
    color: #d4b896;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
    letter-spacing: 1px;
    font-weight: 400;
}

/* ===================================
   Page Introduction
   =================================== */
.page-intro {
    padding: 80px 0;
    background: var(--white);
}

.page-intro .intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-intro .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.page-intro p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ===================================
   Chambres Section
   =================================== */
.chambres-section {
    padding: 60px 0 100px;
    background: var(--bg-light);
}

.chambre-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.chambre-card.reverse {
    direction: rtl;
}

.chambre-card.reverse > * {
    direction: ltr;
}

.chambre-images {
    position: relative;
}

.chambre-image-main {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.chambre-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.chambre-card:hover .chambre-image-main img {
    transform: scale(1.05);
}

.chambre-image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
}

.chambre-image-gallery img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.chambre-image-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.chambre-info {
    padding: 3rem;
}

.chambre-info h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.chambre-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.chambre-description {
    margin-bottom: 2rem;
}

.chambre-description p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.chambre-features {
    margin-bottom: 2rem;
}

.chambre-features h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.chambre-features ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.chambre-features li {
    color: var(--text-light);
    font-size: 0.95rem;
}

.chambre-pricing {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.price-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: var(--font-heading);
}

.price-detail {
    font-size: 0.9rem;
    color: var(--text-light);
}

.price-info {
    flex: 1;
}

.price-info p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===================================
   Tarifs & Infos Section
   =================================== */
.tarifs-section {
    padding: 100px 0;
    background: var(--white);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.info-card {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.info-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.info-card ul {
    list-style: none;
}

.info-card ul li {
    padding: 0.5rem 0;
    color: var(--text-light);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.info-card ul li:last-child {
    border-bottom: none;
}

.info-detail {
    font-style: italic;
    color: var(--secondary-color) !important;
    font-weight: 500;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: var(--accent-color);
}

.cta-section .btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.cta-section .btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* ===================================
   Gites Section
   =================================== */
.gites-section {
    padding: 60px 0 100px;
    background: var(--bg-light);
}

.gite-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-bottom: 4rem;
}

.gite-header {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.gite-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gite-content {
    padding: 3rem;
}

.gite-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.gite-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.gite-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.gite-description {
    margin-bottom: 2rem;
}

.gite-description p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.gite-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.gite-feature-group h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.gite-feature-group ul li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.gite-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.gite-price {
    display: flex;
    flex-direction: column;
}

.gite-price .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: var(--font-heading);
}

.gite-price .price-detail {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===================================
   Pieces à Vivre Section
   =================================== */
.pieces-grid {
    display: grid;
    gap: 4rem;
}

.piece-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.piece-card:nth-child(even) {
    direction: rtl;
}

.piece-card:nth-child(even) > * {
    direction: ltr;
}

.piece-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.piece-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.piece-card:hover .piece-image img {
    transform: scale(1.05);
}

.piece-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.piece-content p {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.piece-content .highlight {
    font-style: italic;
    color: var(--secondary-color);
    font-weight: 500;
}

/* ===================================
   Jardins Section
   =================================== */
.jardins-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.jardins-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.jardins-intro .subtitle {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.jardins-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.jardin-feature {
    text-align: center;
    padding: 2rem;
}

.jardin-feature .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.jardin-feature h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.jardin-feature p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===================================
   Livre d'Or Section
   =================================== */
.livre-or-section {
    padding: 60px 0 100px;
    background: var(--bg-light);
}

.testimonials-list {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-item {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.testimonial-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
}

.testimonial-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.testimonial-content {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.testimonial-author {
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    font-style: italic;
}

/* ===================================
   Contact Form
   =================================== */
.contact-section {
    padding: 60px 0 100px;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info-box {
    padding: 2rem;
}

.contact-info-item {
    margin-bottom: 2rem;
}

.contact-info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.contact-info-item p {
    color: var(--text-light);
    line-height: 1.7;
}

.contact-info-item a {
    color: var(--accent-color);
}

.contact-info-item a:hover {
    color: var(--secondary-color);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .chambre-card,
    .contact-grid,
    .piece-card {
        grid-template-columns: 1fr;
    }
    
    .chambre-card.reverse,
    .piece-card:nth-child(even) {
        direction: ltr;
    }
    
    .gite-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .chambre-info,
    .gite-content,
    .contact-form {
        padding: 2rem;
    }
    
    .chambre-features ul {
        grid-template-columns: 1fr;
    }
    
    .chambre-pricing {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .page-header {
        height: 40vh;
        min-height: 300px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .chambre-image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
