/* La Chancelle – Style global */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond&family=Great+Vibes&family=Cormorant+Garamond:wght@500&display=swap');

html, body {
  margin: 0;
  padding: 0;
  font-family: 'EB Garamond', serif;
  background-color: #f0e8db;
  color: #333;
}

.nav-links a.active {
  border-bottom: 2px solid #3e352b;
  padding-bottom: 2px;
  color: #3e352b;
}
/* Scroll top button */
#scrollTopBtn {
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 1000;
  background-color: #5a4e42;
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  display: none;
  transition: opacity 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: #40372e;
}


/* Hero image and header */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 20px;
}

.hero img {
  width: 100%; /* Assure que l'image occupe toute la largeur possible */
  max-width: 1200px; /* Limite la largeur maximale à 1200px */
  height: auto; /* Laisse la hauteur s'ajuster automatiquement pour garder les proportions */
  margin: 0 auto 2rem auto; /* Centre l'image horizontalement et laisse un espace en bas */
  display: block; /* Pour éviter les espaces blancs autour de l'image */
}

#scrollTopBtn svg {
  width: 20px;
  height: 20px;
  fill: white;
  margin-left: auto;
  margin-right: auto;  /* Pour centrer la flèche horizontalement */
  display: block;      /* Assurer que le SVG soit un bloc */
}

.logo {
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin: 0.5rem auto 1rem;
}

/* Hero text */
.hero-text {
  max-width: 700px;
  padding: 0 1rem;
}

.hero-text h1,
.hero-text h2 {
  display: none;
}

.hero-text p {
  font-size: 1.5rem;
  line-height: 1.6;
}

.hero-text p span.tagline,
.hero-text p span.signature {
  font-size: 1.8rem;
  font-style: italic;
  display: block;
  margin: 1rem 0;
}


/* Section layout */
.section {
  padding: 2rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section p {
  font-size: 1.2rem;
  line-height: 1.7;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

/* Unified gallery image styling */
.gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.5);
  z-index: 2;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Navigation */
nav.main-nav {
  background-color: #f4ede2;
  padding: 1rem;
  border-bottom: 1px solid #d9cdbb;
}

nav .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

nav .logo {
  height: 90px;
  width: auto;
  max-width: 100%;
  display: block;
}

nav .nav-links {
  display: flex;
  gap: 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  flex-wrap: wrap;
}

nav .nav-links a {
  text-decoration: none;
  color: #3e352b;
  transition: color 0.3s;
}

nav .nav-links a:hover {
  text-decoration: underline;
}


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

/* Image hover container */
.image-hover-container {
  position: relative;
  overflow: visible;
  z-index: 1;
}

.image-hover-container:hover {
  z-index: 10;
}

.image-hover-container img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
  border-radius: 8px;
  transform-origin: center center;
}

.image-hover-container:hover img {
  transform: scale(1.4);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.image-hover-container .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(60, 50, 40, 0.65);
  color: #fffaf4;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  text-align: left;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  font-family: 'Cormorant Garamond', serif;
  pointer-events: none;
}

.image-hover-container:hover .caption {
  opacity: 1;
}

.menu-toggle {
  display: none;
  background-color: #f4ede2;
  border: 1px solid #d9cdbb;
  padding: 0.4rem 0.9rem;
  font-size: 1.8rem;
  color: #3e352b;
  border-radius: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.menu-toggle:hover {
  background-color: #e6dccc;
}

/* Formulaire de contact */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  font-family: 'Cormorant Garamond', serif;
}

.contact-form label {
  font-weight: 600;
  font-size: 1.1rem;
  color: #3e352b;
}

.contact-form input,
.contact-form textarea {
  padding: 0.6rem 1rem;
  border: 1px solid #d9cdbb;
  border-radius: 8px;
  background-color: #fdfaf6;
  font-size: 1rem;
  font-family: 'EB Garamond', serif;
  resize: vertical;
}

.contact-form {
  padding-left: 1rem;
  padding-right: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #b7a897;
  background-color: #fffefc;
}

.contact-form button {
  align-self: flex-start;
  padding: 0.7rem 1.4rem;
  font-size: 1.1rem;
  background-color: #5a4e42;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #40372e;
}

#contactFloatingBtn {
  position: fixed;
  bottom: 40px; /* Même valeur que la flèche pour l'aligner */
  left: 30px;
  z-index: 999;
  background-color: #5a4e42;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#contactFloatingBtn.show {
  opacity: 0.85;
  pointer-events: auto;
}

#contactFloatingBtn svg {
  width: 22px;
  height: 22px;
  fill: white;
}
#contactFloatingBtn:hover {
  background-color: #40372e;
}


/* Mobile hover override */
@media (hover: none) and (pointer: coarse) {
  .caption {
    display: none !important;
  }
}

/* Responsive text adjustments */
@media (max-width: 1024px) {
  .hero-text p {
    font-size: 1.3rem;
  }
  .hero-text p span.tagline,
  .hero-text p span.signature {
    font-size: 1.5rem;
  }
  .section h2 {
    font-size: 1.7rem;
  }
}

@media (max-width: 600px) {
  .hero-text p {
    font-size: 1.1rem;
  }
  .hero-text p span.tagline,
  .hero-text p span.signature {
    font-size: 1.3rem;
  }
  .section h2 {
    font-size: 1.4rem;
  }
  .section p {
    font-size: 1rem;
  }
}

.image-hover-container.landscape {
  grid-column: span 2;
}

.image-hover-container.full-width {
  grid-column: span 3;
}

@media (max-width: 768px) {
  nav .menu-toggle {
    display: block;
    margin-left: auto;
    margin-right: 1rem;
  }

  nav .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.2rem;
    background-color: #f4ede2;
    padding: 1.5rem 2rem;
    margin: 1rem 1rem 0 auto;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    width: fit-content;
    animation: fadeIn 0.3s ease-in-out;
  }

  nav .nav-links.active {
    display: flex;
  }

  nav .nav-links a {
    width: 100%;
    text-align: right;
    padding: 0.4rem 0;
    border-bottom: 1px solid #e0d6c9;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
  }

  nav .nav-links a:last-child {
    border-bottom: none;
  }
}

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

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr !important;
  }


	
	
  .image-hover-container.landscape,
  .image-hover-container.full-width {
    grid-column: auto !important;
  }

  .image-hover-container img {
    transform: none !important; /* désactive l'effet zoom trop agressif sur mobile */
    box-shadow: none !important;
  }

  .image-hover-container:hover img {
    transform: none !important;
    box-shadow: none !important;
  }
}


@media (max-width: 600px) {
  #scrollTopBtn {
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 1000;
    background-color: #5a4e42;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    display: none;
    transition: opacity 0.3s ease;
    padding: 0; /* Supprimer les paddings */
  }

  #scrollTopBtn svg {
    width: 20px;
    height: 20px;
    fill: white;
    display: block;
    margin: 0 auto;  /* Centrer l'icône horizontalement */
    padding: 0;  /* Réinitialiser les paddings pour éviter tout décalage */
  }

  #scrollTopBtn:hover {
    background-color: #40372e;
  }
}
