/* Mobile-first, grayscale, accessible, Apple Store-inspired design */
:root {
  --gray-100: #f5f5f5;
  --gray-200: #e0e0e0;
  --gray-300: #bdbdbd;
  --gray-500: #757575;
  --gray-700: #424242;
  --gray-900: #212121;
  --black: #000000;
  --white: #ffffff;
  --accent-green: rgb(90, 168, 50);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--black);
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
}

h3 {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
}

p {
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
}

a {
  text-decoration: none;
  color: var(--gray-500);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--black);
}

a:focus, button:focus {
  outline: 2px solid var(--gray-500);
  outline-offset: 2px;
}

/* Background Classes */
.white-bg {
  background: var(--white);
}

.gray-bg {
  background: var(--gray-100);
}

/* Header */
.sticky-header {
  position: sticky;
  top: 0;
  background: var(--black);
  z-index: 1000;
  width: 100%;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(0.75rem, 2vw, 1rem);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.3rem, 3.5vw, 1.5rem);
  color: var(--white);
  font-weight: 600;
}

.logo-image {
  height: clamp(35px, 10vw, 40px);
  width: auto;
  margin-right: 0.5rem;
}

.nav-links {
  display: none;
  list-style: none;
}

.nav-links li {
  margin-left: clamp(1.5rem, 4vw, 2.5rem);
}

.nav-link {
  font-size: clamp(0.95rem, 2.5vw, 1rem);
  color: var(--gray-200);
  position: relative;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.nav-link:hover {
  color: var(--white);
  opacity: 0.8;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--white);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.burger {
  display: block;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links.active {
  display: block;
  position: absolute;
  top: clamp(50px, 15vw, 60px);
  left: 0;
  width: 100%;
  background: var(--black);
  padding: clamp(1rem, 3vw, 1.5rem);
  transition: transform 0.3s ease;
  transform: translateY(0);
}

.nav-links.active li {
  margin: clamp(1rem, 3vw, 1.5rem) 0;
  text-align: center;
}

/* Hero Section */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(3rem, 8vw, 4rem) clamp(0.75rem, 2vw, 1rem);
  width: 100%;
  background-image: url('images/Bateau d\'en haut.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: clamp(600px, 80vw, 800px);
  margin: 0 auto;
}

.hero h1, .hero p {
  color: var(--white);
}

.hero p {
  max-width: clamp(500px, 70vw, 600px);
  margin: 0 auto clamp(1.5rem, 4vw, 2rem);
}

/* General CTA Button */
.cta-button {
  display: inline-block;
  padding: clamp(0.75rem, 2vw, 0.85rem) clamp(2rem, 5vw, 2.5rem);
  font-size: clamp(0.95rem, 2.5vw, 1rem);
  min-width: 120px;
  font-family: 'Inter', sans-serif;
  background: var(--gray-900);
  color: var(--gray-100);
  border-radius: 5px;
  font-weight: 500;
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

main .cta-button:hover {
  background: var(--accent-green);
  color: var(--white);
  box-shadow: none;
  transform: translateY(-3px);
}

.hero .cta-button {
  background: var(--white);
  color: var(--black);
}

.hero .cta-button:hover {
  background: var(--accent-green);
  color: var(--white);
  box-shadow: none;
  transform: translateY(-3px);
}

/* Mission Section */
.mission {
  padding: clamp(3rem, 8vw, 4rem) clamp(0.75rem, 2vw, 1rem);
}

.mission-content {
  max-width: clamp(600px, 80vw, 800px);
  margin: 0 auto;
  text-align: center;
}

.mission img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Services Section */
.services {
  padding: clamp(3rem, 8vw, 4rem) clamp(0.75rem, 2vw, 1rem);
}

.service-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2rem);
  max-width: clamp(600px, 80vw, 800px);
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service-card {
  background: var(--gray-200);
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 8px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.service-card:hover {
  transform: scale(1.05);
  background: var(--gray-300);
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

/* Testimonials Section */
.testimonials {
  padding: clamp(3rem, 8vw, 4rem) clamp(0.75rem, 2vw, 1rem);
}

.testimonial-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2rem);
  max-width: clamp(600px, 80vw, 800px);
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.testimonial-card {
  background: var(--white);
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 8px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.testimonial-card:hover {
  transform: scale(1.05);
  background: var(--gray-200);
}

.testimonial-card p {
  margin-bottom: 1rem;
}

.testimonial-card .author {
  font-weight: 500;
  color: var(--gray-500);
}

/* FAQ Section */
.faq {
  padding: clamp(3rem, 8vw, 4rem) clamp(0.75rem, 2vw, 1rem);
}

.faq-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2rem);
  max-width: clamp(600px, 80vw, 800px);
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.faq-item {
  background: var(--gray-200);
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 8px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq-item:hover {
  transform: scale(1.05);
  background: var(--gray-300);
}

.faq-item h3 {
  margin-bottom: 0.75rem;
}

.faq-button-container {
  text-align: center;
  margin-top: clamp(1.5rem, 4vw, 2rem);
}

/* About Section */
.about {
  padding: clamp(3rem, 8vw, 4rem) clamp(0.75rem, 2vw, 1rem);
}

.about-content {
  max-width: clamp(600px, 80vw, 800px);
  margin: 0 auto;
  text-align: center;
}

.about img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Divider for sections with image and text */
.divider {
  background: var(--gray-300);
  width: 1px;
  height: auto;
  margin: 0 clamp(1.5rem, 4vw, 2rem);
}

@media (max-width: 767px) {
  .divider {
    display: none;
  }
}

/* Contact Section */
.contact {
  padding: clamp(3rem, 8vw, 4rem) clamp(0.75rem, 2vw, 1rem);
}

.contact-phrase {
  max-width: clamp(500px, 70vw, 600px);
  margin: 0 auto clamp(1.5rem, 4vw, 2rem);
  text-align: center;
}

.contact-form {
  max-width: clamp(500px, 70vw, 600px);
  margin: 0 auto clamp(3rem, 8vw, 4rem);
}

.form-group {
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: clamp(0.65rem, 2vw, 0.75rem);
  border: 1px solid var(--gray-300);
  border-radius: 5px;
  background: var(--gray-100);
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.95rem, 2.5vw, 1rem);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-info-container {
  max-width: clamp(700px, 90vw, 900px);
  margin: 0 auto;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2rem);
}

.contact-info-container h2 {
  color: var(--black);
}

.contact-info-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  text-align: center;
}

.contact-info-item h3 {
  margin-bottom: 0.5rem;
  color: var(--black);
}

.contact-info-item p {
  color: var(--gray-700);
}

.contact-info-item a {
  color: var(--gray-500);
}

.contact-info-item a:hover {
  color: var(--black);
}

/* Blog Section */
.blog {
  padding: clamp(3rem, 8vw, 4rem) clamp(0.75rem, 2vw, 1rem);
}

.blog-header {
  max-width: clamp(600px, 80vw, 800px);
  margin: 0 auto clamp(1.5rem, 4vw, 2rem);
  text-align: center;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2rem);
  max-width: clamp(500px, 70vw, 600px);
  margin: 0 auto;
}

.blog-card {
  background: var(--white);
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 8px;
  border: 2px solid transparent;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.blog-card:hover {
  transform: translateY(-5px);
  background: var(--gray-200);
}

.blog-card h2 {
  font-size: clamp(1.3rem, 3.5vw, 1.5rem);
  margin-bottom: 0.75rem;
}

.blog-meta {
  font-size: clamp(0.85rem, 2vw, 0.9rem);
  color: var(--accent-green);
  margin-bottom: 1rem;
  font-weight: 500;
}

.blog-card p {
  font-size: clamp(0.9rem, 2.5vw, 0.95rem);
  margin-bottom: 1rem;
}

.toggle-button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem auto;
  width: clamp(38px, 10vw, 40px);
  height: clamp(38px, 10vw, 40px);
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 50%;
  font-size: clamp(1.1rem, 3vw, 1.2rem);
  font-weight: 700;
  color: var(--gray-700);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

main .toggle-button:hover {
  background: var(--accent-green);
  color: var(--white);
  border-color: var(--accent-green);
  box-shadow: none;
  transform: scale(1.1);
}

.toggle-button:focus {
  outline: 2px solid var(--gray-500);
  outline-offset: 2px;
}

.blog-card.expanded .toggle-button {
  background: var(--gray-300);
  border-color: var(--gray-500);
}

main .blog-card.expanded .toggle-button:hover {
  background: var(--accent-green);
  color: var(--white);
  border-color: var(--accent-green);
  box-shadow: none;
  transform: scale(1.1);
}

.blog-card .hidden-content {
  display: none;
}

.blog-card.expanded .hidden-content {
  display: block;
}

.blog-button-container {
  text-align: center;
  margin-top: clamp(1.5rem, 4vw, 2rem);
}

/* Footer */
footer {
  padding: clamp(1.5rem, 4vw, 2rem) clamp(0.75rem, 2vw, 1rem);
  background: var(--black);
  color: var(--gray-200);
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-logo img {
  max-height: clamp(35px, 10vw, 40px);
  margin-right: 0.5rem;
}

.footer-logo span {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.85rem, 2vw, 0.9rem);
  color: var(--white);
  font-weight: 600;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 1.5rem);
  margin-top: 1rem;
}

.footer-links a {
  color: var(--gray-200);
  font-size: clamp(0.95rem, 2.5vw, 1rem);
  position: relative;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
  opacity: 0.8;
}

.footer-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--white);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: clamp(15px, 4vw, 20px);
  right: clamp(15px, 4vw, 20px);
  background: var(--gray-900);
  color: var(--gray-100);
  border: none;
  border-radius: 50%;
  width: clamp(36px, 10vw, 40px);
  height: clamp(36px, 10vw, 40px);
  cursor: pointer;
  display: none;
  transition: opacity 0.3s ease;
}

.back-to-top.show {
  display: block;
}

/* Responsive Design */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .burger {
    display: none;
  }

  h1 {
    font-size: clamp(2.2rem, 5vw, 2.5rem);
  }

  h2 {
    font-size: clamp(1.8rem, 4vw, 2rem);
  }

  section {
    padding: clamp(4rem, 10vw, 6rem) clamp(1rem, 2.5vw, 1.5rem);
  }

  .mission-content,
  .about-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    text-align: left;
  }

  .service-grid,
  .testimonial-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .faq-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .contact-info-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (min-width: 1024px) {
  .service-grid,
  .testimonial-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .faq-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }

  .contact-info-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .blog-grid {
    max-width: clamp(600px, 80vw, 800px);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .cta-button,
  .service-card,
  .testimonial-card,
  .faq-item,
  .blog-card,
  .nav-link::after,
  .footer-links a::after,
  .toggle-button,
  .nav-links.active {
    transition: none;
  }
}

/* Lazy Loading Images */
img {
  loading: lazy;
}