* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,*::before,*::after {
    box-sizing: border-box;
}

:root {
    --primary: #2c5f2d;
    --primary-light: #4a7c59;
    --secondary: #d4a373;
    --text: #333;
    --text-light: #666;
    --bg: #fff;
    --bg-light: #f8f6f3;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
}

/* ========== Header & Navigation ========== */
header {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Style pour le lien actif du menu - Desktop */
.nav-links a.active {
    background: var(--primary);
    color: white;
    padding: 0 0;
    border-radius: 5px;
    font-weight: 600;
	padding: 0.5rem 1rem;
}

/* Menu Hamburger - Checkbox Hidden */
.menu_hamburger {
    position: absolute;
    left: -100vw;
}

.menu_hamburger + label {
    cursor: pointer;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0.5rem;
    display: none;
}

.menu_hamburger + label span {
    background-color: var(--primary);
    width: 25px;
    height: 3px;
    position: relative;
    transition: background 10ms 300ms;
}

.menu_hamburger + label span::before,
.menu_hamburger + label span::after {
    transition: top 300ms 350ms, transform 300ms 50ms;
    position: absolute;
    background-color: var(--primary);
    width: inherit;
    height: inherit;
    content: "";
}

.menu_hamburger + label span::before {
    top: -8px;
}

.menu_hamburger + label span::after {
    top: 8px;
}

.menu_hamburger:checked + label span {
    background: unset;
}

.menu_hamburger:checked + label span::after,
.menu_hamburger:checked + label span::before {
    transition: top 300ms 50ms, transform 300ms 350ms;
    top: 0;
}

.menu_hamburger:checked + label span::before {
    transform: rotate(45deg);
}

.menu_hamburger:checked + label span::after {
    transform: rotate(-45deg);
}

/* ========== Hero Section ========== */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('/images/gite-vercors.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* ========== Sections ========== */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}
/* ========== About ========== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 15px;
}


.labels {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
}

/* ========== Rooms ========== */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.room-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.room-card:hover {
    transform: translateY(-5px);
}

.room-image {
    height: 250px;
    background: var(--bg-light);
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-content {
    padding: 1.5rem;
}

.room-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.room-specs {
    list-style: none;
    color: var(--text-light);
    font-size: 0.9rem;
}

.room-specs li {
    margin: 0.5rem 0;
}

/* ========== Table d'hôtes ========== */
.table-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    width: 100%;
}

.table-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.table-image {
    border-radius: 10px;
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 100%;
}

.table-image img {
    width: 100% !important;
    height: auto !important;
    display: block;
    max-width: 100%;
    object-fit: cover;
}

/* ========== Tarifs ========== */
.tarifs-container {
    max-width: 900px;
    margin: 0 auto;
}

.tarifs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 3rem;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tarifs-table th,
.tarifs-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.tarifs-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.tarifs-table tr:hover {
    background: var(--bg-light);
}

.tarifs-repas {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.tarifs-repas h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.repas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.repas-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.tarifs-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-left: 4px solid var(--primary);
    border-radius: 5px;
}

/* ========== Contact ========== */

.form-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 0;
}

.form-message p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.5;
}

.submit-btn {
    display: inline-flex;
    width: auto;
    padding: 0.8rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    margin: 0 auto; /* Centre le bouton horizontalement */
}


.submit-btn:hover {
    background: var(--primary-light);
}


.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.contact-item {
    margin: 1.5rem 0;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--primary-light);
}

.map-container {
    margin-top: 3rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ========== Footer ========== */
footer {
    background: var(--primary);
    color: white;
    padding: 3rem 2rem 1rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin: 2rem 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

/* ========== Responsive / Mobile ========== */
@media (max-width: 768px) {
    /* Afficher le burger menu */
    .menu_hamburger + label {
        display: flex;
    }
    
    /* Menu mobile coulisse depuis le haut */
    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        padding: 1.5rem 2rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        gap: 0;
        z-index: 999;
        text-align: right;
        animation: slideDown 0.3s ease forwards;
    }
    
    /* Animation d'apparition depuis le haut */
    @keyframes slideDown {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    /* Animation de disparition */
    .nav-links.closing {
        animation: slideUp 0.3s ease forwards;
    }
    
    @keyframes slideUp {
        from {
            transform: translateY(0);
            opacity: 1;
        }
        to {
            transform: translateY(-100%);
            opacity: 0;
        }
    }
    
    /* Afficher le menu quand checkbox checked */
    .menu_hamburger:checked ~ .nav-links {
        display: flex;
    }
    
    .nav-links li {
        text-align: right;
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        display: block;
        padding: 0.8rem 0;
        text-decoration: none;
        color: var(--text);
        font-weight: 500;
        transition: all 0.3s;
        text-align: right;
    }
    
    .nav-links a:hover {
        color: var(--primary);
    }
    
    /* Réinitialiser le style actif pour mobile - Souligné uniquement sous le texte */
	.nav-links a.active {
		background: none;
		color: var(--primary);
		font-weight: 600;
		border-radius: 0;
		border-bottom: 3px solid var(--primary);
		padding-bottom: 0.3rem;
		display: inline-block;
		width: fit-content;
		padding: 0 0;
	}

    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    .tarifs-table {
        font-size: 0.9rem;
    }
    
    .tarifs-table th,
    .tarifs-table td {
        padding: 0.5rem;
    }
}