/* ============================================================
   ATELIER DIGITAL — Main Stylesheet
   ============================================================ */

/* 1. Variables */
:root {
  --cream: #F7F3EC;
  --cream-dark: #EDE8DF;
  --ink: #1C1917;
  --ink-muted: #57534E;
  --terracotta: #C4622D;
  --terracotta-hover: #A8521F;
  --warm-gray: #78716C;
  --border: #D6CFC4;

  --font-title: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --max-w: 1120px;
  --nav-h: 72px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 2. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* 3. Container */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* 4. Typography */
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
p { line-height: 1.75; }
strong { font-weight: 600; }

/* 5. Navigation */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 243, 236, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  transition: box-shadow var(--transition);
}

.nav--scrolled { box-shadow: 0 2px 24px rgba(28, 25, 23, 0.07); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.nav-logo span { color: var(--terracotta); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color var(--transition);
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.nav-cta {
  background: var(--ink) !important;
  color: var(--cream) !important;
  padding: 0.55rem 1.25rem;
  border-radius: 100px;
  transition: background var(--transition) !important;
}

.nav-cta:hover { background: var(--terracotta) !important; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 101;
}

.nav-burger span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

/* 6. Page spacing */
main { padding-top: var(--nav-h); }

/* 7. Section base */
.section { padding: 5rem 0; }
.section--lg { padding: 7rem 0; }
.section--alt { background: var(--cream-dark); }

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.section-title { margin-bottom: 1.5rem; }

.section-intro {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 640px;
  line-height: 1.8;
}

/* 8. Hero */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -8%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(196, 98, 45, 0.09) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: -5%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(196, 98, 45, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { max-width: 780px; position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--terracotta);
  margin-bottom: 1.75rem;
  padding: 0.4rem 1rem;
  background: rgba(196, 98, 45, 0.1);
  border-radius: 100px;
}

.hero h1 { margin-bottom: 1.5rem; letter-spacing: -0.02em; }

.hero h1 em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 300;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--ink-muted);
  max-width: 580px;
  margin-bottom: 2.75rem;
  line-height: 1.85;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* 9. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--terracotta);
  color: #fff;
}

.btn-primary:hover {
  background: var(--terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(196, 98, 45, 0.28);
}

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

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.btn-outline-terra {
  background: transparent;
  color: var(--terracotta);
  border: 1.5px solid var(--terracotta);
}

.btn-outline-terra:hover {
  background: var(--terracotta);
  color: #fff;
  transform: translateY(-1px);
}

/* 10. Problem section */
.problem-text {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--ink);
  max-width: 700px;
  margin-bottom: 3.5rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.problem-card {
  padding: 2rem 1.75rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: box-shadow var(--transition);
}

.problem-card:hover { box-shadow: 0 8px 24px rgba(28, 25, 23, 0.06); }

.problem-icon {
  width: 48px;
  height: 48px;
  background: rgba(196, 98, 45, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.problem-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.problem-card p { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.7; }

/* 11. Services preview */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  padding: 2.5rem 2rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all var(--transition);
  cursor: pointer;
  display: block;
}

.service-card:hover {
  border-color: var(--terracotta);
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(28, 25, 23, 0.09);
}

.service-card-num {
  font-family: var(--font-title);
  font-size: 3.5rem;
  color: var(--terracotta);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 1rem;
  font-weight: 300;
}

.service-card h3 { margin-bottom: 0.75rem; font-size: 1.25rem; }
.service-card p { font-size: 0.92rem; color: var(--ink-muted); margin-bottom: 1.75rem; line-height: 1.7; }

.service-card-arrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--terracotta);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* 12. Testimonial */
.testimonial-section {
  background: var(--ink);
  color: var(--cream);
}

.testimonial-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 5.5rem 0;
}

.testimonial-quote-mark {
  font-family: var(--font-title);
  font-size: 5rem;
  color: var(--terracotta);
  opacity: 0.4;
  line-height: 0.7;
  margin-bottom: 1.5rem;
}

.testimonial-quote {
  font-family: var(--font-title);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 2rem;
  color: rgba(247, 243, 236, 0.92);
}

.testimonial-author {
  font-size: 0.875rem;
  color: rgba(247, 243, 236, 0.45);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* 13. CTA section */
.cta-section {
  background: var(--cream-dark);
  text-align: center;
  padding: 6rem 0;
}

.cta-section h2 { margin-bottom: 1rem; }
.cta-section > .container > p { color: var(--ink-muted); margin-bottom: 2.5rem; font-size: 1.05rem; }

/* 14. Services page */
.page-hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.page-hero .section-label { margin-bottom: 0.75rem; }
.page-hero h1 { margin-bottom: 1.25rem; }
.page-hero .section-intro { }

.offer {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--border);
}

.offer:last-child { border-bottom: none; }

.offer-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: start;
}

.offer-num {
  font-family: var(--font-title);
  font-size: 6rem;
  color: var(--terracotta);
  opacity: 0.12;
  line-height: 1;
  margin-bottom: 0.25rem;
  font-weight: 300;
}

.offer h2 { margin-bottom: 1.25rem; }

.offer-desc {
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

.offer-examples {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.offer-example {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem 1.5rem;
  background: var(--cream-dark);
  border-radius: 12px;
  border-left: 3px solid var(--terracotta);
}

.offer-example-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 0.1rem; }
.offer-example p { font-size: 0.95rem; color: var(--ink); line-height: 1.7; }

.offer-cta { margin-top: 2.5rem; }

/* 15. Réalisations */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.case-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.case-card:hover {
  box-shadow: 0 16px 40px rgba(28, 25, 23, 0.08);
  transform: translateY(-3px);
}

.case-tag {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: rgba(196, 98, 45, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.case-card h3 { margin-bottom: 1.75rem; font-size: 1.2rem; }

.case-row { margin-bottom: 1.25rem; }

.case-row-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 0.35rem;
}

.case-row p { font-size: 0.95rem; color: var(--ink); line-height: 1.65; }

.case-result {
  margin-top: 1.75rem;
  padding: 1.1rem 1.25rem;
  background: rgba(196, 98, 45, 0.08);
  border-radius: 10px;
}

.case-result-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.35rem;
}

.case-result p {
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
}

/* 16. About page */
.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 6rem;
  align-items: start;
  padding: 5rem 0;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.95;
  margin-bottom: 1.5rem;
}

.about-text p:last-child { margin-bottom: 0; }

.about-tools {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--cream-dark);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.8;
}

.about-tools strong { color: var(--ink); }

.about-values { position: sticky; top: calc(var(--nav-h) + 2rem); }

.about-values h2 { margin-bottom: 2rem; }

.values-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.value-card {
  padding: 1.75rem 2rem;
  background: var(--cream-dark);
  border-radius: 14px;
  border-left: 3px solid transparent;
  transition: border-color var(--transition);
}

.value-card:hover { border-color: var(--terracotta); }

.value-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.value-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.value-card p { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.7; }

/* 17. Contact form */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: start;
  padding: 5rem 0;
}

.contact-info h2 { margin-bottom: 1.25rem; }
.contact-info > p { color: var(--ink-muted); line-height: 1.85; margin-bottom: 2.5rem; font-size: 1.025rem; }

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.contact-item a {
  color: var(--ink);
  transition: color var(--transition);
}
.contact-item a:hover { color: var(--terracotta); }

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: rgba(196, 98, 45, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* VCF download button */
.vcf-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.9rem 1.8rem;
  background: var(--terracotta);
  border-radius: 100px;
  margin: 1.5rem 0;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
}

.vcf-btn:hover {
  background: var(--terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(196, 98, 45, 0.28);
}

.vcf-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vcf-btn strong {
  font-weight: 500;
  color: inherit;
}

.vcf-btn small {
  font-size: 0.78rem;
  opacity: 0.7;
  font-weight: 400;
  margin-left: 0.35rem;
}

.contact-mention {
  font-size: 0.875rem;
  color: var(--warm-gray);
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  line-height: 1.75;
}

/* Form */
.form-card {
  background: var(--cream-dark);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--border);
}

.form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.45rem; }

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem 1rem;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.975rem;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2357534E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-color: var(--cream);
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(196, 98, 45, 0.1);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--warm-gray); }

.form-success {
  display: none;
  padding: 1.5rem 2rem;
  background: rgba(196, 98, 45, 0.1);
  border-radius: 12px;
  color: var(--terracotta);
  font-weight: 500;
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
}

/* 18. Footer */
.footer {
  background: var(--ink);
  color: rgba(247, 243, 236, 0.55);
  padding: 3.5rem 0 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(247, 243, 236, 0.1);
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cream);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p { font-size: 0.875rem; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.25rem;
  align-items: center;
}

.footer-nav a {
  font-size: 0.875rem;
  color: rgba(247, 243, 236, 0.55);
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

/* 19. Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Ensure hero content visible without scroll */
.hero .reveal { transition-delay: 0s; }
.hero .reveal-delay-1 { transition-delay: 0.12s; }
.hero .reveal-delay-2 { transition-delay: 0.24s; }
.hero .reveal-delay-3 { transition-delay: 0.36s; }

/* 20. Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* 21. Text alignment helpers */
.text-center { text-align: center; }
.text-center .section-intro { margin-left: auto; margin-right: auto; }

/* 22. Responsive */
@media (max-width: 900px) {
  .problem-grid { grid-template-columns: 1fr; gap: 1rem; }
  .services-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; gap: 3.5rem; }
  .about-values { position: static; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .offer-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-burger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform 0.35s var(--ease);
    z-index: 99;
    box-shadow: 0 8px 24px rgba(28, 25, 23, 0.1);
  }

  .nav-links.is-open { transform: translateY(0); }
  .nav-links a { font-size: 1.1rem; }
  .nav-cta { width: fit-content; }
}

@media (max-width: 600px) {
  :root { --nav-h: 64px; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.75rem; }

  .hero { padding: 2.5rem 0 3rem; min-height: auto; }
  .section { padding: 3.5rem 0; }
  .section--lg { padding: 4rem 0; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .testimonial-inner { padding: 3.5rem 0; }
  .cta-section { padding: 4rem 0; }
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-card { padding: 1.75rem 1.25rem; }
  .offer-num { font-size: 4rem; }
}
