@import url("tokens.css");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Source+Sans+3:wght@400;600&display=swap");

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* === Visual Placeholders (WEB-715) === */
.visual-placeholder {
  display: block;
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-primary) 22%, var(--color-bg)) 0%,
      color-mix(in srgb, var(--color-primary) 10%, var(--color-bg)) 55%,
      color-mix(in srgb, var(--color-secondary) 18%, var(--color-bg)) 100%
    );
}
.visual-placeholder[data-aspect="4:3"]  { aspect-ratio: 4 / 3; }
.visual-placeholder[data-aspect="1:1"]  { aspect-ratio: 1 / 1; }
.visual-placeholder[data-aspect="3:4"]  { aspect-ratio: 3 / 4; }
.visual-placeholder[data-aspect="21:9"] { aspect-ratio: 21 / 9; }

.visual-placeholder[data-tone="secondary"] {
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-secondary) 22%, var(--color-bg)) 0%,
      color-mix(in srgb, var(--color-secondary) 10%, var(--color-bg)) 55%,
      color-mix(in srgb, var(--color-primary) 16%, var(--color-bg)) 100%
    );
}
.visual-placeholder[data-tone="accent"] {
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-accent, var(--color-primary)) 22%, var(--color-bg)) 0%,
      color-mix(in srgb, var(--color-primary) 12%, var(--color-bg)) 60%,
      color-mix(in srgb, var(--color-secondary) 16%, var(--color-bg)) 100%
    );
}
.visual-placeholder[data-tone="muted"] {
  background: color-mix(in srgb, var(--color-text) 8%, var(--color-bg));
}

/* === Layout Containers === */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 3rem 0; }

/* === Header & Nav === */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 15%, var(--color-bg));
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: 1px;
}

.logo svg { width: 160px; height: auto; }

nav ul {
  display: none;
  list-style: none;
  gap: 2rem;
}

nav ul li a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

nav ul li a:hover,
nav ul li a[aria-current="page"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-secondary);
  text-decoration: none;
}

.nav-cta {
  display: none;
}

.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  aria-label: "Menu";
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: transform 0.3s, opacity 0.3s;
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 99;
  padding: 2rem 1.25rem;
  flex-direction: column;
  gap: 0;
}

.mobile-nav.is-open { display: flex; }

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav ul li {
  border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 12%, var(--color-bg));
}

.mobile-nav ul li a {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
}

.mobile-nav ul li a:hover { color: var(--color-primary); text-decoration: none; }

.mobile-nav-cta {
  margin-top: 2rem;
}

/* === Hero === */
.hero {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-primary) 6%, var(--color-bg)) 0%,
    var(--color-bg) 100%
  );
  padding: 2.5rem 0 3rem;
}

.hero-content { margin-bottom: 2rem; }

.hero-tagline {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
  background: color-mix(in srgb, var(--color-accent) 10%, var(--color-bg));
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--color-text);
  opacity: 0.85;
  margin-bottom: 1.5rem;
  max-width: 55ch;
}

.hero-creole {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-rating {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text);
  opacity: 0.7;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: color-mix(in srgb, var(--color-primary) 85%, black); color: #fff; }

.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}
.btn-secondary:hover { background: color-mix(in srgb, var(--color-secondary) 85%, black); }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

/* === Section Headers === */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1rem;
  opacity: 0.75;
  max-width: 55ch;
  margin: 0 auto;
}

/* === Cards Grid === */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-primary) 12%, var(--color-bg));
  background: var(--color-bg);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 6px 24px rgba(14,116,144,0.12);
  transform: translateY(-2px);
}

.card-body { padding: 1.25rem; }

.card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 10%, var(--color-bg));
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.card p { font-size: 0.95rem; opacity: 0.8; margin-bottom: 0.75rem; }

.card-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.card-meta li {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}

.card-meta li::before {
  content: "✓";
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* === Features Strip === */
.features {
  background: color-mix(in srgb, var(--color-primary) 5%, var(--color-bg));
  padding: 2.5rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-item {
  text-align: center;
  padding: 1.25rem;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.feature-item h3 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.feature-item p { font-size: 0.9rem; opacity: 0.75; }

/* === Testimonial / Rating Block === */
.rating-block {
  background: var(--color-primary);
  color: #fff;
  padding: 2.5rem 0;
  text-align: center;
}

.rating-block h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.rating-score {
  font-size: 3rem;
  font-weight: 700;
  font-family: var(--font-display);
  line-height: 1;
  color: var(--color-secondary);
}

.rating-details { font-size: 0.95rem; opacity: 0.8; margin-top: 0.5rem; }

.stars { color: var(--color-secondary); font-size: 1.5rem; letter-spacing: 2px; }

/* === CTA Section === */
.cta-section {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-primary) 8%, var(--color-bg)) 0%,
    color-mix(in srgb, var(--color-secondary) 8%, var(--color-bg)) 100%
  );
  padding: 3rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.cta-section p { font-size: 1rem; opacity: 0.8; margin-bottom: 1.5rem; }

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

/* === About Page === */
.about-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.about-text h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1rem;
  opacity: 0.85;
}

.about-text blockquote {
  border-left: 4px solid var(--color-secondary);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-secondary) 8%, var(--color-bg));
  border-radius: 0 6px 6px 0;
}

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

.team-card {
  text-align: center;
  padding: 1.25rem;
  background: color-mix(in srgb, var(--color-primary) 5%, var(--color-bg));
  border-radius: 10px;
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}

.team-card h4 { font-size: 0.95rem; color: var(--color-primary); }
.team-card p { font-size: 0.8rem; opacity: 0.65; }

/* === Services Page === */
.services-hero {
  padding: 3rem 0 2rem;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-primary) 6%, var(--color-bg)) 0%,
    var(--color-bg) 100%
  );
}

.services-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.services-hero p { font-size: 1rem; opacity: 0.8; max-width: 55ch; }

/* === Contact Page === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-info h2 {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--color-primary) 12%, var(--color-bg));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-info-list strong { display: block; font-family: var(--font-display); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-primary); margin-bottom: 0.1rem; }

.contact-form h2 {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.form-group { margin-bottom: 1rem; }

label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

input, select, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid color-mix(in srgb, var(--color-primary) 25%, var(--color-bg));
  border-radius: 6px;
  transition: border-color 0.2s;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
}

textarea { resize: vertical; min-height: 120px; }

.form-privacy {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 0.75rem;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-primary) 15%, var(--color-bg));
}

.map-container iframe {
  width: 100%;
  height: 280px;
  display: block;
  border: 0;
}

/* === Footer === */
footer {
  background: color-mix(in srgb, var(--color-primary) 8%, var(--color-bg));
  border-top: 1px solid color-mix(in srgb, var(--color-primary) 15%, var(--color-bg));
  padding: 2.5rem 0 1.5rem;
}

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

.footer-brand .logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.footer-brand p { font-size: 0.875rem; opacity: 0.7; }

.footer-nav h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav ul li a { font-size: 0.875rem; color: var(--color-text); opacity: 0.75; }
.footer-nav ul li a:hover { opacity: 1; color: var(--color-primary); text-decoration: none; }

.footer-contact p {
  font-size: 0.875rem;
  opacity: 0.75;
  line-height: 1.8;
}

.footer-contact a { color: var(--color-primary); }

.footer-bottom {
  border-top: 1px solid color-mix(in srgb, var(--color-primary) 12%, var(--color-bg));
  padding-top: 1.25rem;
  font-size: 0.8rem;
  opacity: 0.55;
  text-align: center;
}

/* === Tablet breakpoint === */
@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .cta-actions { flex-direction: row; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === Desktop breakpoint === */
@media (min-width: 1024px) {
  .burger { display: none; }
  nav ul { display: flex; }
  .nav-cta { display: flex; }

  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(4, 1fr); }

  .hero { padding: 4rem 0 4.5rem; }
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
  .hero-content { margin-bottom: 0; }

  .about-intro { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }

  .services-hero { padding: 4rem 0 3rem; }
}

/* === 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;
}

/* === Scroll reveal animation === */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =============================================
   ANIMATIONS — WEB-3102 AnimationDesigner
   Template : Excursions / Tourisme Guadeloupe
   ============================================= */

@media (prefers-reduced-motion: no-preference) {

  /* 1. Hero reveal — CSS pur, above-the-fold, sans JS */
  @keyframes hero-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .hero-tagline { animation: hero-fade-up 0.5s ease both; animation-delay: 0.05s; }
  .hero h1      { animation: hero-fade-up 0.55s ease both; animation-delay: 0.15s; }
  .hero-lead    { animation: hero-fade-up 0.55s ease both; animation-delay: 0.28s; }
  .hero-creole  { animation: hero-fade-up 0.5s ease both; animation-delay: 0.38s; }
  .hero-actions { animation: hero-fade-up 0.5s ease both; animation-delay: 0.48s; }
  .hero-rating  { animation: hero-fade-up 0.45s ease both; animation-delay: 0.58s; }
  .hero .visual-placeholder { animation: hero-fade-up 0.6s ease both; animation-delay: 0.2s; }

  /* 2. Stagger scroll-reveal — cartes services */
  .cards-grid .card:nth-child(1) { transition-delay: 0s; }
  .cards-grid .card:nth-child(2) { transition-delay: 0.1s; }
  .cards-grid .card:nth-child(3) { transition-delay: 0.2s; }

  /* 3. Stagger scroll-reveal — features strip */
  .features-grid .feature-item:nth-child(1) { transition-delay: 0s; }
  .features-grid .feature-item:nth-child(2) { transition-delay: 0.08s; }
  .features-grid .feature-item:nth-child(3) { transition-delay: 0.16s; }
  .features-grid .feature-item:nth-child(4) { transition-delay: 0.24s; }

  /* 4. Visual placeholder — dégradé glissant */
  @keyframes placeholder-shimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  .visual-placeholder {
    background-size: 200% 200%;
    animation: placeholder-shimmer 6s ease-in-out infinite;
  }

  /* 5. CTA principal — halo pulsé discret */
  @keyframes cta-glow {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-primary) 35%, transparent); }
    60%       { box-shadow: 0 0 0 6px color-mix(in srgb, var(--color-primary) 0%, transparent); }
  }
  .cta-section .btn-primary { animation: cta-glow 2.4s ease-in-out infinite; }

  /* 6. Header — ombre au scroll (classe .scrolled ajoutée par main.js) */
  header { transition: box-shadow 0.3s ease; }
  header.scrolled {
    box-shadow: 0 2px 18px rgba(14, 116, 144, 0.16);
  }

}

/* Filet de sécurité prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
