/* ============================================
   GLOBAL STYLES - Wedding Photography
   Aesthetic: Luxury Refined / Cinematic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Raleway:wght@200;300;400;500&display=swap');

:root {
  --ivory: #f5f0e8;
  --ivory-dark: #ede6d6;
  --gold: #c9a96e;
  --gold-light: #e2c99a;
  --gold-dark: #a07840;
  --charcoal: #1a1a1a;
  --charcoal-mid: #2d2d2d;
  --warm-gray: #8a8078;
  --white: #fefefe;
  --transition: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--charcoal);
}

body {
  font-family: 'Raleway', sans-serif;
  background-color: var(--charcoal);
  color: var(--ivory);
  overflow-x: hidden;
  cursor: none;
  /* Push content inward from the physical edges of the device on iOS */
  padding-bottom: env(safe-area-inset-bottom);
}

/* Force custom cursor on all interactive elements */
a,
button,
input,
textarea,
select,
[role="button"],
.lang-btn {
  cursor: none !important;
}

/* ---- Custom Cursor ---- */
.cursor {
  position: fixed;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 3 L20 10 L12 13 L9 21 Z' fill='%23c9a96e' stroke='%23c9a96e' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-color: transparent;
  border-radius: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-10%, -10%);
  transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s, background-image 0.3s;
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  pointer-events: none;
  z-index: 9998;
  transform: translate(calc(-50% + 8px), calc(-50% + 8px)) rotate(45deg);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), width 0.3s, height 0.3s;
  opacity: 0.7;
}

.cursor.hover {
  width: 28px;
  height: 28px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 3 L20 10 L12 13 L9 21 Z' fill='%23e2c99a' stroke='%23e2c99a' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.cursor-follower.hover {
  width: 56px;
  height: 56px;
  opacity: 0.4;
}

/* ---- Navigation ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition);
  /* Top padding for iOS notch/island */
  padding-top: env(safe-area-inset-top);
}

nav.scrolled {
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 4rem;
  /* Adjust top padding when scrolled, ensuring safe area */
  padding-top: calc(1rem + env(safe-area-inset-top));
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.nav-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.nav-logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1;
}

.nav-logo-title {
  font-family: 'Raleway', sans-serif;
  font-size: 0.55rem;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  display: none;
}

.nav-logo-img.loaded {
  display: block;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-fast);
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ---- Lang Switcher ---- */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-btn {
  display: flex !important;
  align-items: center;
  gap: 4px;
  cursor: none;
}

.lang-btn::after {
  display: none;
  /* Pas de soulignement sous le bouton langue */
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 1rem;
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 0.5rem 0;
  min-width: 80px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
}

.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  padding: 0.5rem 1rem;
  text-align: center;
}

.lang-option:hover {
  background: rgba(201, 169, 110, 0.1);
  color: var(--gold) !important;
}

.lang-option::after {
  display: none;
}

/* RTL Support Global */
html[dir="rtl"] {
  text-align: right;
}

.rtl-mode .nav-links {
  margin-right: auto;
  margin-left: 0;
}

.rtl-mode .lang-dropdown {
  right: auto;
  left: 0;
}

/* ---- Page Transition ---- */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--charcoal);
  z-index: 9000;
  transform: translateY(-100%);
  pointer-events: none;
}

.page-transition.entering {
  animation: slideDown 0.5s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.page-transition.leaving {
  animation: slideUp 0.5s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(100%);
  }
}

/* ---- Section Titles ---- */
.section-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--charcoal);
}

.section-title em {
  font-style: italic;
  color: var(--gold-dark);
}

/* ---- Gold Divider ---- */
.gold-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.5rem 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 2.5rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  border-radius: 30px;
}

.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
  border: none;
}

.btn-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-dark);
  transform: translateX(-100%);
  transition: transform var(--transition-fast);
}

.btn-gold:hover::before {
  transform: translateX(0);
}

.btn-gold span {
  position: relative;
  z-index: 1;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

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

/* ---- Footer ---- */
footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 4rem 4rem 1.5rem 4rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.footer-brand .brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.footer-brand .brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.footer-nav h4,
.footer-contact h4 {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-weight: 400;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-nav ul a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  flex-direction: column;
}

.social-links {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold);
  transition: background var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}

.social-links a:hover {
  background: var(--gold);
  color: var(--charcoal);
  transform: translateY(-3px);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-contact p {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

.footer-contact a {
  color: var(--gold-light);
  text-decoration: none;
}

.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.1em;
}

/* ---- Reveal Animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ---- Noise Texture Overlay ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

/* ---- Hamburger Menu (mobile) ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: all 0.3s;
  display: block;
}

/* Cache le curseur perso sur les appareils tactiles (qui ne peuvent pas "survoler") */
@media (hover: none) and (pointer: coarse) {

  .cursor,
  .cursor-follower {
    display: none !important;
  }

  body,
  a,
  button,
  input,
  textarea,
  select,
  [role="button"],
  .lang-btn {
    cursor: auto !important;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1.5rem 2rem;
  }

  nav.scrolled {
    padding: 1rem 2rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: auto;
    background: var(--charcoal);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
    z-index: -1;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--charcoal);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 12px;
}

/* ---- Review Modal ---- */
.review-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.review-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.review-modal-content {
  background-color: var(--ivory);
  margin: auto;
  padding: 3rem;
  border: 1px solid var(--gold);
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
  transform: translateY(-20px);
  transition: transform var(--transition-fast);
}

.review-modal.show .review-modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  color: var(--charcoal-mid);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.close-modal:hover,
.close-modal:focus {
  color: var(--gold);
  text-decoration: none;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.review-modal .review-form label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--charcoal);
  text-transform: uppercase;
}

.review-modal .review-form input,
.review-modal .review-form textarea {
  width: 100%;
  padding: 1rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  color: var(--charcoal) !important;
  background: var(--white) !important;
  border: 1px solid rgba(26, 26, 26, 0.1) !important;
  border-radius: 4px !important;
  outline: none;
  transition: border-color var(--transition-fast);
  cursor: text !important;
}

.review-modal .review-form input::placeholder,
.review-modal .review-form textarea::placeholder {
  color: rgba(26, 26, 26, 0.4) !important;
}

.review-modal .review-form input:focus,
.review-modal .review-form textarea:focus {
  border-color: var(--gold) !important;
}

.review-modal .review-form textarea {
  resize: vertical;
  min-height: 120px;
}