/*
Theme Name: Elisabet Nutri
Theme URI: https://elisabetnutri.com
Author: Elisabet Aragón
Description: Thème sur mesure pour le cabinet Elisabet Nutri à Renens.
Version: 2.1.0
Text Domain: elisabet-nutri
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap');

:root {
  --paper: #fbf8f2;
  --white: #fffdf9;
  --cocoa: #3d271d;
  --cocoa-2: #654638;
  --terra: #c64e3c;
  --terra-dark: #a83d2e;
  --leaf: #496b34;
  --sand: #eadcc9;
  --peach: #f2d6c8;
  --line: rgba(61,39,29,.14);
  --shadow: 0 24px 70px rgba(61,39,29,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--cocoa); background: var(--paper); font-family: 'DM Sans', sans-serif; font-size: 17px; line-height: 1.65; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.serif, h1, h2, h3 { font-family: 'Playfair Display', serif; }

.topbar { background: var(--leaf); color: white; font-size: 13px; }
.topbar .shell { min-height: 34px; display: flex; justify-content: space-between; align-items: center; }
.topbar a { font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,253,249,.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 600; }
.brand img { width: 48px; height: 48px; object-fit: cover; object-position: top; border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav-links a:not(.button):hover { color: var(--terra); }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--cocoa); cursor: pointer; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 25px; border-radius: 999px; background: var(--terra); color: white; font-weight: 600; font-size: 15px; box-shadow: 0 10px 28px rgba(198,78,60,.22); transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); background: var(--terra-dark); }
.button.outline { background: transparent; color: var(--cocoa); border: 1px solid var(--cocoa); box-shadow: none; }
.button.outline:hover { color: var(--terra); border-color: var(--terra); }
.button.light { background: var(--white); color: var(--cocoa); box-shadow: none; }

.hero { position: relative; overflow: hidden; padding: 86px 0 120px; background: var(--white); }
.hero::before { content: ''; position: absolute; inset: 0; opacity: .32; background-image: radial-gradient(var(--sand) 1px, transparent 1px); background-size: 30px 30px; mask-image: linear-gradient(to right, black, transparent 48%); }
.hero-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 68px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; color: var(--leaf); text-transform: uppercase; letter-spacing: .11em; font-size: 13px; font-weight: 600; }
.kicker::before { content: ''; width: 27px; height: 2px; background: currentColor; }
h1 { max-width: 690px; margin: 0 0 25px; font-size: clamp(48px, 5.4vw, 72px); font-weight: 500; line-height: 1.01; letter-spacing: -.035em; }
.hero h1 em { color: var(--terra); font-weight: 500; }
.hero-copy > p { max-width: 590px; margin: 0 0 32px; color: var(--cocoa-2); font-size: 19px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 24px; margin-top: 38px; padding-top: 23px; border-top: 1px solid var(--line); color: var(--cocoa-2); font-size: 14px; }
.hero-proof span { display: flex; align-items: center; gap: 8px; }
.hero-proof span::before { content: '✓'; color: var(--leaf); font-weight: 700; }
.hero-art { position: relative; min-height: 590px; }
.shape { position: absolute; }
.shape-one { width: 73%; height: 76%; right: 0; top: 0; background: var(--leaf); opacity: .82; }
.shape-two { width: 74%; height: 78%; right: 8%; top: 8%; background: var(--peach); }
.food-photo { position: absolute; z-index: 2; width: 83%; height: 75%; right: 13%; top: 16%; object-fit: cover; box-shadow: 0 30px 70px rgba(61,39,29,.22); }
.hero-seal { position: absolute; z-index: 3; right: 0; bottom: 22px; width: 190px; height: 190px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero-seal::before { content: ''; position: absolute; inset: 9px; border: 1px solid var(--terra); border-radius: 50%; }
.hero-seal strong, .hero-seal span { position: relative; }
.hero-seal strong { font: 18px 'Playfair Display', serif; }
.hero-seal span { width: 115px; color: var(--cocoa-2); font-size: 12px; }

.trust { background: var(--cocoa); color: var(--white); }
.trust-row { min-height: 88px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.trust-item { padding: 0 28px; text-align: center; font-size: 14px; letter-spacing: .025em; border-right: 1px solid rgba(255,255,255,.18); }
.trust-item:last-child { border: 0; }

.section { padding: 108px 0; }
.section-head { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: end; margin-bottom: 54px; }
.section-head h2, .about h2, .contact h2 { margin: 0; font-size: clamp(39px, 4.5vw, 59px); font-weight: 500; line-height: 1.05; letter-spacing: -.025em; }
.section-head p { max-width: 590px; margin: 0; color: var(--cocoa-2); }

.services { overflow: hidden; }
.services-backdrop { position: relative; padding: 52px; }
.services-backdrop::before { content: ''; position: absolute; inset: 0 -10vw; background: linear-gradient(120deg, #456832, #6b864e); }
.needs-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.need-card { min-height: 245px; padding: 34px; border-radius: 0; background: var(--white); border: 0; box-shadow: 0 18px 40px rgba(39,50,27,.13); transition: transform .25s, box-shadow .25s; }
.need-card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(61,39,29,.08); }
.need-card:first-child { grid-column: 1 / 3; background: var(--peach); }
.need-card .number { display: block; margin-bottom: 33px; color: var(--terra); font-size: 13px; font-weight: 600; }
.need-card:first-child .number { margin-bottom: 33px; }
.need-card h3 { margin: 0 0 12px; font-size: 26px; font-weight: 500; line-height: 1.15; }
.need-card p { margin: 0; color: var(--cocoa-2); font-size: 15px; }
.need-card:first-child h3 { font-size: 31px; }

.about { background: #efe7dc; }
.about-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 96px; align-items: center; }
.about-portrait { position: relative; padding: 0 32px 38px 0; }
.about-shape { position: absolute; inset: 55px 0 0 50px; background: var(--terra); opacity: .18; }
.about-portrait img { position: relative; z-index: 1; width: 100%; height: 600px; object-fit: cover; object-position: center 15%; box-shadow: var(--shadow); }
.portrait-label { position: absolute; z-index: 2; right: 0; bottom: 0; padding: 19px 24px; background: var(--white); box-shadow: var(--shadow); }
.portrait-label strong, .portrait-label span { display: block; }
.portrait-label strong { font: 18px 'Playfair Display', serif; }
.portrait-label span { color: var(--cocoa-2); font-size: 12px; }
.about-copy p { color: var(--cocoa-2); }
.signature { margin: 25px 0 0; font-family: 'Playfair Display', serif; font-style: italic; font-size: 21px; color: var(--terra); }

.method-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border-top: 1px solid var(--line); }
.method { padding: 36px 38px 12px 0; }
.method + .method { padding-left: 38px; border-left: 1px solid var(--line); }
.method span { color: var(--terra); font-size: 13px; font-weight: 600; }
.method h3 { margin: 25px 0 12px; font-size: 26px; font-weight: 500; }
.method p { margin: 0; color: var(--cocoa-2); font-size: 15px; }

.booking { padding: 0 0 108px; }
.booking-box { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.25fr .75fr; gap: 50px; align-items: center; padding: 68px 72px; border-radius: 32px; background: var(--terra); color: white; }
.booking-box::after { content: 'E'; position: absolute; right: 35px; top: -72px; color: rgba(255,255,255,.08); font: 330px/1 'Playfair Display', serif; }
.booking-box h2 { position: relative; z-index: 1; margin: 0 0 16px; color: white; font-size: clamp(38px, 4vw, 55px); font-weight: 500; line-height: 1.05; }
.booking-box p { position: relative; z-index: 1; max-width: 650px; margin: 0; color: rgba(255,255,255,.85); }
.booking-actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.booking-actions .button { min-width: 220px; }
.phone-link { text-align: center; font-size: 14px; color: white; }

.contact { padding: 90px 0; background: var(--white); }
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 60px; align-items: stretch; }
.contact-list { margin-top: 35px; border-top: 1px solid var(--line); }
.contact-row { display: grid; grid-template-columns: 92px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-row small { color: var(--terra); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.contact-row a:hover { color: var(--terra); }
.map { min-height: 430px; overflow: hidden; border-radius: 26px; background: var(--sand); }
.map iframe { width: 100%; height: 100%; min-height: 430px; border: 0; filter: sepia(.12) saturate(.8); }

.site-footer { padding: 36px 0; background: var(--cocoa); color: rgba(255,255,255,.7); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 30px; font-size: 13px; }
.footer-brand { color: white; font: 20px 'Playfair Display', serif; }

@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 82px 0 auto; display: none; padding: 30px 20px 36px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; text-align: center; }
  .nav-links.open { display: flex; }
  .menu-button { display: grid; place-items: center; }
  .hero-grid, .section-head, .about-grid, .booking-box, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 55px; }
  .hero-art { width: min(650px, 100%); min-height: 560px; margin-inline: auto; }
  .section-head { gap: 20px; }
  .needs-grid { grid-template-columns: 1fr 1fr; }
  .need-card:first-child { grid-column: 1 / 3; min-height: 280px; }
  .booking-box { padding: 55px 45px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .shell { width: min(100% - 28px, 1160px); }
  .brand { font-size: 19px; }
  .brand img { width: 42px; height: 42px; }
  .hero { padding: 52px 0 70px; }
  h1 { font-size: 48px; }
  .hero-copy > p { font-size: 17px; }
  .hero-proof { flex-direction: column; gap: 9px; }
  .hero-art { min-height: 390px; }
  .food-photo { width: 88%; height: 72%; right: 8%; }
  .hero-seal { width: 140px; height: 140px; right: 0; bottom: 0; }
  .hero-seal strong { font-size: 15px; }
  .services-backdrop { padding: 28px 18px; }
  .trust-row { grid-template-columns: 1fr; padding: 17px 0; }
  .trust-item { padding: 11px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .trust-item:last-child { border: 0; }
  .section { padding: 76px 0; }
  .needs-grid { display: grid; grid-template-columns: 1fr; }
  .need-card:first-child { grid-column: auto; min-height: 280px; }
  .need-card { min-height: auto; }
  .about-portrait img { height: 500px; }
  .method-grid { grid-template-columns: 1fr; }
  .method, .method + .method { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .booking { padding-bottom: 76px; }
  .booking-box { padding: 45px 28px; border-radius: 24px; }
  .contact { padding: 72px 0; }
  .contact-row { grid-template-columns: 75px 1fr; gap: 12px; }
  .map, .map iframe { min-height: 340px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
