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

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

.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--color-primary); color: #fff; padding: 8px 16px; z-index: 1000;
  border-radius: 0 0 4px 0; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  background: var(--color-bg); border-bottom: 2px solid var(--color-secondary);
  position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 1rem;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.site-logo,
.logo-link { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; }
.site-logo img,
.logo-link img { height: 40px; width: auto; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--color-primary); line-height: 1.1; }
.logo-tag { font-size: .7rem; color: var(--color-accent); letter-spacing: .04em; text-transform: uppercase; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav ul { list-style: none; display: flex; gap: 1.5rem; align-items: center; }
.site-nav a { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--color-text); text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.nav-cta { background: var(--color-primary); color: #fff !important; padding: .45rem 1rem !important; border-radius: 4px !important; border-bottom: none !important; }
.nav-cta:hover { background: var(--color-accent) !important; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: .5rem;
  color: var(--color-text); flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s;
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--color-bg); flex-direction: column; gap: 0;
    border-bottom: 2px solid var(--color-secondary); box-shadow: 0 4px 12px rgba(0,0,0,.08);
  }
  .site-nav ul { flex-direction: column; gap: 0; width: 100%; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 1rem 1.5rem; border-bottom: 1px solid #f3f4f6; width: 100%; }
  .nav-cta { margin: .75rem 1.5rem !important; text-align: center; border-radius: 4px !important; }
}

/* ── Layout ──────────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 4rem 0; }
.section-alt { background: #fdfaf6; }

/* ── Page Hero (pages internes) ──────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--color-primary) 12%, var(--color-bg)) 0%,
    var(--color-bg) 100%);
  border-bottom: 2px solid var(--color-secondary);
  padding: 3rem 0 2.5rem;
}
.page-hero .breadcrumb { margin-bottom: 1rem; }
.page-hero h1 { margin-top: .5rem; }

/* ── Section header ──────────────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 2.5rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header h2 { margin-top: .5rem; }

/* ── Eyebrow label ───────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body); font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: .5rem;
}

/* ── Story grid (texte + visuel côte à côte) ─────────────────────────── */
.story-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) { .story-grid { grid-template-columns: 1fr 1fr; } }
.story-text { display: flex; flex-direction: column; gap: .75rem; }

/* ── Cards grid ──────────────────────────────────────────────────────── */
.cards-grid { display: grid; gap: 1.5rem; }
@media (min-width: 600px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── CTA Band ────────────────────────────────────────────────────────── */
.cta-band {
  background: var(--color-primary); color: #fff;
  text-align: center; padding: 3.5rem 1rem;
}
.cta-band h2 { color: var(--color-secondary); font-family: var(--font-display); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,.9); margin-bottom: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-band .btn { background: var(--color-secondary); color: var(--color-accent); margin: .5rem; }
.cta-band .btn:hover { background: #fff; color: var(--color-accent); }
.cta-band .tel-link {
  color: var(--color-secondary); font-weight: 700; font-size: 1.2rem;
  text-decoration: none; display: inline-block; margin-top: .75rem;
}
.cta-band .tel-link:hover { text-decoration: underline; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { background: #111827; color: #d1d5db; padding: 3rem 0 1.5rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-col h3 { color: var(--color-secondary); font-size: 1rem; margin-bottom: .75rem; font-family: var(--font-display); }
.footer-col p { font-size: .9rem; line-height: 1.6; color: #9ca3af; }
.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: .4rem; }
.footer-nav a { color: #9ca3af; text-decoration: none; font-size: .9rem; }
.footer-nav a:hover { color: var(--color-secondary); }
.footer-phone { color: var(--color-secondary) !important; font-weight: 700; font-size: 1rem; }
.footer-phone:hover { text-decoration: underline !important; }
.footer-bottom {
  max-width: 1100px; margin: 2rem auto 0; padding: 1.25rem 1rem 0;
  border-top: 1px solid #374151;
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between;
  font-size: .8rem; color: #6b7280;
}
.footer-bottom a { color: #6b7280; }
.footer-bottom a:hover { color: #9ca3af; }

/* ── Also keep legacy selectors ─────────────────────────────────────── */
.footer-section h3 { color: var(--color-secondary); font-size: 1rem; margin-bottom: .75rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: .4rem; }
.footer-section a { color: #9ca3af; text-decoration: none; font-size: .9rem; }
.footer-section a:hover { color: var(--color-secondary); }

/* ── Typography ──────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); color: var(--color-primary); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--color-primary); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; color: var(--color-accent); margin-bottom: .5rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--color-primary); }
em { font-style: italic; color: var(--color-accent); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: .75rem 1.75rem; border-radius: 4px;
  text-decoration: none; font-family: var(--font-display); font-weight: 600;
  font-size: 1rem; border: none; cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn-primary,
.btn:not(.btn-secondary):not(.btn-accent):not(.btn-outline) {
  background: var(--color-primary); color: #fff;
}
.btn-primary:hover,
.btn:not(.btn-secondary):not(.btn-accent):not(.btn-outline):hover {
  background: color-mix(in srgb, var(--color-primary) 80%, #000);
  transform: translateY(-1px);
}
.btn-secondary { background: var(--color-secondary); color: var(--color-accent); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-secondary) 80%, #fff); transform: translateY(-1px); }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: color-mix(in srgb, var(--color-accent) 80%, #000); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }

/* ── Hero (homepage) ─────────────────────────────────────────────────── */
.hero {
  padding: 3rem 0 4rem;
  background: linear-gradient(135deg, #fdf6ee 0%, #fefefe 60%, #fff9f0 100%);
}
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--color-secondary); color: var(--color-accent);
  padding: .35rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  margin-bottom: 1rem;
}
.hero-subtitle { font-size: 1.1rem; color: #4b5563; margin-bottom: 1.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.hero-tel { display: flex; align-items: center; gap: .5rem; color: var(--color-accent); font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.hero-tel:hover { color: var(--color-primary); }
@media (min-width: 768px) { .hero-inner { grid-template-columns: 1fr 1fr; } }

/* ── Cards ───────────────────────────────────────────────────────────── */
.cards { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--color-bg); border: 1px solid #e5e7eb;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(14,116,144,.12); transform: translateY(-2px); }
.card-body { padding: 1.25rem; }
.card-icon { font-size: 2rem; margin-bottom: .75rem; }

/* ── Feature list ────────────────────────────────────────────────────── */
.feature-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.feature-list li { padding: .6rem 0; border-bottom: 1px solid #f3f4f6; display: flex; gap: .75rem; align-items: flex-start; }
.feature-list li::before { content: "✦"; color: var(--color-primary); flex-shrink: 0; margin-top: .1rem; }

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

/* ── About grid ──────────────────────────────────────────────────────── */
.about-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }

/* ── Breadcrumb ──────────────────────────────────────────────────────── */
.breadcrumb { font-size: .85rem; color: #6b7280; margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--color-primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Contact ─────────────────────────────────────────────────────────── */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item-icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1; }
.contact-item-text h3 { font-size: 1rem; margin-bottom: .25rem; }
.contact-item-text p, .contact-item-text a { font-size: .95rem; margin: 0; }
.contact-form .form-group { margin-bottom: 1.25rem; }
.contact-form label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .9rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: .65rem .85rem; border: 1px solid #d1d5db; border-radius: 4px;
  font-family: var(--font-body); font-size: 1rem; color: var(--color-text);
  background: var(--color-bg); transition: border-color .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 3px solid var(--color-secondary); border-color: var(--color-primary);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.form-rgpd,
.contact-form .privacy { font-size: .8rem; color: #6b7280; margin: .75rem 0 1.25rem; line-height: 1.5; }

/* ── Map ─────────────────────────────────────────────────────────────── */
.map-wrap,
.map-container { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; border: 1px solid #e5e7eb; margin-top: 1.5rem; }
.map-wrap iframe,
.map-container iframe { width: 100%; height: 100%; border: none; }

/* ── Localisation ────────────────────────────────────────────────────── */
.localisation-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .localisation-grid { grid-template-columns: 1fr 1fr; } }
.distance-list { list-style: none; padding: 0; margin: 1.25rem 0; }
.distance-list li { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid #f3f4f6; font-size: .95rem; }
.dest { font-weight: 600; color: var(--color-primary); }

/* ── Reviews ─────────────────────────────────────────────────────────── */
.reviews { padding: 4rem 0; }
.review-card {
  background: var(--color-bg); border: 1px solid #e5e7eb;
  border-radius: 8px; padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.review-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; gap: 1rem; }
.review-author { font-family: var(--font-display); font-weight: 700; color: var(--color-primary); }
.review-stars { color: var(--color-secondary); font-size: 1.1rem; letter-spacing: .1em; }
.review-date { font-size: .8rem; color: #9ca3af; margin-top: .2rem; }
.review-text { font-size: .95rem; color: #4b5563; line-height: 1.7; font-style: italic; }

/* ── Legacy CTA banner alias ─────────────────────────────────────────── */
.cta-banner { background: var(--color-primary); color: #fff; text-align: center; padding: 3rem 1rem; }
.cta-banner h2 { color: var(--color-secondary); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,.9); margin-bottom: 1.5rem; }
.cta-banner .btn { background: var(--color-secondary); color: var(--color-accent); }
.cta-banner .btn:hover { background: #fff; color: var(--color-accent); }
.cta-banner .tel-link { color: var(--color-secondary); font-weight: 700; font-size: 1.2rem; text-decoration: none; display: inline-block; margin-top: .75rem; }
.cta-banner .tel-link:hover { text-decoration: underline; }

/* ── Utilities ───────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.section-intro { max-width: 700px; margin: 0 auto 2.5rem; text-align: center; font-size: 1.05rem; color: #4b5563; }

/* ── Animations ──────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Hero entrance — above the fold, CSS keyframes */
.hero-text .hero-badge    { animation: fadeUp .45s ease both .05s; }
.hero-text h1             { animation: fadeUp .5s  ease both .15s; }
.hero-text .hero-subtitle { animation: fadeUp .5s  ease both .25s; }
.hero-text .hero-cta      { animation: fadeUp .5s  ease both .35s; }
.hero-text .hero-tel      { animation: fadeUp .45s ease both .45s; }
.hero-inner .hero-photo,
.hero-inner .visual-placeholder[data-slot="hero-1"] { animation: fadeIn .7s ease both .2s; }

/* Page-hero entrance (internal pages) */
.page-hero .breadcrumb { animation: fadeUp .4s ease both .05s; }
.page-hero .eyebrow    { animation: fadeUp .4s ease both .10s; }
.page-hero h1          { animation: fadeUp .5s ease both .20s; }
.page-hero > .container > p { animation: fadeUp .5s ease both .30s; }

/* Nav scroll shadow */
.site-header { transition: box-shadow .3s ease; }
.site-header.scrolled { box-shadow: 0 4px 24px rgba(14,116,144,.2) !important; }

/* Hero photo (real image replacing placeholder) */
.hero-photo {
  width: 100%; height: auto; display: block;
  border-radius: 8px; object-fit: cover;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  aspect-ratio: 4 / 3;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
