/* ===== Variables & base ===== */
:root {
  --gold: #c9a227;
  --gold-light: #b8962e;
  --gold-dark: #8b6914;
  --bg-white: #ffffff;
  --text-dark: #2c2416;
  --text-muted: #5c5244;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  color: var(--text-dark);
  background: var(--bg-white);
  position: relative;
  overflow-x: hidden;
}

/* ===== Fond blanc + étoiles dorées animées ===== */
.stars-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg-white);
  pointer-events: none;
}

.stars-layer {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
}

.stars-layer-1 {
  background-image: radial-gradient(2px 2px at 20px 30px, var(--gold), transparent),
    radial-gradient(2px 2px at 40px 70px, var(--gold-light), transparent),
    radial-gradient(1.5px 1.5px at 90px 40px, var(--gold), transparent),
    radial-gradient(2px 2px at 130px 80px, var(--gold-dark), transparent),
    radial-gradient(1.5px 1.5px at 160px 120px, var(--gold-light), transparent);
  background-size: 200px 200px;
  animation: twinkle 4s ease-in-out infinite;
}

.stars-layer-2 {
  background-image: radial-gradient(1.5px 1.5px at 50px 160px, var(--gold), transparent),
    radial-gradient(2px 2px at 90px 200px, var(--gold-light), transparent),
    radial-gradient(1px 1px at 150px 90px, var(--gold), transparent),
    radial-gradient(2px 2px at 180px 150px, var(--gold-dark), transparent),
    radial-gradient(1.5px 1.5px at 30px 220px, var(--gold-light), transparent);
  background-size: 220px 220px;
  animation: twinkle 5s ease-in-out infinite 0.5s;
}

.stars-layer-3 {
  background-image: radial-gradient(1px 1px at 70px 50px, var(--gold-light), transparent),
    radial-gradient(1.5px 1.5px at 120px 180px, var(--gold), transparent),
    radial-gradient(2px 2px at 200px 60px, var(--gold-dark), transparent),
    radial-gradient(1px 1px at 250px 140px, var(--gold), transparent),
    radial-gradient(1.5px 1.5px at 280px 200px, var(--gold-light), transparent);
  background-size: 300px 300px;
  animation: twinkle 6s ease-in-out infinite 1s;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ===== Contenu au-dessus du fond ===== */
.header,
.main,
.footer {
  position: relative;
  z-index: 1;
}

/* ===== Header & logo ===== */
.header {
  padding: clamp(1rem, 4vw, 1.5rem) 1rem clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}

.header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto 1.25rem;
  padding: 0 0.5rem;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gold-dark);
  text-decoration: none;
  letter-spacing: 0.05em;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 6px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.header-phone:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
}

.header-phone-icon {
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1.25rem;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-icon:hover {
  color: var(--gold);
  transform: scale(1.1);
}

.nav-icon svg {
  width: 26px;
  height: 26px;
}

.nav-contact {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 6px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-contact:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
}

.logo-wrap {
  max-width: 320px;
  margin: 0 auto;
}

.logo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
}

.tagline {
  margin: 0.75rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ===== Galerie ===== */
.main {
  padding: 2rem 1rem 2rem;
}

.gallery {
  margin-bottom: 4rem;
}

.section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1rem, 3vw, 1.75rem);
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(201, 162, 39, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(201, 162, 39, 0.2);
}

.gallery-item .img-wrap {
  flex: 0 0 320px;
  height: 320px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.gallery-item .img-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;
}

.gallery-item figcaption {
  flex: 0 0 auto;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  text-align: center;
  padding: 1rem 0.75rem;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  border-top: 1px solid rgba(201, 162, 39, 0.2);
}

/* ===== Section Contact ===== */
.contact-section {
  max-width: 600px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

.contact-section .section-title {
  margin-bottom: 1.75rem;
}

.contact-info-block {
  text-align: left;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 10px;
}

.contact-info-item {
  margin-bottom: 1rem;
}

.contact-info-item:last-of-type {
  margin-bottom: 1.25rem;
}

.contact-info-label {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  margin-bottom: 0.25rem;
}

.contact-info-value {
  font-size: 1.05rem;
  color: var(--text-dark);
  text-decoration: none;
}

a.contact-info-value:hover {
  color: var(--gold);
  text-decoration: underline;
}

.contact-info-qr {
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  text-align: center;
}

.contact-info-qr-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  margin: 0 0 0.5rem;
}

.contact-info-qr img {
  display: block;
  margin: 0 auto;
  width: 120px;
  height: 120px;
}

.contact-info-qr a:hover img {
  opacity: 0.9;
}

.contact-info-qr-url {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
}

.contact-form input,
.contact-form textarea {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 6px;
  background: #fff;
  color: var(--text-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-captcha-wrap {
  margin: 1rem 0;
}

.contact-captcha-wrap .g-recaptcha {
  display: inline-block;
}

.contact-submit {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gold-dark);
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.contact-submit:hover {
  background: var(--gold);
  transform: translateY(-1px);
}

.contact-submit:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  transform: none;
}

.contact-form-feedback {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
}

.contact-form-feedback--success {
  color: var(--gold-dark);
}

.contact-form-feedback--error {
  color: #c0392b;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 1.5rem 1rem;
  border-top: 1px solid rgba(201, 162, 39, 0.25);
}

.footer p {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold-dark);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .header-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .nav-menu {
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-item .img-wrap {
    height: 280px;
    min-height: 280px;
    flex: 0 0 280px;
  }
}

@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
