*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --brown:        #5C3B1E;
  --brown-light:  #8B5E3C;
  --cream:        #F5F0E8;
  --green:        #3A5A2B;
  --text:         #2C2C2C;
  --muted:        #888;
  --border:       #D9D0C0;
  --radius:       6px;
}
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
}

/* ── HEADER / NAV ── */
header {
  background: var(--brown);
  color: white;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  color: white;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--cream);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
nav { display: flex; gap: .2rem; }
nav a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  padding: .45rem .85rem;
  border-radius: var(--radius);
  font-size: .9rem;
  transition: all .15s;
}
nav a:hover, nav a.active { color: white; background: rgba(255,255,255,.15); }
nav a.active { font-weight: 600; }

/* ── HAMBURGER (mobile) ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .4rem;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: white;
  border-radius: 2px;
}
.nav-mobile {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--brown);
  flex-direction: column;
  padding: .5rem 1rem 1rem;
  z-index: 99;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  padding: .7rem .5rem;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a.active { color: white; font-weight: 600; }

/* ── HERO ── */
.hero-img { position: relative; overflow: hidden; }
.hero-img img { width: 100%; height: 420px; object-fit: cover; display: block; }
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(50,25,5,.55);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
}
.tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  padding: .3rem .9rem;
  border-radius: 20px;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 1.2rem;
}
.hero-overlay h1 {
  font-size: 2.6rem; font-weight: 800;
  color: white; margin-bottom: .8rem; line-height: 1.15;
}
.hero-overlay p {
  font-size: 1.1rem; color: rgba(255,255,255,.85);
  max-width: 560px; margin: 0 auto 2rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600; font-size: 1rem;
  cursor: pointer; border: none;
  text-decoration: none; transition: all .15s;
}
.btn-primary { background: white; color: var(--brown); }
.btn-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,.5); margin-left: .75rem; }
.btn-primary:hover { background: var(--cream); }
.btn-outline:hover { border-color: white; }

/* ── SECTIONS ── */
main { display: block; }
section { padding: 3rem 2rem; max-width: 1000px; margin: 0 auto; }
h1, h2 { font-size: 1.7rem; color: var(--brown); margin-bottom: .4rem; }
h3 { font-size: 1.1rem; color: var(--brown-light); margin-bottom: .8rem; }
.section-subtitle { color: var(--muted); margin-bottom: 2rem; font-size: .95rem; }
hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* ── CARDS ── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.card-icon { font-size: 2rem; margin-bottom: .75rem; }
.card img {
  width: 100%; border-radius: calc(var(--radius) - 2px);
  object-fit: cover; display: block; margin-bottom: .9rem;
}
.card img.h140 { height: 140px; }
.card img.h160 { height: 160px; }
.card img.h180 { height: 180px; }
.card img.h200 { height: 200px; }
.card p { color: #555; font-size: .9rem; line-height: 1.5; margin-top: .5rem; }

/* ── PHOTO STRIPS ── */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 1.5rem 0; }
.photo-strip img {
  width: 100%; height: 180px;
  object-fit: cover; border-radius: var(--radius); display: block;
}

/* ── BADGES ── */
.badge {
  display: inline-block;
  background: var(--green);
  color: white;
  padding: .25rem .7rem;
  border-radius: 20px;
  font-size: .78rem; font-weight: 600;
  margin: .2rem .2rem 0 0;
}
.badge-brown { background: var(--brown-light); }

/* ── TABLE ── */
table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .9rem; }
th { background: var(--brown); color: white; padding: .6rem 1rem; text-align: left; }
td { padding: .55rem 1rem; border-bottom: 1px solid var(--border); }
tr:nth-child(even) td { background: #faf8f4; }

/* ── FORM ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .3rem; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: .85rem; font-weight: 600; color: var(--brown); }
input, select, textarea {
  padding: .55rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem; background: white; font-family: inherit;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--brown-light); border-color: transparent;
}
.form-submit { margin-top: 1rem; }

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem; margin-top: 1.5rem;
}
.gallery-grid img {
  width: 100%; height: 200px;
  object-fit: cover; border-radius: var(--radius); display: block;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.gallery-grid img:hover { transform: scale(1.02); box-shadow: 0 4px 16px rgba(0,0,0,.15); }

/* ── LIGHTBOX ── */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.85); z-index: 200;
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  color: white; font-size: 2rem; cursor: pointer;
  line-height: 1; background: none; border: none;
}

/* ── TUTO ACCORDION ── */
.tuto-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .6rem; overflow: hidden; background: white;
}
.tuto-header {
  padding: .9rem 1.1rem; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none; color: var(--brown);
}
.tuto-header:hover { background: #faf8f4; }
.tuto-body {
  display: none; padding: 1rem 1.1rem;
  font-size: .9rem; color: #555; line-height: 1.6;
  border-top: 1px solid var(--border);
}
.tuto-body.open { display: block; }
.tuto-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .5rem; margin-top: 1rem; }
.tuto-thumbs img { width: 100%; height: 80px; object-fit: cover; border-radius: var(--radius); display: block; cursor: pointer; }

/* ── CONVERTER ── */
.converter-box {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.converter-box input[type=number] { width: 100px; }
.converter-box .result { font-size: 1.3rem; font-weight: 700; color: var(--green); }

/* ── USEFUL LINKS ── */
.links-list { list-style: none; margin-top: 1rem; }
.links-list li { padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.links-list li:last-child { border-bottom: none; }
.links-list a { color: var(--brown); text-decoration: none; font-weight: 500; }
.links-list a:hover { text-decoration: underline; }

/* ── FOOTER ── */
footer {
  background: var(--brown);
  color: rgba(255,255,255,.7);
  text-align: center; padding: 1.5rem;
  font-size: .85rem; margin-top: 3rem;
}
footer strong { color: white; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .hero-overlay h1 { font-size: 1.8rem; }
  nav { display: none; }
  .hamburger { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .photo-strip { grid-template-columns: 1fr; }
  .photo-strip img { height: 220px; }
}
