@import url('tokens.css');

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--color-primary);
}
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); margin-bottom: 0.75rem; }
h2 { font-size: clamp(1.4rem, 4vw, 2.1rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.05rem, 3vw, 1.35rem); margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }
address { font-style: normal; }

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

/* === VISUAL PLACEHOLDER === */
.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));
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.3;
}
.btn:hover { opacity: 0.88; text-decoration: none; transform: translateY(-1px); }
.btn-primary  { background: var(--color-secondary); color: #fff; border-color: var(--color-secondary); }
.btn-secondary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-outline  { background: transparent; color: var(--color-secondary); border-color: var(--color-secondary); }
.btn-outline:hover { background: var(--color-secondary); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.1rem; }

/* === SKIP LINK === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-secondary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 4px 4px;
  font-weight: 700;
  z-index: 1000;
}
.skip-link:focus { top: 0; }

/* === HEADER / NAV === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  gap: 1rem;
}
.site-logo { line-height: 0; }
.site-logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 36px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav { display: none; }
.main-nav.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-primary);
  padding: 0.75rem 1.25rem 1.5rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.main-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.main-nav a {
  display: block;
  color: rgba(255,255,255,0.82);
  padding: 0.55rem 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s;
}
.main-nav a:hover, .main-nav a.active { color: #fff; text-decoration: none; }
.main-nav .nav-cta {
  background: var(--color-secondary);
  color: #fff !important;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
  text-align: center;
}
.main-nav .nav-cta:hover { opacity: 0.88; background: var(--color-secondary); }

/* === HERO === */
.section-hero {
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--color-primary) 8%, var(--color-bg)) 0%,
    var(--color-bg) 60%
  );
  padding: 3.5rem 0;
}
.section-hero .container { display: flex; flex-direction: column; gap: 2.5rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: color-mix(in srgb, var(--color-secondary) 10%, var(--color-bg));
  border: 1px solid color-mix(in srgb, var(--color-secondary) 30%, var(--color-bg));
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}
.hero-content h1::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--color-secondary);
  margin-top: 0.6rem;
  margin-bottom: 1rem;
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-accent);
  font-style: italic;
  margin-bottom: 1.25rem;
}
.hero-desc {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 1.75rem;
  max-width: 54ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-bottom: 1.5rem; }
.hero-contact-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--color-text) 65%, var(--color-bg));
}
.hero-contact-line a { color: var(--color-primary); font-weight: 700; }
.hero-contact-line span { color: color-mix(in srgb, var(--color-text) 40%, var(--color-bg)); }

/* === FEATURES (atouts) === */
.features-section { background: var(--color-primary); color: #fff; }
.features-section h2 { color: #fff; margin-bottom: 0.5rem; }
.features-intro { color: rgba(255,255,255,0.72); margin-bottom: 2.5rem; }
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.feature-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 1.5rem;
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.875rem;
  display: block;
}
.feature-card h3 { color: var(--color-secondary); margin-bottom: 0.5rem; }
.feature-card p { color: rgba(255,255,255,0.72); font-size: 0.95rem; margin-bottom: 0; }

/* === SERVICES TEASER === */
.services-teaser { background: color-mix(in srgb, var(--color-primary) 3%, var(--color-bg)); }
.section-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
  display: block;
}
.section-intro {
  color: color-mix(in srgb, var(--color-text) 70%, var(--color-bg));
  margin-bottom: 2.5rem;
  max-width: 58ch;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}
.service-card {
  background: var(--color-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.service-card:hover { box-shadow: 0 6px 24px rgba(225,29,72,0.12); }
.service-card .visual-placeholder { border-radius: 8px 8px 0 0; }
.service-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.service-card-body h3 { margin-bottom: 0.5rem; }
.service-card-body p {
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--color-text) 70%, var(--color-bg));
  flex: 1;
  margin-bottom: 1rem;
}
.link-more { color: var(--color-secondary); font-weight: 700; font-size: 0.9rem; margin-top: auto; }
.link-more:hover { text-decoration: underline; }
.cta-center { text-align: center; }

/* === CTA BAND === */
.cta-section { background: var(--color-secondary); color: #fff; text-align: center; padding: 3.5rem 0; }
.cta-section h2 { color: #fff; margin-bottom: 0.875rem; }
.cta-section .cta-sub { color: rgba(255,255,255,0.88); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.cta-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.72);
}

/* === PAGE HERO (interior pages) === */
.page-hero {
  background: linear-gradient(160deg, var(--color-primary) 0%, color-mix(in srgb, var(--color-primary) 88%, var(--color-bg)) 100%);
  padding: 3.5rem 0 2.5rem;
  color: #fff;
}
.page-hero h1 { color: #fff; margin-bottom: 0.75rem; }
.page-hero h1::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--color-secondary);
  margin-top: 0.6rem;
}
.page-hero p { color: rgba(255,255,255,0.78); max-width: 60ch; margin-bottom: 0; }

/* === SERVICES FULL PAGE === */
.services-full { background: var(--color-bg); }
.services-full .services-section-title {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  color: var(--color-primary);
  border-left: 4px solid var(--color-secondary);
  padding-left: 1rem;
  margin: 3rem 0 2rem;
}
.service-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 12%, var(--color-bg));
}
.service-block:last-child { border-bottom: none; }
.service-block h3 { margin-bottom: 0.75rem; }
.service-block p { color: color-mix(in srgb, var(--color-text) 78%, var(--color-bg)); }
.service-block ul { list-style: none; margin: 0.75rem 0 1.5rem; }
.service-block ul li {
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: color-mix(in srgb, var(--color-text) 75%, var(--color-bg));
  font-size: 0.95rem;
}
.service-block ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 700;
}
.service-block-visual { flex-shrink: 0; }
.service-block-text { flex: 1; }

/* === RESERVATION PAGE === */
.reservation-section { background: var(--color-bg); }
.booking-widget-area {
  background: color-mix(in srgb, var(--color-primary) 4%, var(--color-bg));
  border: 2px dashed color-mix(in srgb, var(--color-secondary) 40%, var(--color-bg));
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
  margin: 2rem 0;
}
.booking-widget-area p { color: color-mix(in srgb, var(--color-text) 60%, var(--color-bg)); margin-bottom: 1.5rem; }
.booking-options { display: flex; flex-direction: column; gap: 1.25rem; align-items: center; }
.booking-option {
  background: var(--color-bg);
  border: 1px solid color-mix(in srgb, var(--color-text) 15%, var(--color-bg));
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  text-align: left;
  width: 100%;
  max-width: 480px;
}
.booking-option h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.booking-option p { font-size: 0.9rem; color: color-mix(in srgb, var(--color-text) 65%, var(--color-bg)); margin-bottom: 0.75rem; }

/* === ABOUT PAGE === */
.about-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 3.5rem 0;
}
.about-bio p { color: color-mix(in srgb, var(--color-text) 80%, var(--color-bg)); }
.about-highlight {
  background: color-mix(in srgb, var(--color-secondary) 6%, var(--color-bg));
  border-left: 4px solid var(--color-secondary);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: color-mix(in srgb, var(--color-text) 80%, var(--color-bg));
}
.about-visual-wrap { max-width: 320px; }

/* === CONTACT PAGE === */
.contact-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 3rem 0;
}
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid color-mix(in srgb, var(--color-text) 25%, var(--color-bg));
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  margin-bottom: 1.25rem;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--color-secondary); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.rgpd-note {
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--color-text) 52%, var(--color-bg));
  border-top: 1px solid color-mix(in srgb, var(--color-text) 12%, var(--color-bg));
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.contact-sidebar { display: flex; flex-direction: column; gap: 1.75rem; }
.contact-info { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-info h3 { margin-bottom: 0.25rem; }
.contact-info-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
}
.contact-info-item .icon { flex-shrink: 0; color: var(--color-secondary); font-style: normal; }
.contact-info-item a { color: var(--color-primary); font-weight: 600; }
.contact-info-item a:hover { color: var(--color-secondary); }

.map-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: none;
}

/* === FOOTER === */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand-logo {
  filter: brightness(0) invert(1);
  margin-bottom: 0.875rem;
  max-width: 180px;
}
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.52); line-height: 1.6; }
.footer-col h3 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a { color: rgba(255,255,255,0.62); font-size: 0.875rem; }
.footer-col ul a:hover { color: var(--color-secondary); text-decoration: none; }
.footer-contact-list { list-style: none; }
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.62);
}
.footer-contact-list a { color: rgba(255,255,255,0.82); }
.footer-contact-list a:hover { color: var(--color-secondary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.52); }
.footer-bottom a:hover { color: #fff; }

/* === ABOUT TEASER (homepage) === */
.about-teaser-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 3.5rem 0;
}
.about-text { flex: 1; }
.about-text h2 { margin-bottom: 1rem; }
.about-text p { color: color-mix(in srgb, var(--color-text) 80%, var(--color-bg)); }
.about-visual { flex-shrink: 0; }

@media (min-width: 768px) {
  .about-teaser-layout { flex-direction: row; align-items: center; gap: 3rem; }
  .about-visual { flex: 0 0 280px; }
}

/* === FADE-IN ANIMATION === */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* === BREAKPOINTS === */
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .main-nav { display: flex !important; align-items: center; }
  .main-nav ul { flex-direction: row; gap: 0.25rem; }
  .main-nav a { padding: 0.4rem 0.7rem; border-radius: 4px; }
  .main-nav a:hover { background: rgba(255,255,255,0.08); }
  .main-nav .nav-cta { margin-top: 0; padding: 0.4rem 1rem; }

  .section-hero .container { flex-direction: row; align-items: center; gap: 3.5rem; }
  .hero-content { flex: 1 1 50%; }
  .hero-visual { flex: 1 1 46%; max-width: 500px; }

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

  .service-block { flex-direction: row; align-items: flex-start; gap: 3rem; }
  .service-block:nth-child(even) { flex-direction: row-reverse; }
  .service-block-visual { flex: 0 0 260px; }

  .about-layout { flex-direction: row; align-items: flex-start; gap: 3rem; }
  .about-visual-wrap { flex: 0 0 260px; }
  .about-bio { flex: 1; }

  .contact-layout { flex-direction: row; align-items: flex-start; gap: 3rem; }
  .contact-form-wrap { flex: 1; }
  .contact-sidebar { flex: 0 0 340px; }
  .map-wrapper iframe { height: 340px; }

  .booking-options { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .booking-option { max-width: 360px; }

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

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
