/* ===== ATELIER NĀGA — Site Statique ===== */
/* Zero dependencies. Zero frameworks. Pure CSS. */

:root {
  --teal: #00838f;
  --teal-light: #e0f2f1;
  --teal-dark: #005f6b;
  --dark: #333;
  --gray: #666;
  --light-gray: #f5f5f5;
  --white: #fff;
  --font-heading: 'Figtree', 'Segoe UI', sans-serif;
  --font-body: 'Rubik', 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --content-width: 820px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
}
a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: disc; padding-left: 1.5em; }

/* ===== FONTS (local) ===== */
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/Figtree-VariableFont_wght.woff2') format('woff2'),
       url('../fonts/Figtree-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Rubik';
  src: url('../fonts/Rubik-VariableFont_wght.woff2') format('woff2'),
       url('../fonts/Rubik-VariableFont_wght.ttf') format('truetype');
       url('../fonts/Figtree-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

/* ===== LAYOUT ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.content-narrow { max-width: var(--content-width); margin: 0 auto; }

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo img { height: 60px; width: auto; }
.logo { display: flex; align-items: center; }

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav a {
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; transition: 0.3s; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 1rem 2rem; border-bottom: none; }
}

/* ===== PAGE BANNER ===== */
.page-banner {
  background: var(--light-gray);
  padding: 2rem 0;
  border-bottom: 1px solid #eee;
}
.page-banner h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 0.25rem;
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--teal); }

/* ===== HERO / ACCUEIL ===== */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.hero .subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

/* ===== ABOUT / TEXT SECTIONS ===== */
.text-section {
  padding: 3rem 0;
}
.text-section p {
  text-align: justify;
  margin-bottom: 1rem;
  color: var(--dark);
  line-height: 1.8;
}

/* ===== PROJECTS GRID ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.project-card .number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  padding: 0.5rem 1rem 0;
}
.project-card .card-title {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.25rem 1rem;
  color: var(--dark);
}
.project-card .card-subtitle {
  font-size: 0.8rem;
  color: var(--teal);
  padding: 0 1rem 1rem;
}

/* ===== CATEGORY PAGE ===== */
.category-header {
  padding: 2rem 0;
}
.category-header h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 0.25rem;
}
.category-header .cat-subtitle {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 1rem;
}
.category-header p {
  text-align: justify;
  line-height: 1.8;
  color: var(--dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 2rem 0;
}
.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.gallery-grid img:hover { opacity: 0.85; }

.portfolio-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}
.portfolio-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 6px;
  transition: background 0.2s;
}
.portfolio-card:hover { background: var(--teal-light); }
.portfolio-card img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.portfolio-card .info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.25rem;
}
.portfolio-card .info p {
  font-size: 0.8rem;
  color: var(--gray);
}

/* ===== PORTFOLIO DETAIL ===== */
.portfolio-detail {
  padding: 2rem 0 3rem;
}
.portfolio-detail .project-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--teal);
}
.portfolio-detail .project-subtitle {
  font-size: 1.1rem;
  color: var(--dark);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.portfolio-detail .meta-box {
  background: var(--light-gray);
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 2rem;
}
.portfolio-detail .meta-box ul { list-style: disc; padding-left: 1.5em; }
.portfolio-detail .meta-box li { margin-bottom: 0.35rem; font-size: 0.95rem; }
.portfolio-detail .meta-box strong { color: var(--dark); }
.portfolio-detail .project-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}
.portfolio-detail .project-content p {
  text-align: justify;
  line-height: 1.8;
}
.portfolio-detail .project-content img {
  width: 100%;
  border-radius: 4px;
}
.portfolio-detail .project-footer {
  border-top: 2px solid var(--teal);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 2rem;
}
.portfolio-detail .category-tag { color: var(--teal); font-weight: 500; }

@media (max-width: 768px) {
  .portfolio-detail .project-content {
    grid-template-columns: 1fr;
  }
}

/* ===== CONTACT ===== */
.contact-section {
  padding: 2rem 0 3rem;
}
.contact-info { margin-bottom: 2rem; }
.contact-info h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.contact-info li { margin-bottom: 0.35rem; }

.contact-form { max-width: 600px; }
.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}
.contact-form label .required { color: #e53935; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form button {
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 0.85rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}
.contact-form button:hover { background: var(--teal-dark); }
.form-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 4px;
  display: none;
}
.form-status.success { display: block; background: #e8f5e9; color: #2e7d32; }
.form-status.error { display: block; background: #fce4ec; color: #c62828; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: #aaa;
  padding: 2rem 0;
  margin-top: 3rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  font-size: 0.85rem;
}
.footer-inner a { color: #ccc; }
.footer-inner a:hover { color: var(--white); }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* ===== CONSTRUCTION NOTICE ===== */
.notice {
  text-align: center;
  padding: 1.5rem;
  color: var(--teal);
  font-style: italic;
  font-size: 1rem;
  border-top: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  margin: 2rem 0;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
