/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  /* Palette */
  --navy:           #0B1F3A;
  --navy-dark:      #071428;
  --navy-mid:       #122847;
  --gold:           #C8A46B;
  --gold-dark:      #A8864F;
  --gold-light:     #DFC08A;
  --white:          #FFFFFF;
  --off-white:      #F7F4EF;
  --text-muted:     rgba(255, 255, 255, 0.72);
  --text-dark:      #1a1a1a;
  --text-mid:       #4a4a4a;

  /* Typo */
  --font-title: 'Cinzel', serif;
  --font-body:  'Montserrat', sans-serif;

  /* Layout */
  --container:      1140px;
  --section-v:      6rem;
  --section-v-sm:   4rem;

  /* Transitions */
  --ease:           0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

address {
  font-style: normal;
}


/* ============================================================
   UTILITAIRES
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-v) 0;
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--light {
  background: var(--off-white);
}

.section__eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section__eyebrow--gold {
  color: var(--gold-light);
}

.section__eyebrow--center {
  text-align: center;
}

.section__title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
}

.section__title--center {
  text-align: center;
}

.section--navy .section__title,
.section--navy .section__eyebrow {
  color: var(--gold);
}

.section__body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
  max-width: 54ch;
}

.separator {
  background: var(--navy);
  height: 6px;
}


/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 1px;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

/* Doré plein — sur fond clair */
.btn--primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn--primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

/* Contour navy — sur fond clair */
.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* Doré plein — sur fond navy */
.btn--gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

/* Contour blanc — sur fond navy */
.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
}

.btn[data-coming-soon] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  transition: background var(--ease), padding var(--ease), box-shadow var(--ease);
}

/* État scrollé — injecté via JS */
.navbar.scrolled {
  background: var(--navy);
  padding: 1rem 2.5rem;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

.navbar__logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: height var(--ease);
}

.navbar.scrolled .navbar__logo img {
  height: 40px;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.navbar__links a {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--ease);
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--ease);
}

.navbar__links a:hover {
  color: var(--gold);
}

.navbar__links a:hover::after {
  width: 100%;
}

/* Bouton CTA réserver dans la navbar */
.navbar__cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 1px;
  transition: background var(--ease) !important;
}

.navbar__cta:hover {
  background: var(--gold-dark) !important;
}

.navbar__cta::after {
  display: none !important;
}

/* Lien "Menu" — doré par défaut */
.navbar__menu-link {
  color: var(--gold) !important;
}

/* Burger mobile */
.navbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform var(--ease), opacity var(--ease);
}

.navbar__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.navbar__burger.open span:nth-child(2) { opacity: 0; }
.navbar__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ============================================================
   MENU MOBILE
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--navy-dark);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-menu a {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: var(--white);
  letter-spacing: 0.05em;
  transition: color var(--ease);
}

.mobile-menu a:hover {
  color: var(--gold);
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  /* Léger zoom au chargement */
  transform: scale(1.04);
  animation: heroZoom 8s var(--ease) forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  /* Dégradé : plus sombre en bas pour faciliter la lecture du texte */
  background: linear-gradient(
    to bottom,
    rgba(7, 20, 40, 0.45) 0%,
    rgba(7, 20, 40, 0.65) 60%,
    rgba(7, 20, 40, 0.82) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: heroFade 1.2s ease 0.3s both;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--font-title);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero__cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Flèche scroll */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  opacity: 0.75;
  animation: bounce 2s ease infinite;
  transition: opacity var(--ease);
}

.hero__scroll:hover {
  opacity: 1;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}


/* ============================================================
   ABOUT
   ============================================================ */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about__image {
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}

.about__image::before {
  /* Cadre doré décoratif décalé */
  content: '';
  position: absolute;
  top: -1rem;
  left: -1rem;
  width: calc(100% - 2rem);
  height: calc(100% - 2rem);
  border: 1px solid var(--gold);
  z-index: 1;
  pointer-events: none;
}

.about__image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.about__image:hover img {
  transform: scale(1.03);
}


/* ============================================================
   BANDEAU SLOGAN
   ============================================================ */
.slogan-band {
  background: var(--navy);
  padding: 2.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slogan-band__frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  padding: 1.25rem 3rem;
  position: relative;
}

/* Petits coins décoratifs aux quatre angles */
.slogan-band__frame::before,
.slogan-band__frame::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--gold);
  border-style: solid;
}

.slogan-band__frame::before {
  top: -4px;
  left: -4px;
  border-width: 1px 0 0 1px;
}

.slogan-band__frame::after {
  bottom: -4px;
  right: -4px;
  border-width: 0 1px 1px 0;
}

.slogan-band__text {
  font-family: var(--font-title);
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-align: center;
}


/* ============================================================
   GALLERY
   ============================================================ */
.gallery__grid {
  display: grid;
  /* 3 colonnes desktop, comme Mifan */
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  margin-left: auto;
  margin-right: auto;
}

.gallery__item {
  overflow: hidden;
  position: relative;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
  display: block;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

/* Première image plus grande : 2 colonnes de large */

.gallery__cta {
  text-align: center;
  margin-top: 2.5rem;
}


/* ============================================================
   LOCATION / CARTE
   ============================================================ */
.location__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.location__address {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-mid);
  margin-bottom: 1.75rem;
}

.location__hours {
  margin-bottom: 1.75rem;
}

.location__hours-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.location__hours p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-mid);
}

.location__closed {
  color: #888 !important;
  font-size: 0.85rem !important;
}

.location__phone {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color var(--ease);
}

.location__phone:hover {
  color: var(--gold-dark);
}

#leaflet-map {
  height: 420px;
  border-radius: 1px;
  border: 1px solid rgba(11, 31, 58, 0.12);
  /* Petite ombre discrète */
  box-shadow: 0 4px 32px rgba(11, 31, 58, 0.1);
}


/* ============================================================
   CONTACT
   ============================================================ */
.contact__inner {
  max-width: 760px;
  margin: 0 auto;
}

.contact__header {
  margin-bottom: 3rem;
}

.contact__subtitle {
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-mid);
  max-width: 50ch;
  margin: 0 auto;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form__group label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}

.form__group label span {
  color: var(--gold-dark);
}

.form__group input,
.form__group select,
.form__group textarea {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--off-white);
  border: 1px solid rgba(11, 31, 58, 0.15);
  border-radius: 1px;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  -webkit-appearance: none;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 164, 107, 0.15);
}

.form__group textarea {
  resize: vertical;
  min-height: 140px;
}

.form__group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230B1F3A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form__error {
  font-size: 0.78rem;
  color: #c0392b;
  min-height: 1em;
}

.form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form__required-note {
  font-size: 0.75rem;
  color: var(--text-mid);
}

.form__feedback {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.4em;
}

.form__feedback.success {
  color: #1a6e3a;
}

.form__feedback.error {
  color: #c0392b;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-dark);
  color: var(--white);
}

.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand img {
  opacity: 0.85;
}

.footer__info {
  font-size: 0.85rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.footer__info a {
  color: var(--gold);
  transition: color var(--ease);
}

.footer__info a:hover {
  color: var(--gold-light);
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  transition: border-color var(--ease), color var(--ease);
}

.footer__social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer__bottom {
  text-align: center;
  padding: 1.2rem 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.3);
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--ease);
}

.footer__bottom a:hover {
  color: var(--gold);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about__image {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
  }

  .about__image::before {
    display: none;
  }

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

  #leaflet-map {
    height: 320px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__social {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --section-v: var(--section-v-sm);
  }

  /* Navbar */
  .navbar {
    padding: 1.25rem 1.5rem;
  }

  .navbar.scrolled {
    padding: 0.9rem 1.5rem;
  }

  .navbar__links {
    display: none;
  }

  .navbar__burger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  /* Galerie */
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__item:first-child {
    grid-column: span 2;
  }

  /* Formulaire */
  .form__row {
    grid-template-columns: 1fr;
  }

  .form__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Hero CTA */
  .hero__cta-group {
    flex-direction: column;
    align-items: center;
  }

}

@media (max-width: 480px) {
  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .gallery__item:first-child {
    grid-column: span 1;
  }

  .gallery__item:first-child img {
    aspect-ratio: 3/4;
  }
}


/* ============================================================
   ACCESSIBILITÉ
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
