/* ============================================================
   Dorunaitsu — Stylesheet
   Theme: Cream · Forest Green · Gold
   Stack: Pure CSS · Mobile-first · No framework
   ============================================================ */

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

:root {
  /* ── Brand palette ── */
  --green-deep:   #0E3D22;   /* très sombre, textes forts */
  --green-mid:    #1A6B3A;   /* principal */
  --green-light:  #2E9455;   /* hover / accents */
  --green-pale:   #D4EAD9;   /* surfaces légères */
  --green-tint:   #EBF5EE;   /* fond section alternée */

  --gold:         #C5973A;   /* or principal */
  --gold-light:   #E2B95A;   /* or clair hover */
  --gold-pale:    #F5EBD0;   /* tint or fond */

  --cream:        #FAF7F2;   /* fond principal */
  --cream-deep:   #F2EDE4;   /* fond légèrement plus sombre */
  --white:        #FFFFFF;

  --text-primary:   #0E2A18;
  --text-secondary: #3D5A45;
  --text-muted:     #7A9680;
  --text-inverse:   #FAF7F2;

  /* ── Surface / Glass ── */
  --surface:        rgba(255, 255, 255, 0.65);
  --surface-hover:  rgba(255, 255, 255, 0.85);
  --border:         rgba(26, 107, 58, 0.12);
  --border-hover:   rgba(26, 107, 58, 0.28);
  --shadow-card:    0 2px 24px rgba(14, 61, 34, 0.08);
  --shadow-hover:   0 8px 40px rgba(14, 61, 34, 0.14);

  /* ── Typography ── */
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* ── Spacing 8pt ── */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4rem;
  --s7: 6rem;

  /* ── Effects ── */
  --blur:       blur(16px);
  --radius-sm:  0.5rem;
  --radius-md:  1rem;
  --radius-lg:  1.5rem;
  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Utilities ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--s3);
}

.gradient-text {
  background: linear-gradient(135deg, var(--green-mid) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-card);
}

.section {
  padding-block: var(--s7);
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: var(--s6);
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s1);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--green-deep);
  margin-bottom: var(--s2);
}

.section-sub {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.875rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  min-height: 48px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--green-mid);
  color: var(--text-inverse);
  box-shadow: 0 2px 12px rgba(26, 107, 58, 0.25);
}

.btn-primary:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26, 107, 58, 0.35);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--green-mid);
  border: 1.5px solid var(--green-mid);
}

.btn-ghost:hover {
  background: var(--green-tint);
  transform: translateY(-2px);
}

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 1rem;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(250, 247, 242, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 2px 20px rgba(14, 61, 34, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--s3);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.125rem;
}

.nav-logo:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.nav-logo-img {
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--s4);
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--green-deep);
  outline: none;
}

.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green-deep);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.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); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  padding-top: 5rem;
  background: var(--cream);
}

/* Subtle texture / gradient */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 40%, rgba(197, 151, 58, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 10% 80%, rgba(26, 107, 58, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* Decorative grid lines */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.grid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.06;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: var(--s7);
  grid-column: 1;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: var(--s3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--green-deep);
  margin-bottom: var(--s3);
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: var(--s4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

/* Logo block right side */
.hero-logo-block {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 2;
  padding: var(--s4);
}

.hero-logo-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow:
    0 24px 80px rgba(14, 61, 34, 0.18),
    0 4px 20px rgba(197, 151, 58, 0.15);
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-scroll-indicator span {
  display: block;
  width: 1.5px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--green-mid));
  animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: top; }
}

/* ── Divider ornament ────────────────────────────────────── */
.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding-block: 0;
  color: var(--gold);
}

.divider-ornament::before,
.divider-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border));
}

.divider-ornament::before { background: linear-gradient(to right, transparent, var(--gold-pale)); }
.divider-ornament::after  { background: linear-gradient(to left,  transparent, var(--gold-pale)); }

.divider-ornament svg {
  width: 18px;
  height: 18px;
  opacity: 0.5;
}

/* ── Services ────────────────────────────────────────────── */
.services {
  background: var(--cream-deep);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s3);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--s4);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color var(--transition),
              box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

/* Gold top border accent on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-mid), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-tint);
  border: 1px solid rgba(26, 107, 58, 0.15);
  border-radius: var(--radius-sm);
  margin-bottom: var(--s3);
}

.service-icon svg {
  width: 22px;
  height: 22px;
  color: var(--green-mid);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ── About ───────────────────────────────────────────────── */
.about {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: center;
}

/* Visual: logo display */
.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover), 0 0 0 1px var(--border);
}

/* Decorative ring */
.about-visual::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px dashed rgba(197, 151, 58, 0.25);
  animation: spin 30s linear infinite;
}

.about-visual::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px dashed rgba(26, 107, 58, 0.12);
  animation: spin 45s linear infinite reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.about-content .section-title {
  text-align: left;
}

.about-content .section-eyebrow {
  text-align: left;
}

.about-text {
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: var(--s2);
  font-size: 0.9875rem;
}

.about-manifesto {
  margin-top: var(--s4);
  padding: var(--s3) var(--s4);
  background: linear-gradient(135deg, var(--green-tint), var(--gold-pale));
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold);
}

.about-manifesto blockquote {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  font-style: italic;
  color: var(--green-deep);
  line-height: 1.6;
  margin: 0;
}

/* ── Contact ─────────────────────────────────────────────── */
.contact {
  background: var(--cream-deep);
}

.contact-card {
  max-width: 720px;
  margin-inline: auto;
  padding: var(--s5) var(--s6);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.contact-items {
  display: flex;
  gap: var(--s4);
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-divider {
  width: 1px;
  height: 80px;
  background: var(--border);
  align-self: center;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-tint);
  border: 1px solid rgba(26, 107, 58, 0.15);
  border-radius: var(--radius-sm);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  color: var(--green-mid);
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-value {
  font-size: 0.9375rem;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.6;
  font-style: normal;
}

a.contact-value:hover {
  color: var(--green-mid);
  transition: color var(--transition);
}

a.contact-value:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  padding-block: var(--s4);
  border-top: 1px solid var(--border);
  background: var(--green-deep);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s2);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-inverse);
}

.footer-logo-img {
  border-radius: 4px;
  object-fit: cover;
}

.footer-copy,
.footer-location {
  font-size: 0.8125rem;
  color: rgba(250, 247, 242, 0.5);
}

/* ── Scroll reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-logo-block {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-visual {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(250, 247, 242, 0.97);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: var(--s2) var(--s3);
    box-shadow: 0 8px 24px rgba(14, 61, 34, 0.1);
  }

  .nav-links.open { display: flex; }
  .nav-links li { padding-block: 0.625rem; }
  .nav-links a { font-size: 1rem; }
  .nav-toggle { display: flex; }

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

  .contact-card { padding: var(--s4); }
  .contact-items { flex-direction: column; gap: var(--s3); }
  .contact-divider { width: 80px; height: 1px; align-self: auto; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
