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

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--color-primary); text-decoration: underline; }
a:hover { color: var(--color-accent); }
a:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 2px; }

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.15rem, 3vw, 1.5rem); margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.25rem; }

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

section { padding: 3rem 0; }

/* ===== Header & Nav ===== */
.site-header {
  background: var(--color-text);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.site-logo img { height: 40px; width: auto; }

.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.1;
}

.site-logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Nav desktop */
.main-nav { display: none; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-secondary);
  border-bottom-color: var(--color-secondary);
}

/* Hamburger */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

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

/* Mobile nav overlay — slide-in animation */
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-text);
  padding: 1rem 1.25rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  pointer-events: none;
}

.mobile-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
  pointer-events: auto;
}

.mobile-nav ul { list-style: none; padding: 0; margin: 0; }

.mobile-nav li { border-bottom: 1px solid rgba(255,255,255,0.1); }

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] { color: var(--color-secondary); }

/* Phone CTA in header */
.header-cta {
  display: none;
  background: var(--color-secondary);
  color: var(--color-text) !important;
  padding: 0.45rem 1rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}

.header-cta:hover { background: var(--color-accent); color: #fff !important; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, transform 0.18s ease, box-shadow 0.18s ease;
  border: none;
  line-height: 1.2;
}

.btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
.btn:active { transform: translateY(0) scale(1); box-shadow: none; }

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}
.btn-primary:hover { background: #0a5e74; color: #fff; }

.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}
.btn-secondary:hover { background: #d97706; color: #fff; }

.btn-accent {
  background: var(--color-accent);
  color: #ffffff;
}
.btn-accent:hover { background: #be123c; color: #fff; }

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

/* ===== Visual Placeholders ===== */
.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));
}

/* ===== Hero ===== */
.hero {
  background: var(--color-text);
  color: #ffffff;
  padding: 0;
  position: relative;
}

.hero-visual {
  position: relative;
}

.hero-visual .visual-placeholder {
  border-radius: 0;
}

.hero-content {
  padding: 2.5rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-content h1 { color: #ffffff; margin-bottom: 1rem; }

.hero-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ===== Section styles ===== */
.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  margin-bottom: 0.5rem;
}

.section-intro {
  font-size: 1.05rem;
  color: #4b5563;
  max-width: 640px;
  margin-bottom: 2rem;
}

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

.service-card {
  background: #f9fafb;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.service-card-body {
  padding: 1.25rem;
}

.service-card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.service-card h3 { color: var(--color-primary); }

.service-card p { color: #374151; font-size: 0.95rem; margin-bottom: 0.75rem; }

.service-card-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-accent);
  text-decoration: none;
}

.service-card-link:hover { text-decoration: underline; }

/* ===== Stats / social proof ===== */
.stats-band {
  background: var(--color-primary);
  color: #ffffff;
  padding: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-secondary);
  line-height: 1;
}

.stat-item span {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ===== Testimonials ===== */
.testimonials-section { background: #f9fafb; }

.reviews-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.stars {
  color: var(--color-secondary);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.review-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.review-author { font-weight: 700; font-size: 0.95rem; }
.review-date { font-size: 0.8rem; color: #6b7280; margin-left: auto; }
.review-text { font-size: 0.95rem; color: #374151; font-style: italic; }

/* ===== CTA band ===== */
.cta-band {
  background: var(--color-secondary);
  padding: 2.5rem 0;
  text-align: center;
}

.cta-band h2 { color: var(--color-text); margin-bottom: 0.5rem; }
.cta-band p { margin-bottom: 1.5rem; color: var(--color-text); }
.cta-band .btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ===== Features list ===== */
.features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.features-list li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ===== Two-col content ===== */
.two-col {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
}

/* ===== Offers grid ===== */
.offers-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.offer-card {
  background: #fff;
  border-radius: 8px;
  border: 2px solid var(--color-primary);
  padding: 1.5rem;
}

.offer-card.featured {
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 5%, #fff);
}

.offer-card h3 { color: var(--color-primary); }
.offer-card.featured h3 { color: var(--color-accent); }

.offer-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.5rem;
}

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

.contact-info-block { margin-bottom: 1rem; }

.contact-label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
  display: block;
}

.contact-phone-link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.contact-phone-link:hover { color: var(--color-accent); }

.social-links { display: flex; gap: 0.75rem; margin-top: 0.5rem; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.social-link:hover { background: var(--color-accent); color: #fff; }

.map-container {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

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

/* ===== Contact form ===== */
.contact-form { display: grid; gap: 1rem; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  color: var(--color-text);
  width: 100%;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

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

.form-note {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.5;
}

/* ===== Events list ===== */
.events-list { display: grid; gap: 1.25rem; }

.event-card {
  border-left: 4px solid var(--color-primary);
  background: #f9fafb;
  border-radius: 0 8px 8px 0;
  padding: 1.1rem 1.25rem;
}

.event-card.accent { border-left-color: var(--color-accent); }
.event-card.secondary { border-left-color: var(--color-secondary); }

.event-genre {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.4rem;
}

.event-card.accent .event-genre { background: var(--color-accent); }
.event-card.secondary .event-genre { background: var(--color-secondary); color: var(--color-text); }

.event-card h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.event-card p { font-size: 0.9rem; color: #4b5563; margin-bottom: 0; }

/* ===== Page hero (interior pages) ===== */
.page-hero {
  background: var(--color-text);
  color: #fff;
  padding: 2.5rem 0;
}

.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.8); margin-bottom: 0; }

/* ===== Footer ===== */
.site-footer {
  background: #0f172a;
  color: rgba(255,255,255,0.75);
  padding: 2.5rem 0 1rem;
  margin-top: 0;
}

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

.footer-brand .site-logo-text { color: #fff; font-size: 1.4rem; }
.footer-tagline { font-size: 0.85rem; color: var(--color-secondary); margin-top: 0.25rem; }

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; }
.footer-col ul a:hover { color: var(--color-secondary); }

.footer-col address { font-style: normal; font-size: 0.9rem; line-height: 1.6; }

.footer-phone {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-secondary) !important;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--color-secondary); }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: rgba(255,255,255,0.9);
  padding: 1rem 1.25rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
}

.cookie-banner p { margin: 0; font-size: 0.85rem; }

.cookie-banner a { color: var(--color-secondary); }

.cookie-btn-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.cookie-btn {
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  border: none;
  font-family: var(--font-body);
}

.cookie-accept { background: var(--color-primary); color: #fff; }
.cookie-accept:hover { background: #0a5e74; }
.cookie-decline { background: transparent; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.3); }
.cookie-decline:hover { background: rgba(255,255,255,0.1); }

/* ===== Mentions légales ===== */
.legal-content { max-width: 720px; }
.legal-content section { padding: 1.5rem 0; border-bottom: 1px solid #e5e7eb; }
.legal-content section:last-child { border-bottom: none; }
.legal-content h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: 0.8rem;
  padding: 0.5rem 0;
  color: rgba(255,255,255,0.6);
}

.breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-secondary); }
.breadcrumb span { margin: 0 0.4rem; }

/* ===== Skip link ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-secondary);
  color: var(--color-text);
  padding: 0.5rem 1rem;
  font-weight: 700;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus { top: 0; }

/* ===== Responsive — tablet ===== */
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .offers-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .cookie-banner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ===== Responsive — desktop ===== */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav { display: flex; align-items: center; gap: 1.5rem; }
  .header-cta { display: inline-block; }

  .hero-content { padding: 3.5rem 1.25rem; }

  .two-col { grid-template-columns: 1fr 1fr; }

  .offers-grid { grid-template-columns: repeat(2, 1fr); }

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

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }

  .contact-grid { grid-template-columns: 1fr 1fr; }

  section { padding: 4rem 0; }
}

/* ===== Animations — Template F : Festif Scène (nuit tropicale électrisée) ===== */

/* 1. Hero fade-slide — entrée h1 + lead + CTA dès le chargement */
@keyframes hero-fade-slide {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.hero-content h1 {
  animation: hero-fade-slide 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.1s;
}

.hero-lead {
  animation: hero-fade-slide 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.22s;
}

.hero-cta-group {
  animation: hero-fade-slide 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.34s;
}

/* 2. Scroll-reveal initial state (JS drives the reveal via .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for sibling cards */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

/* 3. Hover CTA : déjà géré par .btn:hover ci-dessus (scale + shadow) */

/* 4. Service card hover subtil — ambiance scène */
.service-card {
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}
.service-card:hover {
  box-shadow: 0 8px 28px rgba(13, 110, 133, 0.18);
  transform: translateY(-3px);
}

/* 5. Event card hover */
.event-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.event-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateX(3px);
}

/* ===== prefers-reduced-motion — respect des préférences utilisateur ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-content h1,
  .hero-lead,
  .hero-cta-group {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .service-card:hover,
  .event-card:hover,
  .btn:hover {
    transform: none;
    box-shadow: none;
  }

  .mobile-nav {
    transition: none;
  }
}
