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

:root {
  --bg: #fff;
  --bg-alt: #f5f5f5;
  --surface: #fff;
  --text: #222;
  --text-muted: #666;
  --accent: #698749;
  --accent-hover: #587438;
  --border: #e0e0e0;
  --nav-bg: #1a1a1a;
  --radius: 4px;
  --transition: 0.3s ease;
}

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

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Language Toggle ===== */
[data-lang="fr"] .lang-en {
  display: none;
}

[data-lang="en"] .lang-fr {
  display: none;
}

.lang-toggle {
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.lang-toggle:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: var(--nav-bg);
  color: #ccc;
  padding: 16px 24px;
  transition: transform var(--transition);
}

.cookie-banner.hidden {
  transform: translateY(100%);
  pointer-events: none;
}

.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner p {
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.75rem;
}

.btn-outline {
  background: none;
  border: 1px solid #666;
  color: #ccc;
}

.btn-outline:hover {
  border-color: #fff;
  color: #fff;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgb(26 26 26 / 50%);
  backdrop-filter: blur(12px);
  padding: 0;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-logo {
  margin-right: auto;
}

.nav-logo img {
  height: 56px;
  width: auto;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: #ccc;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  margin-top: 0;
  padding-top: 0;
  width: 100%;
  background: #111;
}

.hero-img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

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

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

.btn-full {
  width: 100%;
  text-align: center;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section-label {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
}

/* ===== About ===== */
.about-content {
  max-width: none;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.btn-wrap {
  text-align: center;
  margin-top: 40px;
}

#about {
  padding-bottom: 40px;
}

#portfolio {
  padding-top: 40px;
}

/* ===== Portfolio / Selected Work ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.portfolio-item {
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform var(--transition);
}

.portfolio-item:hover {
  transform: scale(1.03);
}

.portfolio-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #e0e0e0;
}

/* ===== Contact ===== */
#contact {
  padding-top: 40px;
}

#contact .container {
  text-align: center;
}

.contact-info {
  padding-top: 8px;
  display: inline-block;
}

.contact-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
  line-height: 1.6;
}

.contact-info a {
  color: var(--accent);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.contact-info a:hover {
  color: var(--accent-hover);
}

/* ===== Map ===== */
.map-section {
  width: 100%;
  line-height: 0;
}

.map-section iframe {
  width: 100%;
  display: block;
}

.map-placeholder {
  padding: 40px 24px;
  text-align: center;
  background: var(--bg-alt);
  line-height: 1.6;
}

.map-placeholder p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-links {
  margin-top: 8px;
}

.footer-links a {
  color: var(--accent);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent-hover);
}

/* ===== Privacy Page ===== */
.privacy-page {
  padding-top: 120px;
}

.privacy-page h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.privacy-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 32px;
}

.privacy-page h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}

.privacy-page p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.privacy-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 12px;
}

.privacy-page li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 4px;
}

.privacy-page a {
  color: var(--accent);
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (width <= 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--accent);
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    font-size: 1rem;
    color: #fff;
    padding: 14px 24px;
    text-align: right;
  }

  .section {
    padding: 60px 0;
  }

  .hero-img {
    height: 380px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (width <= 480px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
