/* ===========================================================
   TOKENS
   =========================================================== */
:root {
  color-scheme: dark;

  /* Fonds : vert canard */
  --bg: #10494C;
  --bg-alt: #0C3A3D;
  --surface: #16585B;

  /* Texte & accents : nuances de beige */
  --ink: #F4EADA;
  --muted: #D0C0A6;
  --clay: #E3C79C;
  --clay-hover: #F0DBB8;
  --clay-soft: rgba(227, 199, 156, 0.14);
  --sage: #D8C4A0;
  --sage-soft: rgba(216, 196, 160, 0.14);
  --line: rgba(244, 234, 218, 0.18);
  --on-accent: #0C3A3D;

  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;

  --max-w: 1120px;
  --edge: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===========================================================
   ANIMATION D'ENTRÉE
   =========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 73, 76, 0.55), rgba(12, 58, 61, 0.7)),
    url('../assets/fond.jpg') center top / cover no-repeat;
}

a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

/* ===========================================================
   NAV
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 73, 76, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-mark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink);
  transition: color 0.15s ease;
}

.nav-links a:hover, .nav-links a:focus-visible { color: var(--clay); }
.nav-links a.is-active { color: var(--clay); }

.nav-cta {
  background: var(--clay);
  color: var(--on-accent) !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
}
.nav-cta:hover { background: var(--clay-hover); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 88px var(--edge) 60px;
  display: grid;
  grid-template-columns: 1.1fr 0.7fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--sage);
  text-transform: uppercase;
  margin: 0 0 18px;
  font-weight: 600;
  text-shadow: 0 2px 14px rgba(8, 32, 34, 0.6);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 22px;
  text-shadow: 0 2px 18px rgba(8, 32, 34, 0.55);
}
.hero-title span { color: var(--clay); font-style: italic; }

.hero-sub {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 46ch;
  margin: 0 0 34px;
  text-shadow: 0 2px 14px rgba(8, 32, 34, 0.6);
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }

.btn-primary { background: var(--clay); color: var(--on-accent); }
.btn-primary:hover { background: var(--clay-hover); }

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(12, 58, 61, 0.4);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--clay); color: var(--clay); }

.hero-art { display: flex; justify-content: center; }
.hero-logo { width: 100%; max-width: 320px; height: auto; }

/* ===========================================================
   SECTIONS
   =========================================================== */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 76px var(--edge);
}

.section-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin: 0 0 10px;
  text-shadow: 0 2px 14px rgba(8, 32, 34, 0.6);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin: 0 0 36px;
  text-shadow: 0 2px 18px rgba(8, 32, 34, 0.55);
}

/* --- Cards / specialites --- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cards .card:nth-child(1) { transition-delay: 0s; }
.cards .card:nth-child(2) { transition-delay: 0.1s; }
.cards .card:nth-child(3) { transition-delay: 0.2s; }
.cards .card:nth-child(4) { transition-delay: 0.3s; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--clay); transform: translateY(-3px); }

.card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 16px;
  overflow: hidden;
  background: #FFFDF6;
}
.card-icon svg { width: 100%; height: 100%; color: var(--clay); }
.card-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 10px;
}

.card p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* --- About --- */
.section-about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.photo-frame {
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-text p { color: var(--muted); max-width: 56ch; text-shadow: 0 2px 14px rgba(8, 32, 34, 0.6); }

.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.badges li {
  background: var(--sage-soft);
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
}

/* --- Cabinet / map --- */
.section-cabinet { text-align: left; }
.cabinet-sub { color: var(--muted); max-width: 60ch; margin: -20px 0 32px; text-shadow: 0 2px 14px rgba(8, 32, 34, 0.6); }

.map-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 7;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* --- Carrousel photos du cabinet --- */
.carousel { position: relative; margin: 0 0 32px; }

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
}
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(12, 58, 61, 0.7);
  backdrop-filter: blur(4px);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.carousel-btn:hover, .carousel-btn:focus-visible { border-color: var(--clay); color: var(--clay); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  padding: 0;
  cursor: pointer;
}
.carousel-dot.is-active { background: var(--clay); }

/* --- Chiffres --- */
.stats-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
}

.stat { text-align: center; }

.stat-number {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4rem);
  color: var(--ink);
  margin: 0 0 8px;
  text-shadow: 0 2px 18px rgba(8, 32, 34, 0.55);
}

.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  text-shadow: 0 2px 14px rgba(8, 32, 34, 0.6);
}

/* --- Contact --- */
.section-contact { background: var(--bg-alt); border-radius: 28px; margin-bottom: 40px; }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-lead { color: var(--muted); max-width: 46ch; margin: -16px 0 30px; }

.contact-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 26px; }

.contact-list li { display: flex; flex-direction: column; gap: 4px; }

.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sage);
  font-weight: 600;
}

.contact-value { font-size: 1.02rem; }

.contact-link { text-decoration: none; }
.contact-link:hover, .contact-link:focus-visible { color: var(--clay); }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.social-link:hover, .social-link:focus-visible { color: var(--clay); border-color: var(--clay); }

.social-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* --- Contact direct (appel / SMS) --- */
.contact-action {
  background: var(--surface);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--line);
}

.contact-action h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0;
}

.contact-action p { color: var(--muted); margin: 0; }

.contact-action-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

.contact-action .btn-ghost { background: rgba(12, 58, 61, 0.55); }

/* ===========================================================
   BLOG
   =========================================================== */
.blog-hero { padding-bottom: 0; }

.blog-intro {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
  margin: 0;
  text-shadow: 0 2px 14px rgba(8, 32, 34, 0.6);
}

.blog-list-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.blog-post {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
}

.blog-post h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ink);
  margin: 0 0 18px;
}

.blog-post h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--clay);
  margin: 28px 0 10px;
}

.blog-post p { color: var(--muted); line-height: 1.7; margin: 0 0 16px; }

.blog-post ul.blog-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
}

.blog-post ul.blog-list li {
  color: var(--muted);
  line-height: 1.6;
  padding-left: 1.4em;
  position: relative;
}

.blog-post ul.blog-list li::before {
  content: '•';
  position: absolute;
  left: 0.2em;
  color: var(--clay);
}

.blog-post ul.blog-list--emoji li { padding-left: 0; }
.blog-post ul.blog-list--emoji li::before { content: none; }

.blog-cta { margin-top: 8px; }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer {
  text-align: center;
  padding: 30px var(--edge) 50px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ===========================================================
   ACCESSIBILITÉ
   =========================================================== */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; max-width: 160px; margin: 0 auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .section-about { grid-template-columns: 1fr; }
  .photo-frame { max-width: 320px; }
  .contact-inner { grid-template-columns: 1fr; }
  .blog-post { padding: 28px 22px; }
}

@media (max-width: 680px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px var(--edge) 28px;
    border-bottom: 1px solid var(--line);
    display: none;
    gap: 18px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .cards { grid-template-columns: 1fr; }
}
