@import url('https://fonts.googleapis.com/css2?family=Abel&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    /* width: 100%; */
    max-width: 100vw;
}

:root {
    --text-color: #373737;
    --primary-color: #c4baab;
    --primary-accent-color: #7A746A;
    --secondary-color: rgb(249, 247, 244);
    --third-color: rgba(244, 244, 244);
    --bs-heading-color: #c4baab;
}

.main-content p {
    font-family: "Abel", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: var(--text-color);
}

.navbar a {
    font-family: "Josefin Sans", sans-serif;
    text-transform: uppercase;
    color: var(--primary-accent-color);
}

.navbar a:hover {
    font-weight: 600;
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
  
.navbar-light.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='black' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-toggler {
    border: none !important;
}

.mobile-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.navbar:not(.mobile-navbar) .navbar-toggler-icon {
    background-image: var(--bs-navbar-toggler-icon-bg);
}

.cover-photo {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-height: 700px;
}

.cover-mobile {
  display: none;
}

.cover-4k {
  display: none;
}

@media (max-width: 768px) {
  .cover-desktop {
    display: none;
  }
  .cover-4k {
    display: none;
  }
  .cover-mobile {
    display: block;
  }
  .cover-photo {
    max-height: none;
    height: 100vh;
  }
  .cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .animation-container {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    text-align: center;
  }
  .logo {
    max-width: 120px;
    margin-top: 0;
  }
  .name {
    margin-top: 16px;
  }
}

@media (min-width: 2000px) {
  .cover-desktop {
    display: none;
  }
  .cover-mobile {
    display: none;
  }
  .cover-4k {
    display: block;
  }
}

.animation-container {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo {
    max-width: 150px;
    margin-top: 60px;
    animation: slide-in-logo 3s ease forwards;
}

.name {
    margin-top: 30px;
    animation: slide-in-name 3s ease forwards;
}

@keyframes slide-in-logo {
    0% {
      transform: translateY(-100%);
      opacity: 0;
    }
    100% {
      transform: translateY(0);
      opacity: 1;
    }
}

@keyframes slide-in-name {
    0% {
      transform: translateY(100%);
      opacity: 0;
    }
    100% {
      transform: translateY(0);
      opacity: 1;
    }
}

h1 {
    font-family: "Lora", serif;
    color: var(--text-color) !important;
}

h2 {
    font-family: "Lora", serif;
    font-style: normal;
    text-transform: uppercase;
    font-size: 1.75rem !important;
    border-bottom: 1px solid var(--bs-heading-color);
}

h3 {
    font-family: "Lora", serif;
    color: var(--text-color);
}

h4 {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 600;
    font-size: 1.1rem !important;
    color: var(--text-color) !important;
}

@media (max-width: 768px) {
    h4 {
        font-size: 0.9rem !important;
    }
}

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

.section-carousel {
  /* width: 100%; */
  height: 450px;
}

.section-carousel .carousel-inner,
.section-carousel .carousel-item {
  height: 100%;
}

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

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.button-container button {
    font-family: "Abel", sans-serif;
    text-transform: uppercase;
    padding: 15px 50px;
    /* background-color: rgb(255, 255, 255);
    color: var(--primary-color); */
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 1px solid var(--primary-color);
    letter-spacing: 4px;
    cursor: pointer;
    transition: background-color 0.6s ease;
}

.button-container button:hover {
    /* background-color: var(--primary-color);
    color: var(--secondary-color); */
    background-color: rgb(255, 255, 255);
    color: var(--primary-color);
}

.button-container button:active {
    background-color: var(--primary-accent-color);
    border: 1px solid var(--primary-accent-color);
}

.accent-section {
    background-color: var(--secondary-color);
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.faq-question {
    cursor: pointer;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    margin-top: 8px;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
}

@media (max-width: 768px) {
    .faq-answer {
        font-size: 0.8rem;
    }
}

.map-container {
    position: relative;
    width: 100%;
    padding-top: 35%;
    height: 0;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.photo-carousel img {
    height: 70vh;
    object-fit: cover;
}

@media (max-width: 768px) {
    .photo-carousel img {
        height: 50vh;
    }
}

footer p {
    color: var(--secondary-color);
    font-family: "Abel", sans-serif;
}

.footer-banner {
    position: relative; /* nécessaire pour que l'overlay se place par rapport à l'image */
}

.footer-overlay {
    position: absolute;
    top: 50%;       /* centre verticalement */
    left: 50%;      /* centre horizontalement */
    transform: translate(-50%, -50%);
    color: white;   /* texte en blanc sur l'image */
    z-index: 2;
    padding: 0 15px; /* pour que ça respire sur mobile */
}

.footer-overlay p {
    font-size: 2.5rem; /* desktop par défaut */
}

.footer-logo {
    max-height: 90px; /* ajuste selon tes besoins */
    max-width: 70%;
    height: auto;
}

@media (max-width: 768px) { /* tablette / mobile */
    .footer-overlay p {
        font-size: 1.4rem;
    }
    .footer-logo {
        max-height: 70px;
    }
}

@media (max-width: 480px) { /* petit mobile */
    .footer-overlay p {
        font-size: 1rem;
    }
    .footer-logo {
        max-height: 40px;
    }
}

.jp-logo {
    width: 90px;
}

.cabrinha-logo {
    height: 30px;
}

.neilpryde-logo {
    width: 300px;
}

.social-media {
    display: flex;
}

.social-media img {
    width: 40px;
}

.copyright {
    background-color: var(--third-color);
    padding: 1px;
}

.copyright p {
    color: var(--text-color);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  position: relative;
  background: white;
  max-width: 800px;
  width: 90%;
  max-height: 95vh;
  overflow-y: auto;
}

#kitesurfModal .modal-content {
    padding: 2rem;
}

.modal table {
  width: 100%;
  border-collapse: collapse;
}

.modal th,
.modal td {
  border: 1px solid #ddd;
  padding: 8px;
}

#pdfContainer canvas {
  width: 100%;
  margin-bottom: 1.5rem;
}

.close-modal {
  position: sticky;
  top: 1.5rem;
  right: 1.5rem;
  margin-left: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  /* display: block; */

  /* background: white; */
  background-color: rgb(255, 255, 255);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  transition: background-color 0.6s ease;
  font-size: 2rem; 
  cursor: pointer;
  z-index: 10;
}

.close-modal:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.close-modal:active {
    background-color: var(--primary-accent-color);
    border: 1px solid var(--primary-accent-color);
}

#closeKitesurfBtn {
    font-size: 2rem; 
}

.photos-header {
  padding: 100px 20px 20px;
}

.gallery-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.whatsapp-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.whatsapp-widget img {
  width: 28px;
  height: 28px;
}

.whatsapp-widget:hover {
  transform: scale(1.05);
}