/* Ti Jaden Paysages — DA : vert profond, feuille, sable, terre cuite */
:root {
  --forest: #1F3B2D;
  --forest-2: #2B4E3B;
  --leaf: #A8D58B;
  --moss: #4C8C4A;
  --sand: #F3EDE1;
  --cream: #FBF8F2;
  --clay: #C8643B;
  --ink: #1C2A22;
  --muted: #5E6B61;
  --line: #E2DACB;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: "DM Sans", system-ui, sans-serif; background: var(--cream); color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; line-height: 1.05; margin: 0 0 .55em; letter-spacing: -.01em; }
h1 em, h2 em { color: var(--moss); font-style: normal; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.sand { background: var(--sand); }
.head { max-width: 700px; margin-bottom: 48px; }
.center { text-align: center; margin-inline: auto; }
.eyebrow { font-size: .95rem; font-weight: 500; color: #A84E2A; margin-bottom: 1rem; }
.eyebrow.light { color: var(--leaf); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.35rem; border-radius: 999px; font: 600 1rem/1.2 "DM Sans", sans-serif; text-decoration: none; border: 0; cursor: pointer; transition: background-color .15s cubic-bezier(.22,1,.36,1), transform .12s cubic-bezier(.22,1,.36,1); }
.btn:active { transform: scale(.98); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-leaf { background: var(--forest); color: var(--cream); }
.btn-leaf:hover { background: var(--forest-2); }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--forest); border-bottom: 2px solid var(--leaf); padding-bottom: 2px; transition: color .2s; }
.link-arrow:hover { color: var(--clay); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251,248,242,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; font: 400 1.55rem "DM Serif Display", serif; color: var(--forest); }
.logo svg { width: 42px; height: 42px; }
.logo span { line-height: 1; }
.logo small { display: block; font: 600 .65rem "DM Sans", sans-serif; letter-spacing: .3em; text-transform: uppercase; color: var(--clay); margin-top: 2px; }
.menu { display: flex; align-items: center; gap: 1.9rem; }
.menu a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--ink); transition: color .2s; }
.menu a:not(.btn):hover { color: var(--moss); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--forest); transition: transform .3s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { padding: 56px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 7.4vw, 5.8rem); color: var(--forest); }
.hero h1 em { font-style: normal; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-top: 2rem; }
.hero-art { position: relative; padding: 0 24px 24px 0; }
.arch { border-radius: 999px 999px 28px 28px; overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 40px 80px -40px rgba(31,59,45,.6); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.stamp { position: absolute; left: -36px; bottom: 60px; width: 128px; height: 128px; background: var(--clay); border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 16px 30px -12px rgba(200,100,59,.7); }
.stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stamp text { fill: #fff; font: 600 10px "DM Sans", sans-serif; letter-spacing: .12em; text-transform: uppercase; }

.hero-facts { list-style: none; padding: 34px 0; margin-top: 64px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hero-facts li { color: var(--muted); font-size: .95rem; }
.hero-facts b { display: block; font: 400 2.2rem "DM Serif Display", serif; color: var(--forest); line-height: 1.1; }

/* Savoir-faire */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.skill { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 7/8; color: #fff; isolation: isolate; }
.skill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.skill::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(20,38,29,.92) 0%, rgba(20,38,29,.3) 55%, transparent 80%); transition: background .5s; }
.skill > div { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; }
.skill span { font: 400 1.1rem "DM Serif Display", serif; color: var(--leaf); }
.skill p { margin: 0; color: rgba(255,255,255,.85); }

/* Avant / après */
.ba-sec { background: var(--forest); color: var(--cream); position: relative; overflow: hidden; }
.ba-sec h2 em { color: var(--leaf); }
.ba-sec p { color: rgba(251,248,242,.8); }
.ba-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.hint { font-weight: 600; color: var(--leaf) !important; }
.ba { position: relative; aspect-ratio: 3/2; border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); user-select: none; }
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba-after { position: absolute; inset: 0; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before img { filter: sepia(.75) saturate(.35) brightness(.88) contrast(1.15) hue-rotate(-12deg); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--forest); display: grid; place-items: center; font-size: 1.4rem; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba input:focus-visible ~ .ba-handle span, .ba:has(input:focus-visible) .ba-handle span { outline: 3px solid var(--leaf); }
.ba-tag { position: absolute; top: 16px; padding: .3rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 500; background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(6px); pointer-events: none; }
.ba-tag-b { left: 16px; } .ba-tag-a { right: 16px; background: var(--leaf); color: var(--forest); }

/* Réalisations */
.works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.works figure { margin: 0; }
.works figure:nth-child(even) { margin-top: 56px; }
.works img { border-radius: 200px 200px 20px 20px; aspect-ratio: 4/5; object-fit: cover; width: 100%; transition: border-radius .4s cubic-bezier(.22,1,.36,1); }
.works figure:hover img { border-radius: 20px; }
.works figcaption { margin-top: .9rem; color: var(--muted); font-size: .92rem; }
.works figcaption b { display: block; font: 400 1.3rem "DM Serif Display", serif; color: var(--forest); }

/* Calendrier */
.tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.tabs button { font: 600 1.05rem "DM Sans", sans-serif; padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid var(--forest); background: transparent; color: var(--forest); cursor: pointer; transition: background .25s, color .25s; }
.tabs button small { font-weight: 400; opacity: .75; margin-left: .3rem; }
.tabs button[aria-selected="true"] { background: var(--forest); color: var(--cream); }
.panel { background: var(--cream); border-radius: 24px; padding: clamp(22px, 4vw, 40px); box-shadow: 0 20px 50px -30px rgba(31,59,45,.4); }
.panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.panel li { padding-left: 1.5rem; position: relative; color: var(--muted); }
.panel li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: var(--moss); }
.panel b { color: var(--ink); }

/* Histoire */
.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.story-img img { border-radius: 28px 200px 28px 28px; aspect-ratio: 9/10; object-fit: cover; width: 100%; }
.story p { color: var(--muted); font-size: 1.04rem; }
.story b { color: var(--ink); }
.testis { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 2rem; }
blockquote { margin: 0; background: var(--sand); padding: 22px; border-radius: 20px; }
blockquote p { font: 400 1.1rem/1.45 "DM Serif Display", serif; color: var(--ink) !important; margin-bottom: 1rem; }
blockquote footer { display: flex; align-items: center; gap: .7rem; font-size: .88rem; color: var(--muted); }
blockquote footer img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
blockquote footer b { display: block; }

/* Contact */
.contact-sec { background: var(--forest); color: var(--cream); }
.contact-sec h2 em { color: var(--leaf); }
.contact-sec p { color: rgba(251,248,242,.8); }
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.coords { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.coords li { display: grid; }
.coords span { font-size: .9rem; color: var(--leaf); font-weight: 500; }
.coords a { font-weight: 600; text-decoration: none; font-size: 1.1rem; }
.form { background: var(--cream); color: var(--ink); border-radius: 28px; padding: clamp(22px, 4vw, 38px); display: grid; gap: 16px; position: relative; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: .35rem; font-weight: 500; font-size: .95rem; }
.form input:not([type=checkbox]), .form select, .form textarea { font: inherit; padding: .8rem 1rem; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 4px rgba(76,140,74,.15); }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-weight: 500; font-size: .95rem; margin-bottom: .5rem; }
.chips label { display: block; cursor: pointer; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; transition: all .2s; font-size: .92rem; }
.chips input:checked + span { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.chips input:focus-visible + span { outline: 3px solid var(--leaf); outline-offset: 2px; }
.form .consent { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: .9rem; }
.form .consent input { margin-top: .3rem; accent-color: var(--forest); }

.foot { background: #14261D; color: rgba(251,248,242,.6); padding: 26px 0; font-size: .9rem; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.foot p { margin: 0; }
.foot a { color: var(--cream); }

@media (max-width: 980px) {
  .hero-grid, .ba-grid, .story, .contact { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 460px; margin-inline: auto; }
  .stamp { left: -10px; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .skills { grid-template-columns: 1fr; max-width: 520px; }
  .skill { aspect-ratio: 4/3; }
  .works { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); padding: 8px 16px 20px; border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; box-shadow: 0 20px 40px -20px rgba(0,0,0,.2); }
  .menu.open { opacity: 1; visibility: visible; transform: none; }
  .menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 14px; }
  .form .row, .testis { grid-template-columns: 1fr; }
  .works figure:nth-child(even) { margin-top: 28px; }
}
