@import './tokens.css';
/* Polices système (RGPD — aucune requête tiers) */

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

/* Typography */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
p { margin-bottom: 1rem; }
a { color: var(--color-primary); }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(22,101,52,.12);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-link svg { height: 44px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .03em;
  transition: color .2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--color-primary); }
.site-nav .lang-toggle {
  background: var(--color-primary);
  color: #fff;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-decoration: none;
  transition: background .2s;
}
.site-nav .lang-toggle:hover { background: var(--color-secondary); color:#fff; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-text);
  transition: .3s;
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    gap: .75rem;
    border-bottom: 1px solid rgba(22,101,52,.12);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
  }
  .site-nav.open { display: flex; }
}

/* ===== HERO (Template G) ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-primary);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* SVG tropical art hero background */
.hero-bg svg { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,30,15,.45) 0%, rgba(10,30,15,.70) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2rem 1.5rem;
  max-width: 820px;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .75rem;
}
.hero-content h1 { color: #fff; margin-bottom: 1.25rem; }
.hero-content .lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  opacity: .9;
  margin-bottom: 2rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.btn {
  display: inline-block;
  padding: .85rem 2rem;
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background .2s, color .2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-accent);
  color: #111;
}
.btn-primary:hover { background: #d97706; color: #111; }
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.7);
  margin-left: 1rem;
}
.btn-secondary:hover { background: rgba(255,255,255,.15); }
.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.6);
  font-size: .8rem;
  text-align: center;
  animation: bounce 2s infinite;
}
.hero-scroll::before {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.4);
  margin: 0 auto .5rem;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===== SECTIONS ===== */
.section { padding: 5rem 1.5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { color: var(--color-primary); margin-bottom: .75rem; }
.section-header .subtitle { color: var(--color-secondary); font-size: 1.05rem; }

.section-alt { background: #f8f5f0; }
.section-dark { background: var(--color-primary); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .subtitle { color: var(--color-accent); }

/* USP grid */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.usp-card {
  background: #fff;
  border-radius: 4px;
  padding: 2rem;
  border-left: 4px solid var(--color-accent);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.usp-card h3 { color: var(--color-primary); margin-bottom: .5rem; }

/* Social proof */
.social-proof {
  background: var(--color-primary);
  color: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
}
.social-proof .rating { font-size: 2.5rem; font-family: var(--font-display); margin-bottom: .5rem; }
.social-proof .stars { color: var(--color-accent); font-size: 1.5rem; margin-bottom: .5rem; }
.social-proof p { opacity: .85; }
.social-proof a { color: var(--color-accent); }

/* Photo-text alternée */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 420px;
}
.split-section .split-visual {
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  overflow: hidden;
}
.split-section .split-visual svg { width: 100%; height: 100%; }
.split-section .split-text {
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-section .split-text h2 { color: var(--color-primary); margin-bottom: 1rem; }
.split-section.reverse .split-visual { order: 2; }
.split-section.reverse .split-text { order: 1; }
@media (max-width: 768px) {
  .split-section { grid-template-columns: 1fr; }
  .split-section.reverse .split-visual { order: 0; }
  .split-section.reverse .split-text { order: 0; }
  .split-section .split-text { padding: 2rem 1.5rem; }
}

/* Tarifs table */
.tarifs-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.tarifs-table th, .tarifs-table td {
  padding: .85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(22,101,52,.15);
}
.tarifs-table th { background: var(--color-primary); color: #fff; font-family: var(--font-display); }
.tarifs-table tr:nth-child(even) td { background: rgba(22,101,52,.04); }

/* Timeline histoire */
.timeline { list-style: none; position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--color-accent);
}
.timeline li {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1rem;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: -1.55rem;
  top: .4rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid #fff;
}
.timeline .year {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.1rem;
  display: block;
  margin-bottom: .25rem;
}

/* FAQ */
.faq-list { list-style: none; }
.faq-item { border-bottom: 1px solid rgba(22,101,52,.15); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 1.25rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after { content: '+'; font-size: 1.25rem; color: var(--color-primary); }
.faq-question[aria-expanded="true"]::after { content: '−'; }
.faq-answer {
  display: none;
  padding-bottom: 1.25rem;
  color: #374151;
}
.faq-answer.open { display: block; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 { color: var(--color-primary); margin-bottom: 1rem; }
.contact-phone {
  display: block;
  font-size: 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  margin: .5rem 0;
}
.contact-phone:hover { color: var(--color-secondary); }
.contact-address { margin: 1.5rem 0; font-style: normal; }
.hours-grid { display: flex; flex-direction: column; gap: .25rem; font-size: .95rem; }
.osm-frame { width: 100%; height: 350px; border: 0; border-radius: 4px; margin-top: 1.5rem; }

/* Form */
.contact-form { background: #fff; padding: 2rem; border-radius: 4px; box-shadow: 0 2px 16px rgba(0,0,0,.06); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--color-text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1.5px solid #d1d5db;
  border-radius: 3px;
  padding: .65rem .9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.rgpd-note { font-size: .8rem; color: #6b7280; margin-top: 1rem; }

/* CTA fixe mobile */
.cta-fixed {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--color-primary);
  padding: 1rem 1.5rem;
  text-align: center;
}
.cta-fixed a {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: .02em;
}
@media (max-width: 768px) { .cta-fixed { display: block; } }
body { padding-bottom: 0; }
@media (max-width: 768px) { body { padding-bottom: 60px; } }

/* ===== FOOTER ===== */
.site-footer {
  background: #111827;
  color: rgba(255,255,255,.7);
  padding: 3rem 1.5rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-col h4 { color: #fff; font-family: var(--font-display); margin-bottom: 1rem; font-size: 1rem; }
.footer-col a { color: rgba(255,255,255,.6); text-decoration: none; display: block; margin-bottom: .4rem; font-size: .9rem; }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.5); }

/* Infos pratiques */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.info-card {
  background: #fff;
  border-radius: 4px;
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.info-card h3 { color: var(--color-primary); margin-bottom: .75rem; font-size: 1.1rem; }
.info-card .icon {
  display: inline-block;
  font-size: 1.5rem;
  margin-bottom: .5rem;
}

/* breadcrumb / page intro */
.page-hero {
  padding-top: 100px;
  padding-bottom: 4rem;
  background: linear-gradient(135deg, #052e16 0%, var(--color-primary) 60%, #1a5c31 100%);
  color: #fff;
  text-align: center;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.page-hero h1 { color: #fff; margin-bottom: .75rem; }
.page-hero .subtitle { opacity: .8; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* Accessibility skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-primary);
  color: #fff;
  padding: .5rem 1rem;
  font-size: .9rem;
  z-index: 999;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* Breadcrumb */
.breadcrumb {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb span { margin: 0 .4rem; }

/* Reviews section */
.reviews {
  background: var(--color-bg);
  padding: 3rem 1.25rem;
}
.reviews h2 {
  text-align: center;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  margin-bottom: 2rem;
  color: var(--color-text);
}
.reviews h2 a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.reviews h2 a:hover { color: var(--color-primary); }
.reviews-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 640px) { .reviews-grid { grid-template-columns: repeat(3,1fr); } }
.review-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  padding: 1.25rem;
}
.review-header {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .75rem;
  margin-bottom: .75rem;
  align-items: baseline;
}
.review-author { font-weight: 700; color: var(--color-text); }
.review-stars { color: #f59e0b; font-size: 1rem; }
.review-date { font-size: .8rem; color: #6b7280; }
.review-text { font-size: .9rem; line-height: 1.55; color: #374151; font-style: italic; }
.reviews-attribution {
  text-align: center;
  margin-top: 1.5rem;
  font-size: .85rem;
}
.reviews-attribution a { color: var(--color-primary); }

/* Fade-in animation */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; transform: none; }
