@font-face {
  font-family: 'Super Joyful';
  src: url('assets/Super Joyful.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Oliver';
  src: url('assets/Oliver-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Shaabyla';
  src: url('assets/Shaabyla-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-color: #2D35DC;
  --accent-color: #FEFD40;
  --text-light: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --warm-brown: #b87333;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  margin: 0;
  font-family: 'Shaabyla', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  background: var(--bg-color);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

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

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

h1,
h2,
h3 {
  font-family: 'Oliver', sans-serif;
  font-weight: 900;
  margin: 0;
  line-height: 1.08;
}

p {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 3.5vw 1.75rem 1.5vw;
  position: relative;
  z-index: 1001;
}

.nav__logo img {
  width: clamp(150px, 20vw, 220px);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__links a {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}

.nav__links a:hover {
  opacity: 0.7;
}

.nav__icon img {
  width: 44px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
  position: relative;
}

.nav__burger span {
  width: 100%;
  height: 3px;
  background: var(--accent-color);
  border-radius: 10px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav__burger.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.nav__burger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.nav__burger.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 0 4vw 7rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(45, 53, 220, 0.95) 0%, rgba(45, 53, 220, 0.75) 40%, rgba(45, 53, 220, 0.5) 72%, rgba(45, 53, 220, 0.2) 93%),
    url('assets/Image plage.jpg') center/cover no-repeat;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4vw;
  align-items: center;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 0 2rem;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--accent-color);
}

.hero__tagline {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  margin-bottom: 0.5rem;
}

.hero__content h1 {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  margin-bottom: 1.5rem;
}

.hero__description {
  color: var(--text-light);
  font-size: 1.2rem;
  max-width: 32ch;
  margin-bottom: 2rem;
}

.hero__beignet {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__beignet img {
  width: clamp(280px, 38vw, 460px);
  filter: drop-shadow(0 48px 110px rgba(0, 0, 0, 0.35));
}

.hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  width: 100%;
  height: 120px;
  z-index: 1;
  overflow: hidden;
}

.hero__wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wave-path {
  animation: wave 8s ease-in-out infinite;
  transform-origin: center;
}

@keyframes wave {
  0%, 100% {
    d: path("M0,64L48,69.3C96,75,192,85,288,80C384,75,480,53,576,48C672,43,768,53,864,58.7C960,64,1056,64,1152,58.7C1248,53,1344,43,1392,37.3L1440,32L1440,120L1392,120C1344,120,1248,120,1152,120C1056,120,960,120,864,120C768,120,672,120,576,120C480,120,384,120,288,120C192,120,96,120,48,120L0,120Z");
  }
  50% {
    d: path("M0,32L48,42.7C96,53,192,75,288,80C384,85,480,75,576,69.3C672,64,768,64,864,69.3C960,75,1056,85,1152,85.3C1248,85,1344,75,1392,69.3L1440,64L1440,120L1392,120C1344,120,1248,120,1152,120C1056,120,960,120,864,120C768,120,672,120,576,120C480,120,384,120,288,120C192,120,96,120,48,120L0,120Z");
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.86rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn--primary {
  background-color: var(--accent-color);
  color: #14279b;
  box-shadow: 0 14px 30px rgba(20, 39, 155, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(20, 39, 155, 0.55);
}

.btn--outline {
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  background: transparent;
}

.btn--outline:hover {
  background: rgba(254, 253, 64, 0.1);
}

.section {
  padding: 6rem 4vw;
}

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

.section__intro h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.section__intro p {
  color: var(--text-muted);
  font-size: 1.2rem;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-weight: 700;
  color: rgba(254, 253, 64, 0.8);
  margin-bottom: 1.2rem;
}

.products {
  position: relative;
  padding-top: 4rem;
  padding-bottom: 5.5rem;
}

.products__title-block {
  text-align: left;
  max-width: var(--max-width);
  margin: 0 auto 3.5rem;
  padding-left: 1rem;
}

.products__title-block h2 {
  color: var(--text-light);
  font-size: clamp(3rem, 7vw, 4.6rem);
}

.products__feature {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  align-items: center;
  padding: 0 1rem;
}

.products__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.products__item img {
  width: clamp(220px, 38vw, 320px);
  filter: drop-shadow(0 26px 60px rgba(7, 6, 71, 0.45));
}

.products__item-info {
  max-width: 30ch;
}

.products__flavor {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 0.5rem;
}

.products__flavor--chocolat {
  color: #8a4f13;
}

.products__flavor--pomme {
  color: #D58D38;
}

.locations {
  background: none;
}

.locations__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.location-card {
  border-radius: 28px;
  background: rgba(20, 30, 160, 0.35);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(8, 7, 84, 0.35);
  display: flex;
  flex-direction: column;
  min-height: 420px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(8, 7, 84, 0.45);
}

.location-card__image {
  flex: 1;
  background: center/cover no-repeat;
  filter: saturate(115%);
  position: relative;
}

.location-card__image--nauzan {
  background-image: url('assets/Plage Nauzan.jpg');
}

.location-card__image--bois {
  background-image: url('assets/Plage le Bois-Plage.jpeg');
}

.location-card__image--saint-palais {
  background-image: url('assets/Plage Saint Palais.jpg');
}

.location-card h3 {
  color: var(--accent-color);
  font-size: 1.7rem;
  margin: 1.5rem 1.75rem 0.75rem;
}

.location-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0 1.75rem 2rem;
}

.about__content {
  display: grid;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.about__text p {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.about__image img {
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(7, 6, 71, 0.42);
}

.contact {
  padding-bottom: 8rem;
}

.contact__inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  background: rgba(19, 24, 125, 0.55);
  border-radius: 36px;
  padding: 4rem 3rem;
  box-shadow: 0 26px 60px rgba(7, 6, 71, 0.4);
}

.contact__inner h2 {
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.contact__inner p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.15rem;
}

.contact__links {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-weight: 700;
  color: var(--accent-color);
}

.contact__links a {
  position: relative;
}

.contact__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: rgba(254, 253, 64, 0.6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.contact__links a:hover::after {
  transform: scaleX(1);
}

.footer {
  padding: 2.5rem 4vw 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.footer__brand img {
  width: 140px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.footer__nav a:hover {
  color: var(--accent-color);
}

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

@media (max-width: 960px) {
  .nav {
    padding-top: 1.25rem;
  }

  .nav__links {
    gap: 1rem;
  }

  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero__beignet {
    order: 1;
  }

  .hero__text {
    order: 2;
    align-items: center;
    text-align: center;
  }

  .hero__description {
    margin: 0 auto 2rem;
  }

  .products__item {
    gap: 1.25rem;
  }
}

@media (max-width: 680px) {
  .nav {
    justify-content: space-between;
    padding: 1.2rem 4vw 1rem;
  }

  .nav__logo img {
    width: clamp(160px, 36vw, 190px);
  }

  .nav__burger {
    display: flex;
    z-index: 1001;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: rgba(20, 30, 160, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 2rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
  }

  .nav__links.active {
    right: 0;
  }

  .nav__links a {
    font-size: 1.3rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(254, 253, 64, 0.2);
  }

  .nav__icon {
    margin-top: 2rem;
    border-bottom: none !important;
  }

  .nav__icon img {
    width: 60px;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .hero {
    padding-bottom: 5rem;
  }

  .section {
    padding: 5rem 6vw;
  }

  .contact__inner {
    padding: 3rem 2.4rem;
  }

  .contact__inner .btn {
    font-size: 0.7rem;
    padding: 0.85rem 1rem;
    white-space: normal;
    line-height: 1.3;
    text-transform: lowercase;
  }
}

@media (max-width: 500px) {
  .hero__content {
    padding-top: 3rem;
  }

  .hero__beignet img {
    width: clamp(240px, 60vw, 300px);
  }

  .contact__links {
    flex-direction: column;
    gap: 1rem;
  }

  .contact__inner .btn {
    font-size: 0.65rem;
    padding: 0.8rem 0.8rem;
  }
}

/* Animations au scroll */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Délais d'animation pour un effet en cascade */
.location-card.scroll-reveal:nth-child(1) {
  transition-delay: 0.1s;
}

.location-card.scroll-reveal:nth-child(2) {
  transition-delay: 0.2s;
}

.location-card.scroll-reveal:nth-child(3) {
  transition-delay: 0.3s;
}

/* Animation spécifique pour les produits */
.products__item {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.products__feature.revealed .products__item {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.products__item--pomme {
  transition-delay: 0.15s;
}

.products__item--chocolat {
  transition-delay: 0.3s;
}
