/* =========================
   Néa Studio — DESKTOP (clean + stable)
   One source of truth (no duplicates)
   Assets expected in ./assets/
   ========================= */

:root{
  --bg: #f4f0e6;
  --ink: #0c2b78;
  --ink-soft: rgba(12,43,120,.82);
  --blue: #243a8b;
  --tile: #d7d7d7;

  --radius: 28px;
  --shadow: 0 14px 40px rgba(12,43,120,.12);

  /* HERO tuning */
  --cream-h: clamp(320px, 32vh, 430px);
  --wave-h:  clamp(150px, 14vw, 185px);

  /* Wave position: lower coef -> wave lower (more grain visible) */
  --wave-coef: 0.51;

  /* Background grain (contains the green blob) */
  /* Adjust this to move the whole grain up/down (use px to avoid surprises) */
  --grain-shift-y: 180px;

  /* Mid block (flower + text + button) position inside cream */
  /* Increase to push it DOWN (more space under the wave) */
  --mid-bottom: clamp(22px, 3.2vh, 44px);

  /* Extra nudges */
  --flower-nudge-y: 0px; /* + down, - up */
  --text-nudge-y: 0px;   /* + down, - up */
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

a{ color:inherit; text-decoration:none; }
img{ display:block; max-width:100%; height:auto; }

/* Layout container */
.container{
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* =========================
   NAV
   ========================= */
.topbar{
  position:absolute;
  top:0; left:0; right:0;
  z-index: 50;
  background: transparent;
}

.nav{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  padding: 18px 0 12px;
  gap: 18px;
}

.nav-left, .nav-right{
  display:flex;
  gap: 18px;
  align-items:center;
}
.nav-right{ justify-content:flex-end; }

.nav-link{
  font-size: 13px;
  font-weight: 700;
  letter-spacing:.02em;
  color: rgba(12,43,120,.82);
}
.nav-link:hover{ color: var(--ink); }

.brand{
  display:grid;
  place-items:center;
}
.brand img{
  height: clamp(96px, 8vw, 140px);
  width:auto;
  transform: translateY(3vh);
}

/* =========================
   HERO
   ========================= */
.hero{
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* Background layers holder */
.hero-bg{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index: 1;
}

/* Grain texture (WITH the green blob integrated) */
.paper-grain{
  position:absolute;
  inset:0;
  background: url("./assets/fondgraine.png") no-repeat;
  background-size: 112%;
  background-position: 50% var(--grain-shift-y);
  opacity: .95;
  z-index: 1;
}

/* Cream bottom area */
.hero-cream{
  position:absolute;
  left:0; right:0; bottom:0;
  height: var(--cream-h);
  background: var(--bg);
  z-index: 2;
}

/* Wave at the boundary (sits above grain, above cream edge) */
.hero-wave{
  position:absolute;
  left:0;
  width:100%;
  height: var(--wave-h);
  object-fit: cover;
  object-position: center;
  z-index: 3;

  bottom: calc(var(--cream-h) - (var(--wave-h) * var(--wave-coef)));

  /* Soft fade into the cream */
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 55%,
    rgba(0,0,0,.65) 72%,
    rgba(0,0,0,.35) 85%,
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 55%,
    rgba(0,0,0,.65) 72%,
    rgba(0,0,0,.35) 85%,
    rgba(0,0,0,0) 100%
  );
}

/* Foreground content */
.hero-content{
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

/* Title block (left) */
.hero-title{
  width: min(1100px, 90vw);
  margin-left: clamp(40px, 8vw, 140px);
  padding-top: clamp(170px, 22vh, 260px);
}

.hero-title h1{
  margin:0;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing:.01em;
  line-height: .95;
  font-size: clamp(70px, 6.2vw, 112px);
}

.subtitle{
  margin: 10px 0 0;
  font-family: "Caveat", cursive;
  font-size: clamp(38px, 3.4vw, 54px);
  font-weight: 700;
  color: rgba(12,43,120,.86);
}

/* Bottom block (flower + text + button) — anchored inside cream */
.hero-mid{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: var(--mid-bottom);
  width: min(860px, 92vw);

  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap: 16px;

  /* this makes "down" predictable */
  z-index: 12;
}

/* Flower */
.mini-flower{
  width: clamp(96px, 7vw, 110px);
  height: auto;
  object-fit: contain;
  margin: 12px auto 10px;
  transform: translateY(var(--flower-nudge-y));
}

/* Text */
.lead{
  margin:0;
  font-size: 14px;
  line-height: 1.75;
  font-weight: 800;
  color: var(--ink-soft);
  transform: translateY(var(--text-nudge-y));
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing:.01em;
  background: rgba(244,240,230,.75);
  box-shadow: 0 2px 0 rgba(12,43,120,.18);
  transition: transform .12s ease, background .12s ease;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(244,240,230,.95);
}
.btn-light{
  border-color: rgba(255,255,255,.92);
  color: #fff;
  background: rgba(255,255,255,.08);
  box-shadow: 0 2px 0 rgba(0,0,0,.18);
}
.btn-light:hover{ background: rgba(255,255,255,.14); }
.btn-dark{
  border-color: rgba(255,255,255,.88);
  color: #fff;
  background: rgba(0,0,0,.20);
  box-shadow: 0 2px 0 rgba(0,0,0,.18);
}
.btn-dark:hover{ background: rgba(0,0,0,.32); }

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

/* =========================
   PRESTATIONS
   ========================= */
.services-card{
  position: relative;
  background: var(--blue);
  border-radius: var(--radius);
  padding: 56px 26px 26px;
  color: #fff;
  width: min(820px, 92vw);
  margin: 0 auto;
  box-shadow: var(--shadow);
  overflow: visible;
}

.services-sticker{
  position: absolute;
  top: -78px;
  left: -34px;
  width: clamp(260px, 24vw, 460px);
  aspect-ratio: 4 / 2.3;
  background: url("./assets/prestationslogo.png") no-repeat;
  background-size: contain;
  background-position: left top;
  transform: rotate(-8deg);
  z-index: 10;
}

.services-list{
  display:flex;
  flex-direction:column;
  gap: 12px;
  text-align:center;
  font-weight: 900;
  letter-spacing:.04em;
  font-size: 13px;
  margin: 14px 0 18px;
}

/* =========================
   PORTFOLIO
   ========================= */
.h2{
  margin: 0 0 18px;
  font-size: clamp(46px, 3.6vw, 58px);
  font-weight: 900;
  letter-spacing:.01em;
  text-transform: lowercase;
  text-align:center;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: min(760px, 92vw);
  margin: 0 auto 16px;
}

.tile{
  aspect-ratio: 1 / 1;
  background: var(--tile);
  border: 1px solid rgba(12,43,120,.14);
  border-radius: 6px;
  transition: transform .12s ease, filter .12s ease;
}
.tile:hover{
  transform: translateY(-2px);
  filter: brightness(.98);
}

/* =========================
   CTA
   ========================= */
.cta{
  position: relative;
  width: min(920px, 92vw);
  margin: 0 auto;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(12,43,120,.12);
  box-shadow: 0 18px 50px rgba(12,43,120,.10);
}

.cta-img{
  height: 300px;
  background:
    linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.45)),
    url("./assets/cta.png");
  background-size: cover;
  background-position: center;
}

.cta-overlay{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  gap: 12px;
  text-align:center;
  padding: 18px;
}

.cta-text{
  margin:0;
  color:#fff;
  font-weight: 900;
  font-size: 20px;
  letter-spacing:.01em;
}
.cta-text strong{ font-weight: 1000; }

.cta-brand{
  position:absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
}
.cta-brand img{
  height: 30px;
  width:auto;
  opacity: .96;
}

/* =========================
   FOOTER
   ========================= */
.footer{
  margin-top: 10px;
  padding: 22px 0 12px;
}

.footer-inner{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:start;
  gap: 22px;
  font-size: 11px;
  color: rgba(12,43,120,.84);
}

.footer-links,
.footer-right{
  display:flex;
  flex-direction:column;
  gap: 8px;
  font-weight: 800;
}

.footer-right{
  align-items:flex-end;
  text-align:right;
}

.footer-center{
  text-align:center;
  display:flex;
  flex-direction:column;
  gap: 6px;
  font-weight: 800;
}

.footer-socials{
  display:flex;
  justify-content:center;
  gap: 12px;
  margin-top: 6px;
}

.footer-socials img{
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: .85;
  transition: opacity .12s ease, transform .12s ease;
}
.footer-socials img:hover{
  opacity: 1;
  transform: translateY(-1px);
}

.footer-line{
  margin-top: 12px;
  height: 1px;
  background: rgba(12,43,120,.18);
}
