/* =============================================
   ILES D'AZUR — Styles
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Raleway', sans-serif;
  color: #1a2744;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}

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

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

/* --- Variables --- */
:root {
  --navy: #0c1b33;
  --azur: #1b6ca8;
  --gold: #d4a841;
  --cream: #faf6ef;
  --white: #ffffff;
  --text: #1a2744;
  --text-muted: #6b7a8d;
  --border: #e2e2e2;
}

/* --- Navigation --- */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  transition: all 0.5s ease;
}

.nav-fixed.scrolled {
  background: rgba(12, 27, 51, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 190px;
  width: auto;
  transition: height 0.5s ease;
}

.nav-fixed.scrolled .nav-logo img {
  height: 62px;
}

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

.nav-link {
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s, text-shadow 0.3s;
}

.nav-link:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(212, 168, 65, 0.5);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1.5rem 1.5rem;
  background: rgba(12, 27, 51, 0.95);
  backdrop-filter: blur(12px);
}

.mobile-menu.open {
  display: flex;
}

/* --- Hero --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12,27,51,0.6), rgba(12,27,51,0.3), rgba(12,27,51,0.7));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 900px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.hero-title-second {
  color: #fff;
  font-size: 2rem;
}

.hero-title-second .gold {
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  margin-top: 1rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* --- Buttons --- */
.btn-gold {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-gold:hover {
  box-shadow: 0 8px 30px rgba(212,168,65,0.4);
  transform: scale(1.05);
}

.btn-gold-outline {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
}

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

/* --- Section --- */
.section {
  padding: 6rem 1.5rem;
}

.section-cream {
  background: var(--cream);
}

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

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-narrow {
  max-width: 960px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 1rem;
}

.section-divider {
  width: 5rem;
  height: 4px;
  background: var(--gold);
  margin: 0 auto 3rem;
}

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

/* --- Agence --- */
.agence-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.agence-text strong {
  color: var(--navy);
}

.agence-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.agence-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.agence-item .icon {
  font-size: 3rem;
}

.agence-item .label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
}

/* --- Excursion Cards --- */
.excursions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.excursion-card {
  background: var(--white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.5s;
}

.excursion-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  transform: translateY(-8px);
}

.excursion-img-wrap {
  overflow: hidden;
}

.excursion-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.7s;
}

.excursion-card:hover img {
  transform: scale(1.1);
}

.card-body {
  padding: 1.5rem;
}

.excursion-duration {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(27,108,168,0.1);
  color: var(--azur);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.card-body h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.card-body .subtitle {
  font-size: 0.85rem;
  color: var(--azur);
  font-weight: 500;
  margin-bottom: 1rem;
}

.card-body .description {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.card-body .option {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* --- Pricing --- */
.pricing-card {
  background: var(--white);
  border-radius: 0.5rem;
  padding: 2.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
  text-align: center;
  max-width: 500px;
  margin: 2rem auto 0;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--azur), var(--gold), var(--azur));
}

.pricing-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.pricing-amount {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--navy);
}

.pricing-sub {
  color: var(--text-muted);
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.pricing-details {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.pricing-row span:last-child {
  font-weight: 700;
  color: var(--navy);
}

.pricing-total {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.pricing-total span:last-child {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

/* --- Options --- */
.options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.option-card {
  flex: 0 0 calc(25% - 0.94rem);
  min-width: 0;
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
  cursor: default;
}

.option-card:hover {
  transform: translateY(-10px) scale(1.025);
  box-shadow: 0 24px 56px rgba(0,0,0,0.32);
}

.option-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.option-card:hover > img {
  transform: scale(1.1);
}

.option-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy), var(--azur));
}

.option-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 27, 51, 0.96) 0%,
    rgba(12, 27, 51, 0.55) 40%,
    transparent 68%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.1rem 1.2rem;
  transition: background 0.4s ease;
}

.option-card:hover .option-card-overlay {
  background: linear-gradient(
    to top,
    rgba(12, 27, 51, 0.98) 0%,
    rgba(12, 27, 51, 0.65) 50%,
    transparent 75%
  );
}

.option-card h4 {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Raleway', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.35;
  margin: 0;
}

.option-price {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.25rem;
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.3rem;
}

/* --- Contact Form --- */
.contact-form {
  margin-top: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,168,65,0.15);
}

textarea.form-input {
  resize: none;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: #fff;
  padding: 4rem 1.5rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.footer-logo img {
  height: 130px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-text {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  font-family: 'Raleway', sans-serif;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: color 0.3s;
}

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

.footer-contact p {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
}

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

.gallery-item {
  overflow: hidden;
  border-radius: 0.5rem;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-tall {
  grid-row: span 2;
}

.gallery-wide {
  grid-column: span 2;
}

/* --- Screen reader only (accessibility) --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .agence-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .option-card {
    flex: 0 0 calc(33.33% - 0.84rem);
  }
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .nav-logo img {
    height: 140px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .nav-logo img {
    height: 70px;
  }
  .nav-fixed.scrolled .nav-logo img {
    height: 36px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-title-second {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section {
    padding: 4rem 1.5rem;
  }
  .section-title {
    font-size: 2rem;
  }

  .agence-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .excursions-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .option-card {
    flex: 0 0 calc(50% - 0.625rem);
  }

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

  .footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-title-second {
    font-size: 1rem;
  }
  .pricing-amount {
    font-size: 2.5rem;
  }
}
