/* =====================================================================
   creation-site-internet-metz.fr — Design system « Émeraude Premium » v2
   Langage visuel propre (≠ maximebonnet.com) : header pilule flottant,
   boutons pilule à flèche, sur-titres en chips, offre en bento.
   Fraunces (titres serif) + Manrope (corps). Maquette autoporteuse.
   ===================================================================== */

:root {
  /* Palette « Noir & Doré Premium » — clair dans l'ensemble,
     accents dorés (#D4AF37) + sections/ancrages noirs (#1A1A1A).
     Les noms de variables restent pour ne pas casser les règles existantes. */
  --emerald:      #D4AF37;   /* doré — accent principal (icônes, titres, boutons) */
  --emerald-dark: #9A7A1E;   /* doré profond — liens, états survol, montants */
  --forest:       #1A1A1A;   /* noir profond — fonds de sections sombres, footer */
  --emerald-soft: #F7EFD9;   /* crème dorée — fonds de chips & pastilles d'icônes */
  --sand:         #D4AF37;   /* doré — accents sur fond sombre (badges) */

  --ink:    #1A1A1A;
  --ink-2:  #2B2B28;
  --muted:  #5C5C54;
  --line:   #E7E3D8;
  --bg:     #FBFAF6;
  --bg-alt: #F2EFE7;
  --white:  #FFFFFF;

  --shadow-sm: 0 1px 2px rgba(20, 20, 18, .05), 0 4px 16px rgba(20, 20, 18, .07);
  --shadow-md: 0 10px 28px rgba(20, 20, 18, .10), 0 18px 44px rgba(20, 20, 18, .07);
  --shadow-lg: 0 28px 64px rgba(20, 20, 18, .22);

  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 26px;

  --container: 1160px;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink-2); background: var(--bg);
  line-height: 1.7; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--emerald-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--forest); }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.1; font-weight: 600; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.28rem; }
p  { margin: 0 0 1.1em; }
strong { color: var(--ink); font-weight: 700; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(64px, 8vw, 116px) 0; }
.section--alt { background: var(--bg-alt); }
.section--forest { background: var(--forest); color: #CFCABE; }
.section--forest h2, .section--forest h3 { color: #fff; }
.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--muted); }
.section--forest .lead { color: #B6B0A3; }

/* ---------- Eyebrow = chip ---------- */
.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 700;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--emerald-dark); background: var(--emerald-soft);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.section--forest .eyebrow { color: #fff; background: rgba(255, 255, 255, .12); }

.section-head { max-width: 720px; margin: 0 0 clamp(42px, 5vw, 64px); }
.section-head.center { text-align: center; margin-inline: auto; }

/* ---------- Buttons : pilule + flèche ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-body);
  font-weight: 700; font-size: 1rem; padding: 13px 26px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; line-height: 1;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn .ar { display: inline-flex; transition: transform .2s ease; }
.btn:hover .ar { transform: translateX(4px); }
.btn--primary { background: var(--emerald); color: #1A1A1A; }
.btn--primary:hover { background: #1A1A1A; color: var(--emerald); }
.btn--ghost { background: transparent; color: var(--forest); border-color: rgba(26, 26, 26, .32); }
.btn--ghost:hover { border-color: var(--forest); background: var(--forest); color: #fff; }
.btn--light { background: #fff; color: var(--forest); }
.btn--light:hover { background: #efece3; color: var(--forest); }
.btn--lg { padding: 16px 32px; font-size: 1.06rem; }
.btn:focus-visible { outline: 3px solid rgba(212, 175, 55, .55); outline-offset: 3px; }

/* ---------- Header : pilule flottante ---------- */
.site-header { position: sticky; top: 14px; z-index: 50; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  height: 64px; padding: 0 12px 0 18px;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(170%) blur(14px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand__logo { height: 40px; width: auto; display: block; }
.brand__mark { width: 38px; height: 38px; border-radius: 11px; background: var(--emerald); color: #fff; display: grid; place-items: center; flex: none; }
.brand__mark svg { width: 20px; height: 20px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 1.06rem; color: var(--ink); letter-spacing: -.01em; }
.brand__role { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--emerald); font-weight: 700; }
.nav__menu { display: flex; align-items: center; }
.nav__links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink-2); font-weight: 600; font-size: .96rem; }
.nav__links a:hover, .nav__links a.active { color: var(--emerald); }
.nav__right { display: flex; align-items: center; gap: 16px; }
.nav__phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .92rem; color: var(--ink); }
.nav__phone svg { color: var(--emerald); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { content: ""; display: block; width: 22px; height: 2px; background: var(--ink); transition: .25s; }
.nav__toggle span::before { transform: translateY(-7px); }
.nav__toggle span::after  { transform: translateY(5px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(52px, 6vw, 88px); overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -160px; right: -120px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(212,175,55,.18), rgba(212,175,55,0) 68%); pointer-events: none; }
.hero__inner { position: relative; max-width: 820px; }
.hero h1 { margin-bottom: .3em; }
.hero h1 em { font-style: italic; color: var(--emerald); }
.hero__sub { font-size: clamp(1.12rem, 2vw, 1.34rem); color: var(--muted); max-width: 640px; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
/* Bandeau réassurance : ligne à séparateurs (≠ liste à coches) */
.reassure { display: flex; flex-wrap: wrap; align-items: center; list-style: none; padding: 0; margin: 44px 0 0; }
.reassure li { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.reassure li:not(:last-child)::after { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--emerald); margin: 0 16px; vertical-align: middle; }

/* ---------- Bento (offre) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 18px; }
.bento__tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.bento__tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bento__tile--feature { grid-column: span 2; grid-row: span 2; background: var(--forest); color: #CFCABE; border-color: var(--forest); display: flex; flex-direction: column; justify-content: space-between; padding: 34px; }
.bento__tile--feature h3 { color: #fff; font-size: 1.7rem; }
.bento__tile.bento__tile--feature p { color: #fff; }
.tile__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--emerald-soft); color: var(--emerald); display: grid; place-items: center; margin-bottom: 18px; }
.bento__tile--feature .tile__icon { background: rgba(255,255,255,.12); color: #fff; }
.tile__icon svg { width: 23px; height: 23px; }
.bento__tile h3 { margin-bottom: .35em; }
.bento__tile p { margin: 0; font-size: .96rem; color: var(--muted); }

/* ---------- Cards (préoccupations) : étiquette « question » ---------- */
.qcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.qcard { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--emerald); border-radius: var(--radius-sm); padding: 26px; box-shadow: var(--shadow-sm); }
.qcard h3 { font-size: 1.12rem; color: var(--forest); margin-bottom: .4em; }
.qcard p { margin: 0; font-size: .96rem; color: var(--muted); }

/* ---------- Tableau comparatif ---------- */
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.cmp { width: 100%; min-width: 660px; border-collapse: collapse; font-size: .96rem; }
.cmp caption { caption-side: bottom; padding: 14px 20px; font-size: .87rem; color: var(--muted); text-align: left; }
.cmp th, .cmp td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font-family: var(--font-head); font-weight: 600; color: var(--ink); background: var(--bg-alt); font-size: 1.02rem; }
.cmp thead th.is-me { background: var(--emerald-soft); }
.cmp tbody th { font-weight: 700; color: var(--ink); width: 24%; }
.cmp td { color: var(--muted); }
.cmp td.is-me { background: #FDFBF3; color: var(--ink-2); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }

/* ---------- Liste de secteurs / quartiers ---------- */
.taglist { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.taglist li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }

/* ---------- Zones ---------- */
.zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.zone { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.zone:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--emerald); }
.zone h3 { color: var(--ink); margin-bottom: .3em; }
.zone p { color: var(--muted); font-size: .95rem; margin: 0 0 14px; }
.zone__towns { font-size: .88rem; color: var(--emerald-dark); font-weight: 600; margin-bottom: 16px; }
.zone__link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--emerald); font-size: .95rem; }
.zone__link .ar { transition: transform .2s; }
.zone:hover .zone__link .ar { transform: translateX(4px); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; align-items: stretch; }
.price { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.price--featured { background: var(--forest); border-color: var(--forest); color: #CFCABE; position: relative; box-shadow: var(--shadow-md); }
.price--featured h3, .price--featured .price__amount { color: #fff; }
.price--featured .price__amount span, .price--featured .price__desc { color: #B6B0A3; }
.price--featured::after { content: "Le plus choisi"; position: absolute; top: -13px; left: 28px; background: var(--sand); color: var(--forest); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 13px; border-radius: 999px; }
.price h3 { margin-bottom: .15em; }
.price__amount { font-family: var(--font-head); font-size: 2.4rem; color: var(--emerald-dark); margin: 8px 0 4px; }
.price__amount span { font-size: 1rem; color: var(--muted); font-family: var(--font-body); }
.price__desc { color: var(--muted); font-size: .95rem; }
.price ul { list-style: none; padding: 0; margin: 20px 0 26px; }
.price li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 11px; font-size: .96rem; }
.price li svg { color: var(--emerald); flex: none; margin-top: 3px; }
.price--featured li svg { color: var(--sand); }
.price .btn { margin-top: auto; justify-content: center; }

/* ---------- Feature row ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.checklist svg { color: var(--emerald); flex: none; margin-top: 3px; }
.quote-panel { background: var(--forest); border-radius: var(--radius-lg); padding: 38px; color: #fff; box-shadow: var(--shadow-lg); }
.quote-panel p.q { font-family: var(--font-head); font-size: 1.5rem; line-height: 1.3; color: #fff; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-family: var(--font-head); font-weight: 600; font-size: 1.14rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq .chev { flex: none; transition: transform .25s; color: var(--emerald); }
.faq details[open] .chev { transform: rotate(45deg); }
.faq__body { padding: 0 0 20px; color: var(--muted); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .88rem; color: var(--muted); padding: 26px 0 0; }
.breadcrumb a { color: var(--emerald-dark); font-weight: 600; }
.breadcrumb span { color: var(--muted); margin: 0 8px; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 60px); }
.contact__list { list-style: none; padding: 0; margin: 22px 0 0; }
.contact__list li { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.contact__list .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--emerald-soft); color: var(--emerald); display: grid; place-items: center; flex: none; }
.contact__list .k { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.contact__list .v { font-weight: 700; color: var(--ink); }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-md); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field label { font-size: .88rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea { font-family: var(--font-body); font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(212,175,55,.25); }
.field textarea { min-height: 130px; resize: vertical; }
.form__reassure { font-size: .9rem; color: var(--muted); margin: 0 0 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: #B6B0A3; padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.footer__brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer__brand .brand__mark { background: rgba(255,255,255,.14); }
.footer__brand .brand__name { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; font-weight: 700; }
.site-footer p { font-size: .94rem; }
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: 10px; }
.footer__links a, .footer__contact a { color: #B6B0A3; font-size: .94rem; }
.footer__links a:hover, .footer__contact a:hover { color: #fff; }
.footer__contact a { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.footer__bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: #8A857A; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__tile--feature { grid-column: span 2; grid-row: auto; }
  .feature-row, .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 860px) {
  .nav__menu, .nav__right .nav__phone { display: none; }
  .nav__menu.open { display: block; position: fixed; top: 90px; left: 16px; right: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 14px 20px 20px; box-shadow: var(--shadow-md); }
  .nav__menu.open .nav__links { flex-direction: column; gap: 0; }
  .nav__menu.open .nav__links li { border-bottom: 1px solid var(--line); }
  .nav__menu.open .nav__links a { display: block; padding: 14px 0; }
  .nav__toggle { display: grid; place-items: center; }
}
@media (max-width: 560px) {
  .bento, .form__row { grid-template-columns: 1fr; }
  .bento__tile--feature { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* Liens obfusques (data-h) : focusables, curseur main */
a[data-h], [data-h] { cursor: pointer; }
.form__status { margin: 14px 0 0; font-size: .92rem; }
.form__status--ok { color: var(--emerald-dark); }
.form__status--error { color: #b3261e; }

/* ---------- Images / médias (accueil) ---------- */
/* Cadre image réutilisable */
.media-frame { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); background: var(--bg-alt); }
.media-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Hero d'accueil : photo de Metz au coucher de soleil + voile sombre « Noir & Doré »
   pour faire ressortir un texte clair et les accents dorés. */
.hero--home {
  background-image:
    linear-gradient(103deg, rgba(13,11,8,.92) 0%, rgba(16,13,9,.80) 38%, rgba(18,15,10,.46) 70%, rgba(18,15,10,.28) 100%),
    linear-gradient(to top, rgba(13,11,8,.72) 0%, rgba(13,11,8,0) 32%),
    url("../images/metz_fond.webp");
  background-size: cover;
  background-position: center 38%;
  /* Remonte la photo sous le header flottant : plus de bande claire en haut */
  margin-top: -64px;
  /* Section légèrement plus compacte → texte ~centré dès le chargement */
  padding-top: clamp(100px, 10.5vw, 160px);
  padding-bottom: clamp(36px, 4vw, 60px);
}
/* Halo doré repositionné, plus présent sur fond sombre */
.hero--home::before { top: -120px; right: -80px; background: radial-gradient(circle, rgba(212,175,55,.30), rgba(212,175,55,0) 66%); }

/* Texte clair sur la photo */
.hero--home h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero--home h1 em { color: var(--emerald); font-style: italic; }
.hero--home .hero__sub { color: rgba(255,255,255,.86); text-shadow: 0 1px 14px rgba(0,0,0,.30); }
.hero--home .eyebrow { color: #fff; background: rgba(212,175,55,.18); border: 1px solid rgba(212,175,55,.42); backdrop-filter: blur(2px); }
.hero--home .reassure li { color: rgba(255,255,255,.80); }
.hero--home .reassure { border-top: 1px solid rgba(255,255,255,.16); padding-top: 26px; }
/* Bouton secondaire adapté au fond sombre */
.hero--home .btn--ghost { color: #fff; border-color: rgba(255,255,255,.42); }
.hero--home .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.section--forest .btn--ghost { color: #fff; border-color: rgba(255,255,255,.42); }
.section--forest .btn--ghost:hover { background: #fff; color: var(--forest); border-color: #fff; }

/* Intro en deux colonnes (texte + image) */
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.intro-grid .media-frame { aspect-ratio: 4 / 3; }

/* Vignette en tête des cartes « zones » */
.zone__img { margin: -28px -28px 22px; aspect-ratio: 8 / 5; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.zone__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.zone:hover .zone__img img { transform: scale(1.05); }

@media (max-width: 980px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-grid .media-frame { aspect-ratio: 16 / 9; }
}
@media (max-width: 700px) {
  /* Sur mobile, voile sombre plus dense et centré pour la lisibilité */
  .hero--home {
    background-image:
      linear-gradient(180deg, rgba(13,11,8,.82) 0%, rgba(15,12,9,.72) 55%, rgba(15,12,9,.80) 100%),
      url("../images/metz_fond.webp");
    background-position: center center;
  }
}

/* ---------- Portfolio (réalisations avec visuels) ---------- */
.portfolio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.work {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--forest);
  aspect-ratio: 16 / 11;
  transition: transform .3s ease, box-shadow .3s ease;
}
.work:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.work img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease, opacity .3s ease;
}
.work:hover img { transform: scale(1.06); opacity: .45; }
.work__overlay {
  position: absolute; inset: 0;
  padding: 22px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top, rgba(15,12,9,.94) 0%, rgba(15,12,9,.38) 55%, transparent 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.work:hover .work__overlay { opacity: 1; transform: translateY(0); }
.work__overlay p { color: #f4eeda; font-size: .9rem; line-height: 1.55; margin: 0; }
.work__overlay p a { color: var(--sand); text-decoration: underline; }
.work__visit {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  font-weight: 700; font-size: .82rem;
  color: var(--ink); background: var(--sand);
  border: 1px solid var(--sand);
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.work__visit:hover { background: #fff; color: var(--ink); border-color: #fff; }
.work__visit svg { width: 14px; height: 14px; }
.work__tag {
  align-self: flex-start;
  font-weight: 700; font-size: .72rem;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--sand); background: rgba(212,175,55,.16);
  border: 1px solid rgba(212,175,55,.42);
  padding: 4px 11px; border-radius: 999px; margin-bottom: 10px;
}
@media (max-width: 900px) {
  .portfolio { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .portfolio { grid-template-columns: 1fr; }
}
