/* ==============================
   style.css – Gîte Marguerite
   ============================== */

:root {
  --vert-principal: #5a8f56;
  --vert-clair: #a9d18e;
  --gris-fond: #f7f7f7;
  --gris-texte: #333;
  --blanc: #fff;
  --ombre: 0 2px 8px rgba(0,0,0,0.1);
  --arrondi: 10px;
  --transition: all 0.3s ease;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--gris-texte);
  background-color: var(--gris-fond);
  line-height: 1.6;
}

a {
  color: var(--vert-principal);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--vert-clair); }

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

/* HEADER */
header {
  background: var(--blanc);
  box-shadow: var(--ombre);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  height: 80px;
}


.hero {
      position: relative;
      background: url("../assets/entree-gite.jpg") center/cover no-repeat;
      height: 60vh;
      display:flex;
      align-items:center;
      justify-content:center;
      color: var(--blanc);
      text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
  
  /*
.hero h1 {
      font-size: 3rem;
      margin:0;
}
*/

.hero-text {

      background-color: rgba(0,0,0,0.4);
      border-radius: 8px;

    }
    
.hero h1 {
      font-size: 3rem;
      /*background-color: rgba(0,0,0,0.4);*/
      padding: 1rem 2rem;
      border-radius: 8px;
    }
    
section {
  padding: 40px 0;
  background: var(--blanc);
  margin-bottom: 20px;
  border-radius: var(--arrondi);
  box-shadow: var(--ombre);
}    
    
.section {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section:nth-child(even) {
  background-color: var(--vert-clair);
}

.section h2 {
  color: var(--vert-principal);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 1rem;
}

.gallery img {
  width:100%;
  height:auto;
  display:block;
  border-radius:4px;
}    
    
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav a {
  font-weight: 500;
  padding: 5px 8px;
  border-radius: var(--arrondi);
}

nav a:hover,
nav a.active {
  background: var(--vert-principal);
  color: var(--blanc);
}

/* TITRES ET BLOCS */
.page-header {
  background: var(--vert-principal);
  color: var(--blanc);
  padding: 50px 0 40px;
  text-align: center;
}

h1, h2, h3 {
  font-family: "Merriweather", serif;
}





/* TABLEAUX */
.tarifs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.tarifs-table th, .tarifs-table td {
  border: 1px solid #ddd;
  padding: 10px 15px;
  text-align: left;
}

.tarifs-table th {
  background: var(--vert-principal);
  color: var(--blanc);
}

/* FORMULAIRES */
form {
  max-width: 600px;
  margin: 20px auto;
}

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

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

input, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: var(--arrondi);
  font-size: 1rem;
}

input:focus, textarea:focus {
  border-color: var(--vert-principal);
  outline: none;
}

.btn {
  background: var(--vert-principal);
  color: var(--blanc);
  border: none;
  padding: 10px 20px;
  border-radius: var(--arrondi);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}
.btn:hover {
  background: var(--vert-clair);
  color: var(--gris-texte);
}

/* GALERIE */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-flow: dense;
  gap: 15px;

}
.gallery-grid img {
  width: 100%;
  #max-height: 300px;
  border-radius: var(--arrondi);
  box-shadow: var(--ombre);
  transition: transform 0.3s ease;
}
.gallery-grid img:hover {
  transform: scale(1.03);
}

/* ALENTOURS */
.alentours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.alentours-item img {
  width: 100%;
  border-radius: var(--arrondi);
  box-shadow: var(--ombre);
  margin-bottom: 10px;
}

/* MAP */
.map-img {
  width: 100%;
  border-radius: var(--arrondi);
  box-shadow: var(--ombre);
}

/* FOOTER */
footer {
  background: var(--vert-principal);
  color: var(--blanc);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
}
footer a {
  color: var(--blanc);
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .header-content {
    flex-direction: column;
    gap: 10px;
  }
}

.photo {
    width: 200px;
    height: 120px;
}

/* Resize images */
.photo img {
    width: 100%;
    height: auto;
}
