/* ================================================
   Studio Branche — Template Chantier (269 €)
   Palette dark + accent chartreuse
   ================================================ */

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

:root {
  --bg:      #0e0e10;
  --bg-alt:  #151517;
  --surface: #1c1c1f;
  --border:  #2a2a2e;
  --ink:     #f5f5f4;
  --ink-dim: #a1a1a6;
  --accent:  #c8f542;
  --accent-dim: #a6cc35;
  --radius:  0.5rem;
  --wrap:    min(1120px, calc(100% - 2.5rem));
  --ease:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--accent-dim); }

.wrap { width: var(--wrap); margin: 0 auto; }


/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ================================================
   Header
   ================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 14, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--ink-dim);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.25s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  z-index: 110;
}
.hamburger .line {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

body.nav-open .hamburger .line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .hamburger .line:nth-child(2) { opacity: 0; }
body.nav-open .hamburger .line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay mobile */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
body.nav-open .nav-overlay {
  display: block;
  opacity: 1;
}

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

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100dvh;
    flex-direction: column;
    gap: 0;
    background: var(--bg-alt);
    padding: 5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 95;
    border-left: 1px solid var(--border);
  }
  body.nav-open .nav-links {
    transform: translateX(0);
  }
  .nav-links a {
    font-size: 1.2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    display: block;
  }
}


/* ================================================
   Hero
   ================================================ */
.hero {
  padding: 6rem 0 5rem;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin-bottom: 1.5rem;
  max-width: 14ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-dim);
  max-width: 42ch;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

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


/* ================================================
   Buttons
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-dim);
  color: var(--bg);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-arrow::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }


/* ================================================
   Section Helpers
   ================================================ */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.section-intro {
  color: var(--ink-dim);
  max-width: 52ch;
  margin-bottom: 3rem;
  line-height: 1.65;
}


/* ================================================
   Expertise Cards
   ================================================ */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.expertise-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.expertise-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(200, 245, 66, 0.08);
}

.expertise-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.6rem;
  background: rgba(200, 245, 66, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.expertise-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.expertise-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.expertise-card p {
  font-size: 0.88rem;
  color: var(--ink-dim);
  line-height: 1.55;
}

@media (max-width: 900px) { .expertise-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .expertise-grid { grid-template-columns: 1fr; } }


/* ================================================
   Project Cards (home + travaux)
   ================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: default;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.project-thumb {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.4rem 1.4rem;
  background: linear-gradient(to top, rgba(14,14,16,0.92) 30%, transparent);
}
.project-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.project-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (max-width: 600px) { .projects-grid { grid-template-columns: 1fr; } }

/* Extended grid for travaux page (3 cols) */
.projects-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .projects-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .projects-grid-3 { grid-template-columns: 1fr; } }

.project-desc {
  font-size: 0.85rem;
  color: var(--ink-dim);
  margin-top: 0.3rem;
}


/* ================================================
   Stats Bar
   ================================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  text-align: center;
}
.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--ink-dim);
  margin-top: 0.4rem;
}

@media (max-width: 600px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}


/* ================================================
   CTA Banner
   ================================================ */
.cta-banner {
  text-align: center;
  padding: 5rem 2rem;
}

.cta-banner h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}
.cta-banner p {
  color: var(--ink-dim);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}


/* ================================================
   Filters (travaux)
   ================================================ */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.filter-btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}


/* ================================================
   Timeline (méthode)
   ================================================ */
.timeline {
  position: relative;
  padding-left: 4rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-step {
  position: relative;
  padding-bottom: 3.5rem;
}
.timeline-step:last-child { padding-bottom: 0; }

.step-number {
  position: absolute;
  left: -4rem;
  top: -0.15rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.timeline-step h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.timeline-step p {
  color: var(--ink-dim);
  max-width: 52ch;
  line-height: 1.65;
}

@media (max-width: 500px) {
  .timeline { padding-left: 3rem; }
  .step-number { left: -3rem; width: 2rem; height: 2rem; font-size: 0.8rem; }
  .timeline::before { left: 0.95rem; }
}


/* ================================================
   Strengths (méthode)
   ================================================ */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.strength-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: border-color 0.3s var(--ease);
}
.strength-card:hover { border-color: var(--accent); }

.strength-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.strength-card h3 .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.strength-card p {
  font-size: 0.88rem;
  color: var(--ink-dim);
  line-height: 1.55;
}

@media (max-width: 700px) { .strengths-grid { grid-template-columns: 1fr; } }


/* ================================================
   Contact Layout
   ================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-line:first-of-type { border-top: 1px solid var(--border); }

.contact-line-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-line-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.contact-line-text span {
  font-size: 0.88rem;
  color: var(--ink-dim);
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}


/* ================================================
   Form
   ================================================ */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 245, 66, 0.12);
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' fill='none' stroke='%23a1a1a6' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.form-note {
  padding: 1.2rem 1.5rem;
  background: rgba(200, 245, 66, 0.08);
  border: 1px solid rgba(200, 245, 66, 0.2);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--accent);
  text-align: center;
}


/* ================================================
   Page Header (inner pages)
   ================================================ */
.page-header {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 0.8rem;
}
.page-header p {
  color: var(--ink-dim);
  font-size: 1.05rem;
  max-width: 50ch;
}


/* ================================================
   Footer
   ================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand .logo { margin-bottom: 0.5rem; display: inline-block; }
.footer-brand p { font-size: 0.85rem; color: var(--ink-dim); max-width: 28ch; }

.footer-links { display: flex; gap: 3rem; }
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.8rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--ink-dim); font-size: 0.88rem; }
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-dim);
}

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 1.5rem; }
}


/* ================================================
   Utilities
   ================================================ */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mb-3 { margin-bottom: 2rem; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* ================================================
   Gradient Placeholders (project thumbnails)
   ================================================ */
.grad-1 { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); }
.grad-2 { background: linear-gradient(135deg, #2d1b4e 0%, #5b2c6f 50%, #8e44ad 100%); }
.grad-3 { background: linear-gradient(135deg, #0c2434 0%, #1a5276 50%, #2e86c1 100%); }
.grad-4 { background: linear-gradient(135deg, #1b2a1b 0%, #2d5a2d 50%, #52be80 100%); }
.grad-5 { background: linear-gradient(135deg, #2c1810 0%, #6e3b2a 50%, #d35400 100%); }
.grad-6 { background: linear-gradient(135deg, #1a1a2e 0%, #34495e 50%, #5d6d7e 100%); }
