/* ===================================================
   Domaine de La Carrière - Styles principaux
   Chambres d'hôtes de charme en Touraine
   =================================================== */

/* === Variables === */
:root {
    --cream: #FDFAF5;
    --cream-dark: #F5EDE3;
    --green-light: #EFF5ED;
    --green-medium: #D4E8D0;
    --green: #4A6741;
    --green-dark: #2D3E28;
    --gold: #C4956A;
    --gold-dark: #A67B4F;
    --gold-light: #F5E6D8;
    --text: #2C3E2C;
    --text-light: #6B7B6B;
    --white: #FFFFFF;
    --border: #E0D8CE;
    --shadow: rgba(45, 62, 40, 0.1);
    --status-disponible: #27AE60;
    --status-reserve: #C0392B;
    --status-bloque: #95A5A6;
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
}

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

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

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text);
    background: var(--cream);
}

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

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

a:hover {
    color: var(--gold);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--green-dark);
}

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

ul { list-style: none; }

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

.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--green-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    margin-bottom: 15px;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* === Top Bar === */
.top-bar {
    background: var(--green-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.85);
}

.top-bar a:hover {
    color: var(--white);
}

.top-bar .separator {
    margin: 0 10px;
    opacity: 0.5;
}

.social-link {
    display: inline-flex;
    align-items: center;
}

/* === Header === */
.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px var(--shadow);
    transition: box-shadow var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.logo-text {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    color: var(--green-dark);
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* === Navigation === */
.nav-list {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-list > li > a {
    padding: 10px 15px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 400;
    border-radius: var(--radius);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
    color: var(--green);
    background: var(--green-light);
}

.nav-cta {
    background: var(--green) !important;
    color: var(--white) !important;
    font-weight: 700 !important;
    padding: 10px 20px !important;
}

.nav-cta:hover {
    background: var(--green-dark) !important;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 10px 30px var(--shadow);
    border-radius: var(--radius);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 100;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    color: var(--text);
    font-size: 0.9rem;
}

.dropdown li a:hover {
    background: var(--green-light);
    color: var(--green);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    width: 30px;
    height: 24px;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--green-dark);
    position: absolute;
    left: 0;
    transition: all var(--transition);
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }

.menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
}

.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);
}

.btn-secondary {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.btn-secondary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--green-dark);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* === Hero === */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-page {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.hero-overlay,
.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 62, 40, 0.55);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-weight: 400;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-page .hero-content h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-page .hero-content p {
    font-size: 1.15rem;
    opacity: 0.9;
}

/* === Intro === */
.intro-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
}

.intro-text p + p {
    margin-top: 15px;
}

/* === Room Cards === */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.room-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(45, 62, 40, 0.15);
}

.room-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.room-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

.room-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--green);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.room-card-body {
    padding: 25px;
}

.room-card-body h3 {
    margin-bottom: 5px;
}

.room-card-floor {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.room-card-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.room-card-price {
    font-size: 1.1rem;
    color: var(--green);
    margin-bottom: 15px;
}

/* === Features === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 3px 15px var(--shadow);
    transition: transform var(--transition);
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--green);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* === CTA Section === */
.section-cta {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Room Detail Page === */
.room-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.room-gallery {
    position: sticky;
    top: 100px;
}

.room-gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 15px;
    cursor: pointer;
}

.room-gallery-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.room-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.room-gallery-thumb {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.room-gallery-thumb:hover,
.room-gallery-thumb.active {
    opacity: 1;
}

.room-gallery-thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.room-info h2 {
    margin-bottom: 20px;
}

.room-info-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.room-info-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.room-info-desc {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.8;
}

.room-info-warning {
    background: #FFF3CD;
    border-left: 4px solid #FFC107;
    padding: 12px 16px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Room Equipment */
.room-equipment {
    padding: 30px 0;
}

.room-equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.room-equipment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.room-equipment-item svg {
    color: var(--green);
    flex-shrink: 0;
}

/* === Pricing Table === */
.tarif-block {
    margin-bottom: 40px;
}

.tarif-block h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--green-light);
}

.tarif-block h3 a {
    color: var(--green-dark);
}

.tarif-block h3 a:hover {
    color: var(--gold);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
}

.pricing-table thead {
    background: var(--green);
    color: var(--white);
}

.pricing-table th {
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.pricing-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.pricing-table tbody tr:hover {
    background: var(--green-light);
}

.pricing-table small {
    color: var(--text-light);
    display: block;
    margin-top: 3px;
}

/* Saisons badges */
.tarifs-saisons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.saison-badge {
    padding: 15px 25px;
    border-radius: var(--radius);
    text-align: center;
}

.saison-basse {
    background: var(--green-light);
    border: 2px solid var(--green-medium);
}

.saison-haute {
    background: var(--gold-light);
    border: 2px solid var(--gold);
}

.saison-badge strong {
    display: block;
    font-size: 1rem;
}

.saison-badge span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.tarif-notes {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 10px var(--shadow);
    margin-top: 30px;
}

.tarif-notes h3 {
    margin-bottom: 15px;
}

.tarif-notes ul {
    list-style: disc;
    padding-left: 20px;
}

.tarif-notes li {
    margin-bottom: 8px;
    color: var(--text-light);
}

/* === Forms === */
.form-fieldset {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 25px;
}

.form-fieldset legend {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--green-dark);
    padding: 0 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.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(74, 103, 65, 0.15);
}

.form-group textarea {
    resize: vertical;
}

.form-note {
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Room Selector */
.room-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.room-option {
    cursor: pointer;
}

.room-option input[type="radio"] {
    display: none;
}

.room-option-content {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    align-items: center;
}

.room-option .room-option-content {
    border-left: 4px solid var(--room-color, var(--border));
}

.room-option input:checked + .room-option-content {
    border-color: var(--room-color, var(--green));
    border-left-color: var(--room-color, var(--green));
    background: var(--green-light);
    box-shadow: 0 0 0 3px rgba(74, 103, 65, 0.15);
}

.room-option-content img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
}

.room-option-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.room-option-info strong {
    font-size: 1.05rem;
    color: var(--green-dark);
}

.room-option-info span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.room-option-price {
    color: var(--green) !important;
    font-weight: 700;
}

/* === Reservation & Contact Layout === */
.reservation-layout,
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: 0 3px 15px var(--shadow);
    margin-bottom: 20px;
}

.sidebar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--green-light);
}

.info-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

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

.sidebar-contact {
    margin-top: 10px;
}

.sidebar-contact a {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Contact Info */
.contact-info-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.contact-info-item svg {
    color: var(--green);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info-item strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.contact-info-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* === Flash Messages === */
.flash {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.flash-success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.flash-error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.flash ul {
    list-style: disc;
    padding-left: 20px;
}

/* === Photo Grid === */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.photo-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform var(--transition);
}

.photo-grid img:hover {
    transform: scale(1.02);
}

/* === Content Text === */
.content-text {
    max-width: 800px;
    margin: 0 auto;
}

.content-text p {
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

.content-text h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-text ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.content-text li {
    margin-bottom: 8px;
    color: var(--text-light);
}

/* === Lightbox === */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

/* === Footer === */
.site-footer {
    background: var(--green-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: var(--white);
    display: block;
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-classification {
    margin-top: 10px;
}

.stars {
    color: var(--gold);
    font-size: 1.2rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.footer-links li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

.footer-social-link:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* === Scroll to Top === */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    box-shadow: 0 3px 15px rgba(74, 103, 65, 0.3);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--green-dark);
    transform: translateY(-3px);
}

/* === Map === */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 3px 15px var(--shadow);
    margin-bottom: 30px;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.directions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.direction-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: 0 3px 15px var(--shadow);
}

.direction-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--green);
}

.direction-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* === Activity Cards (A Voir) === */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.activity-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: 0 3px 15px var(--shadow);
    text-align: center;
    transition: transform var(--transition);
}

.activity-card:hover {
    transform: translateY(-3px);
}

.activity-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.activity-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* === Conditions Page === */
.conditions-section {
    margin-bottom: 30px;
}

.conditions-section h3 {
    margin-bottom: 12px;
    color: var(--green);
}

/* === Calendrier Public (Booking style) === */

.booking-search-bar {
    max-width: 900px;
    margin: 0 auto 20px;
}

.booking-search-fields {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: 0 3px 15px var(--shadow);
}

.booking-field {
    flex: 1;
}

.booking-field label {
    display: block;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    color: var(--text-light);
}

.booking-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: 'Lato', sans-serif;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.booking-field select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(74, 103, 65, 0.15);
}

.booking-field-date {
    cursor: pointer;
}

.booking-field-value {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}

.booking-field-date:hover .booking-field-value,
.booking-field-active .booking-field-value {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(74, 103, 65, 0.15);
}

.booking-field-btn {
    flex: 0 0 auto;
}

.booking-field-btn .btn {
    padding: 12px 28px;
    white-space: nowrap;
}

/* Children ages row */
.booking-children-ages {
    max-width: 900px;
    margin: 12px auto 0;
    background: var(--white);
    padding: 15px 25px;
    border-radius: var(--radius-lg);
    box-shadow: 0 3px 15px var(--shadow);
}

.booking-children-ages-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-children-ages-fields {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.booking-age-field {
    flex: 1;
    min-width: 100px;
}

.booking-age-field label {
    display: block;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.booking-age-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: 'Lato', sans-serif;
    color: var(--text);
    background: var(--white);
}

.booking-age-field select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(74, 103, 65, 0.15);
}

/* Calendar picker (collapsible) */
.booking-calendar-picker {
    max-width: 900px;
    margin: 0 auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.booking-calendar-picker.open {
    max-height: 600px;
    opacity: 1;
    margin-top: 20px;
    margin-bottom: 20px;
}

.booking-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 10px;
}

.booking-cal-arrow {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: background 0.2s;
    line-height: 1;
}

.booking-cal-arrow:hover {
    background: var(--green-light);
}

.booking-cal-period {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--green-dark);
}

.booking-months-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.booking-month-block {
    min-width: 0;
}

.booking-month-title {
    text-align: center;
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--green-dark);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.booking-cal-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
}

.booking-cal-table th {
    padding: 10px 4px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
}

.booking-cal-day {
    padding: 10px 4px;
    text-align: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    position: relative;
    user-select: none;
}

.booking-cal-day:hover:not(.booking-cal-disabled):not(.booking-cal-empty) {
    background: var(--green-light);
    border-radius: var(--radius);
}

.booking-cal-empty {
    cursor: default;
}

.booking-cal-disabled {
    color: #ccc;
    cursor: not-allowed;
    text-decoration: line-through;
}

.booking-cal-today {
    font-weight: 700;
    color: var(--green);
}

.booking-cal-checkin,
.booking-cal-checkout {
    background: var(--green) !important;
    color: var(--white) !important;
    border-radius: var(--radius);
    font-weight: 700;
}

.booking-cal-in-range {
    background: var(--green-light) !important;
    color: var(--green-dark) !important;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--green);
    color: var(--green);
}

.btn-outline:hover {
    background: var(--green);
    color: var(--white);
}

/* Booking results & suggestions */
.booking-no-result {
    text-align: center;
    padding: 30px;
    margin-top: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 3px 15px var(--shadow);
    color: var(--text-light);
}

.booking-no-result h3 {
    margin-bottom: 8px;
    color: var(--text);
}

.booking-suggestion {
    margin-top: 25px;
    padding: 25px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 3px 15px var(--shadow);
}

.booking-suggestion h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--green);
}

/* === Distribution Panel (multi-room) === */
.distribution-panel {
    margin-top: 25px;
    padding: 25px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 3px 15px var(--shadow);
}
.distribution-title {
    text-align: center;
    font-size: 1.2rem;
    color: var(--green);
    margin-bottom: 8px;
}
.distribution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.distribution-room {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--border);
    transition: opacity 0.2s;
}
.distribution-room.room-skipped {
    opacity: 0.5;
    border-style: dashed;
}
.distribution-room-header {
    margin-bottom: 12px;
}
.distribution-room-body {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.distribution-room-body label {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}
.distribution-select {
    padding: 8px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    background: var(--white);
    cursor: pointer;
}
.distribution-select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(74, 103, 65, 0.15);
}

.booking-alt-date {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.booking-alt-date:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.booking-alt-date-header {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.booking-alt-date-nights {
    color: var(--text-light);
    font-size: 0.85rem;
}

.booking-alt-rooms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cal-resa-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1999;
}

.cal-resa-overlay.active {
    display: block;
}

.cal-resa-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: right 0.35s ease;
    overflow-y: auto;
}

.cal-resa-panel.open {
    right: 0;
}

.cal-resa-panel-inner {
    padding: 30px 25px;
}

.cal-resa-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.cal-resa-close:hover {
    color: var(--text);
}

.cal-resa-panel h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--green-light);
}

.cal-resa-selection {
    background: var(--green-light);
    padding: 12px 15px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cal-resa-panel .form-group {
    margin-bottom: 14px;
}

.cal-resa-panel .form-group label {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.cal-resa-panel .form-group input,
.cal-resa-panel .form-group select,
.cal-resa-panel .form-group textarea {
    padding: 10px 12px;
    font-size: 0.9rem;
}

/* === Search Bar (Reservation) === */
.search-bar {
    max-width: 900px;
    margin: 0 auto;
}

.search-bar-fields {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: 0 3px 15px var(--shadow);
}

.search-field {
    flex: 1;
}

.search-field label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text);
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: 'Lato', sans-serif;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(74, 103, 65, 0.15);
}

.search-field-btn {
    flex: 0 0 auto;
}

.search-field-btn .btn {
    padding: 12px 28px;
    white-space: nowrap;
}

/* Search Results */
.search-results-title {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 5px;
    color: var(--green);
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.search-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 3px 15px var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    border-left: 4px solid var(--room-color, var(--green));
}

.search-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(45, 62, 40, 0.15);
}

.search-card-img {
    height: 180px;
    overflow: hidden;
}

.search-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

.search-card-body {
    padding: 20px;
}

.search-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.search-card-meta {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.search-card-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.search-card-price-night {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--green);
}

.search-card-saison {
    font-size: 0.8rem;
    background: var(--gold-light);
    color: var(--gold-dark);
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.search-card-total {
    padding: 10px 0;
    margin-bottom: 12px;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text);
}

.search-no-result {
    text-align: center;
    padding: 30px;
    margin-top: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 3px 15px var(--shadow);
    color: var(--text-light);
}

.search-no-result p {
    margin-bottom: 8px;
}

.search-no-result a {
    font-weight: 700;
}

.btn-select-room.btn-selected {
    background: var(--gold);
    border-color: var(--gold);
}

/* === Responsive === */
@media (max-width: 992px) {
    .booking-months-grid {
        grid-template-columns: 1fr;
    }

    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .room-detail {
        grid-template-columns: 1fr;
    }

    .room-gallery {
        position: static;
    }

    .reservation-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .activity-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .directions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .booking-search-fields {
        flex-direction: column;
        gap: 12px;
    }

    .booking-field-btn {
        width: 100%;
    }

    .booking-field-btn .btn {
        width: 100%;
    }

    .booking-field {
        width: 100%;
    }

    .booking-field label {
        text-align: center;
    }

    .booking-field-value {
        text-align: center;
    }

    .booking-children-ages-fields {
        flex-direction: column;
    }

    .booking-age-field {
        min-width: auto;
    }

    .booking-months-grid {
        grid-template-columns: 1fr;
    }

    .booking-calendar-picker.open {
        max-height: 900px;
    }

    .search-bar-fields {
        flex-direction: column;
        gap: 12px;
    }

    .search-field-btn {
        width: 100%;
    }

    .search-field-btn .btn {
        width: 100%;
    }

    .cal-resa-panel {
        width: 100%;
        max-width: 100vw;
        right: -100%;
    }

    .hero {
        background-attachment: scroll;
        min-height: 60vh;
    }

    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.2rem; }

    .hero-page .hero-content h1 {
        font-size: 2.2rem;
    }

    .section {
        padding: 50px 0;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        padding: 80px 30px 30px;
        box-shadow: -5px 0 30px var(--shadow);
        transition: right var(--transition);
        z-index: 999;
        overflow-y: auto;
    }

    .main-nav.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-list > li > a {
        padding: 15px 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }

    .has-dropdown .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 15px;
        display: none;
    }

    .has-dropdown.open .dropdown {
        display: block;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 5px;
    }

    .room-gallery-main img {
        height: 280px;
    }

    .activity-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-page .hero-content h1 {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .room-option-content {
        flex-direction: column;
    }

    .room-option-content img {
        width: 100%;
        height: 150px;
    }
}
