/* styles.css */
@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Montserrat:wght@300;400;500&display=swap");

:root {
  --primary-color: #8b5a2b; /* Couleur Terre/Grès */
  --bg-color: #fafafa;
  --bg-secondary: #efebe4;
  --text-color: #333333;
  --text-light: #666666;
  --font-title: "Lora", serif;
  --font-text: "Montserrat", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-text);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  font-weight: 600;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- HEADER & NAVIGATION --- */
header {
  background-color: var(--bg-color);
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-color);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: var(--primary-color);
}

.burger-menu {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-color);
}

/* --- LAYOUT GLOBAL --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 5%;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

/* --- HERO SECTION (Accueil) --- */
.hero {
  height: 80vh;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("assets/Photos site internet/maison_1_resultat.webp");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.hero h2 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
}

/* --- SECTIONS SPÉCIFIQUES --- */
.split-section {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 4rem;
}

.split-section > * {
  flex: 1;
}

.image-container img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.text-box {
  background-color: #f0e9f2;
  padding: 3.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

/* --- NOUVELLES GRILLES PHOTO EN DEUX LIGNES (Création) --- */
.photo-grid-two-rows {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 photos par ligne */
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-thumb {
  width: 100%;
  height: 220px; /* Taille réduite et harmonieuse */
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.gallery-thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(139, 90, 43, 0.2);
}

/* Encadré d'information discret sous les galeries */
.gallery-info-box {
  text-align: center;
  margin-top: 1.2rem;
}

.gallery-info-box p {
  font-family: var(--font-text);
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
  display: inline-block;
  padding: 0.4rem 1.5rem;
  background-color: var(--bg-secondary);
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* --- DISPOSITION HARMONIEUSE POUR LES OYAS --- */
.oya-images-layout {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Une grille 2x2 parfaite pour les 4 photos */
  gap: 1rem;
}

.oya-img-item {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* --- BOUTONS : Popup Oya et "Voir toutes les photos" --- */
/* --- BOUTONS DYNAMIQUES ("Voir toutes les photos", "Popup Oya") --- */
.btn-popup-trigger {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.8rem 1.8rem;
  font-family: var(--font-text);
  font-weight: 600; /* Un peu plus gras pour mieux ressortir */
  font-size: 0.95rem;
  border-radius: 6px; /* Bords très légèrement plus arrondis */
  cursor: pointer;

  /* L'astuce est ici : une transition avec un léger effet d'élasticité */
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* L'effet quand la souris passe sur le bouton */
.btn-popup-trigger:hover {
  background-color: var(--primary-color);
  color: white;

  /* 1. Le bouton lévite vers le haut */
  transform: translateY(-4px);

  /* 2. Une belle ombre marron/grès apparaît en dessous */
  box-shadow: 0 8px 20px rgba(139, 90, 43, 0.35);
}

/* L'effet exact au moment où l'on clique */
.btn-popup-trigger:active {
  /* Le bouton s'enfonce physiquement */
  transform: translateY(1px);
  box-shadow: 0 2px 5px rgba(139, 90, 43, 0.2);
}

.btn-popup-trigger:hover {
  background-color: var(--primary-color);
  color: white;
}

/* --- NOUVELLE GRILLE POUR LA CUISSON ANAGAMA --- */
.anagama-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 colonnes */
  gap: 1.5rem;
  margin-top: 2rem;
}

/* --- FENÊTRE POPUP MODAL (OYAS - COMMENT ÇA FONCTIONNE) --- */
.popup-modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.popup-modal.show {
  display: flex;
}

.popup-content {
  background-color: white;
  padding: 3rem;
  border-radius: 12px;
  max-width: 650px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-popup {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.3s;
}

.close-popup:hover {
  color: var(--primary-color);
}

.popup-content h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 2rem;
  text-align: center;
}

.popup-body-text p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.7;
}

.popup-contact-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.3s;
  text-decoration: none;
}

.popup-contact-btn:hover {
  background-color: #6b4420;
}

/* --- MODAL LIGHTBOX GLOBAL (AVEC CARROUSEL DIRECTIONNEL) --- */
.modal {
  display: none;
  position: fixed;
  z-index: 2500;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.modal.show {
  display: flex;
}

.modal-image-wrapper {
  max-width: 80%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-content {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 6px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

#modal-caption {
  color: white;
  margin-top: 1rem;
  font-family: var(--font-text);
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.modal-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    background 0.3s,
    transform 0.2s;
}

.modal-nav-btn:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 3.5rem;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 2600;
}

.close-modal:hover {
  color: var(--primary-color);
}

/* --- STAGES & AUTRES STYLES --- */
.stages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.stage-card {
  background: white;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--primary-color);
}

.stage-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.stage-card ul {
  list-style-type: none;
  margin-top: 1.5rem;
}

.stage-card li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.stage-card li::before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* --- FORMULAIRE NETLIFY --- */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input,
textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-text);
}

button[type="submit"] {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 4px;
  transition: background 0.3s;
}

button[type="submit"]:hover {
  background-color: #6b4420;
}

/* --- FOOTER --- */
footer {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

/* --- GRILLE PHILOSOPHIE (4 BOX) --- */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
  gap: 1.5rem;
  margin-top: 2rem;
}

.philo-box {
  background-color: #e9f0e9;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.philo-box:hover {
  transform: translateY(
    -5px
  ); /* Petit effet de soulèvement au passage de la souris */
}

.philo-box h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.philo-box p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
  .burger-menu {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    padding: 2rem;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  }

  nav ul.show {
    display: flex;
  }

  .split-section {
    flex-direction: column;
  }

  .photo-grid-two-rows,
  .anagama-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 photos par ligne sur mobile */
  }

  .oya-images-layout {
    grid-template-columns: 1fr; /* 1 photo par ligne sur téléphone */
  }

  .philosophy-grid {
    grid-template-columns: 1fr; /* 1 colonne sur mobile */
  }

  .modal-nav-btn {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }
}

/* Styles pour la vidéo */
.video-wrapper {
  transition: transform 0.3s ease;
}

.video-wrapper:hover {
  transform: scale(1.02);
}

/* S'assure que le bouton play ne bloque pas le clic */
.play-button {
  pointer-events: none;
  transition: background 0.3s ease;
}

.video-wrapper:hover .play-button {
  background: rgba(255, 0, 0, 1);
}
/* --- SÉCURITÉ FORMULAIRE --- */

/* Cacher le pot de miel anti-robot aux vrais visiteurs */
.hidden-honeypot {
  display: none;
}

/* Couleur du titre du formulaire */
.contact-title {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}
