/* =========================================================
   Le Copacabana — styles.css
   Direction : "Coucher de soleil tropical"
   ========================================================= */

:root {
  /* Palette */
  --sand: #F4E9D8;
  --cream: #FBF7F0;
  --ocean: #1B4965;
  --ocean-dark: #132F44;
  --coral: #F28C5F;
  --coral-dark: #DA6F42;
  --turquoise: #62B6B7;
  --rose: #E91E63;
  --ink: #1C1A17;
  --ink-soft: #4A453E;
  --white: #FFFFFF;

  /* Typography */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-script: "Caveat", cursive;

  /* Sizing */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 30px rgba(27, 73, 101, 0.12);
  --shadow-hover: 0 16px 40px rgba(27, 73, 101, 0.18);

  /* Layout */
  --container-max: 1180px;
  --section-pad-y: clamp(4rem, 8vw, 7rem);
}

/* ---------- Reset & base ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--coral-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--rose);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  color: var(--ocean);
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}


/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: none;
}

.btn--primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(242, 140, 95, 0.4);
}

.btn--primary:hover,
.btn--primary:focus {
  background: var(--coral-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(242, 140, 95, 0.5);
}


/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: var(--white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(19, 47, 68, 0.25) 0%,
    rgba(19, 47, 68, 0.15) 40%,
    rgba(19, 47, 68, 0.65) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem;
  max-width: 780px;
  animation: fadeUp 1.2s ease both;
}

.hero__eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0 0 1.25rem;
  opacity: 0.9;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 7.5rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--white);
  margin: 0;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.hero__script {
  display: block;
  font-family: var(--font-script);
  font-weight: 500;
  font-size: 0.45em;
  color: var(--coral);
  transform: translate(-10%, 10%) rotate(-6deg);
  margin-bottom: -0.3em;
  font-style: normal;
}

.hero__tagline {
  margin: 1.75rem 0 2.5rem;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 30px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero__scroll span {
  display: block;
  width: 4px;
  height: 8px;
  background: var(--white);
  border-radius: 2px;
  animation: scroll 1.8s ease-in-out infinite;
}

@keyframes scroll {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

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


/* ---------- Sections ---------- */

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

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

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

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

.section--ocean h2,
.section--ocean h3 {
  color: var(--white);
}

.section__header {
  max-width: 720px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section__eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--coral);
  margin: 0 0 1rem;
}

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

.section__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin: 0 0 1.25rem;
}

.section__lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
}

.section--ocean .section__lede {
  color: rgba(255, 255, 255, 0.85);
}


/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery__item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

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

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

  .gallery__item--tall {
    grid-row: span 2;
    aspect-ratio: 3 / 4;
  }
}


/* ---------- Specialty blocks ---------- */

.specialty {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
}

.specialty:first-of-type {
  margin-top: 0;
}

.specialty__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
}

.specialty__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.specialty__title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 1rem;
}

.specialty__content p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
}

.specialty__note {
  font-size: 0.95rem;
  margin-top: 1rem;
}

@media (min-width: 800px) {
  .specialty {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .specialty__media {
    aspect-ratio: 4 / 5;
    max-height: 560px;
  }

  .specialty--reverse .specialty__media {
    order: 2;
  }
}


/* ---------- Infos ---------- */

.infos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

@media (min-width: 720px) {
  .infos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.info-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  text-align: center;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.info-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.info-card__icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.info-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.info-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.info-card a {
  color: var(--coral);
}

.info-card a:hover,
.info-card a:focus {
  color: var(--white);
}

.info-card__muted {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(0.95);
}


/* ---------- Social ---------- */

.social-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .social-buttons {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: var(--ocean);
}

.social-btn:hover,
.social-btn:focus {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  color: var(--ocean);
}

.social-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.social-btn--fb .social-btn__icon {
  background: #1877F2;
}

.social-btn--ig .social-btn__icon {
  background: linear-gradient(135deg, #FEDA75 0%, #FA7E1E 25%, #D62976 50%, #962FBF 75%, #4F5BD5 100%);
}

.social-btn__label {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.social-btn__platform {
  font-weight: 600;
  font-size: 1.05rem;
}

.social-btn__handle {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 2px;
}


/* ---------- Footer ---------- */

.footer {
  background: var(--ocean-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.25rem;
  line-height: 1;
}

.footer__script {
  font-family: var(--font-script);
  font-weight: 500;
  color: var(--coral);
  font-size: 0.55em;
  display: inline-block;
  transform: translateY(-0.4em) rotate(-6deg);
  margin-right: 0.15em;
}

.footer__place {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}

.footer__links {
  margin: 0.5rem 0 1.5rem;
  font-size: 0.95rem;
}

.footer__links a {
  color: var(--coral);
  margin: 0 0.5rem;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}


/* ---------- Accessibility: reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
