/* ============ TOKENS ============ */
:root {
  --bg: #FAFCFF;
  --bg-alt: #F1F8FE;
  --ink: #16212E;
  --ink-soft: #57677A;
  --ink-faint: #8A96A6;
  --accent: #0E7C93;
  --accent-dark: #0A5F70;
  --accent-tint: #E2F2F5;
  --accent-tint-strong: #BEE3EA;
  --border: #E1EBF4;
  --white: #FFFFFF;

  --font-heading: "Quicksand", sans-serif;
  --font-body: "Nunito Sans", sans-serif;
  --font-quote: "Caveat", cursive;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 4px 24px rgba(22, 33, 46, 0.06);
  --shadow-card: 0 8px 30px rgba(46, 155, 224, 0.12);
}

/* ============ RESET ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 0.8, 0.24, 1), transform 0.7s cubic-bezier(0.16, 0.8, 0.24, 1);
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-rotate {
  transform: translateY(26px) rotate(-2.5deg) scale(0.96);
}

.reveal-rotate.in-view {
  transform: translateY(0) rotate(0deg) scale(1);
}

/* ============ HERO DECOR (univers pub, images en fond) ============ */
.hero { position: relative; isolation: isolate; overflow: hidden; }

.hero-decor {
  position: absolute;
  inset: -4% -2%;
  pointer-events: none;
  z-index: 0;
}

.hero-grid { position: relative; z-index: 1; }

.decor-img {
  position: absolute;
  width: 150px;
  border-radius: 10px;
  object-fit: cover;
  opacity: 0.3;
  filter: grayscale(1) contrast(0.92) brightness(1.12);
  mix-blend-mode: luminosity;
  mask-image: radial-gradient(circle, black 55%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle, black 55%, transparent 85%);
  transform: rotate(var(--r, 0deg));
}

.decor-img-1 { width: 220px; top: 5%; left: 7%; }
.decor-img-2 { width: 200px; bottom: 7%; left: 9%; }
.decor-img-3 { width: 210px; bottom: 9%; right: 9%; }
.decor-img-4 { width: 190px; top: 6%; right: 7%; }
.decor-img-5 { width: 170px; top: 38%; left: 1%; }

@media (max-width: 1023px) {
  .decor-img-5 { display: none; }
  .decor-img { opacity: 0.22; }
  .decor-img-1 { width: 180px; }
  .decor-img-2 { width: 160px; }
  .decor-img-3 { width: 170px; }
  .decor-img-4 { width: 150px; }
}

@media (max-width: 639px) {
  .decor-img-4 { display: none; }
  .decor-img { opacity: 0.18; }
  .decor-img-1 { width: 130px; }
  .decor-img-2 { width: 120px; }
  .decor-img-3 { width: 130px; }
}

/* ============ IDLE MOTION (experimental, always-on) ============ */
@keyframes floaty {
  0% { transform: translate(0, 0) rotate(var(--r, 0deg)); }
  25% { transform: translate(10px, -16px) rotate(calc(var(--r, 0deg) + 3deg)); }
  50% { transform: translate(-8px, -24px) rotate(var(--r, 0deg)); }
  75% { transform: translate(-14px, -8px) rotate(calc(var(--r, 0deg) - 3deg)); }
  100% { transform: translate(0, 0) rotate(var(--r, 0deg)); }
}

.idle-float {
  animation-name: floaty;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-duration: var(--dur, 9s);
  animation-delay: var(--d, 0s);
}

@keyframes floatySlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.idle-float-slow {
  animation: floatySlow 8s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 0 rgba(14, 124, 147, 0); }
  50% { text-shadow: 0 0 18px rgba(14, 124, 147, 0.35); }
}

.accent-glow {
  animation: glowPulse 4.5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: var(--shadow-card); }
  50% { box-shadow: 0 8px 34px rgba(14, 124, 147, 0.32); }
}

.btn-pulse {
  animation: pulseGlow 3.4s ease-in-out infinite;
}

.thumb-frame-idle {
  display: block;
  animation: floaty 9s ease-in-out infinite;
  animation-delay: 0.4s;
}

.thumb-frame-idle img { border-radius: inherit; }

/* ============ BUTTONS & LINKS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-card);
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-dark);
  transition: gap 0.15s ease;
}

.link-arrow:hover { gap: 10px; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 252, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}

.logo .dot { color: var(--accent); }

.main-nav {
  display: none;
  gap: 32px;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.main-nav a:hover { color: var(--ink); }

@media (min-width: 900px) {
  .main-nav { display: flex; }
}

/* ============ EYEBROW / TITLES ============ */
.eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.eyebrow-center { text-align: center; }

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 56px;
}

.section-title-center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ============ HERO ============ */
.hero {
  padding: 64px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
  }
}

.hero-text { order: 2; }
.hero-photo { order: 1; display: flex; flex-direction: column; align-items: center; }

@media (min-width: 960px) {
  .hero-text { order: 1; }
  .hero-photo { order: 2; }
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.accent-text { color: var(--accent); }

.hero-paragraph {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 20px;
}

.hero-subline {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink);
  max-width: 540px;
  margin-bottom: 36px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.hero-photo-frame {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--accent-tint) 0%, var(--white) 60%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.hero-photo-frame img {
  width: 88%;
  height: auto;
  object-fit: contain;
}

.hero-pullquote {
  margin-top: 22px;
  max-width: 400px;
  text-align: center;
  font-family: var(--font-quote);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
  line-height: 1.35;
  color: #000;
  position: relative;
  padding-top: 20px;
}

.hero-pullquote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

/* ============ SERVICES ============ */
.services {
  background: var(--bg-alt);
  padding: 88px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--ink-soft);
}

.service-card-wide {
  background: var(--accent-tint);
  border-color: var(--accent-tint-strong);
}

@media (min-width: 720px) {
  .service-card-wide { grid-column: span 2; }
}

/* ============ PORTFOLIO ============ */
.portfolio { padding: 88px 0; }

.projects {
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.project {
  padding-bottom: 96px;
  border-bottom: 1px solid var(--border);
}

.project:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project-thumb {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

/* --- Real project thumbnails --- */
.thumb-frame {
  display: block;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: var(--bg-alt);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.thumb-frame:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.thumb-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.project-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  margin-bottom: 32px;
}

.project-heading h3 {
  font-size: 1.5rem;
}

.project-note {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-soft);
}

.project-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 36px;
}

@media (min-width: 780px) {
  .project-details { grid-template-columns: repeat(3, 1fr); }
}

.project-details h4 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.project-details p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.project-quote {
  background: var(--accent-tint);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 32px 36px;
}

.quote-icon {
  color: var(--accent);
  margin-bottom: 12px;
}

.project-quote p {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 16px;
  color: var(--ink);
}

.project-quote footer {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ============ CONTACT ============ */
.contact {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 96px 0;
}

.contact-inner {
  text-align: center;
  max-width: 620px;
}

.contact-text {
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

/* ============ FOOTER ============ */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  transition: color 0.15s ease;
}

.footer-links a:hover { color: var(--accent-dark); }

@media (min-width: 700px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ============ HERO DECOR — poster additionnels (centre) ============ */
.decor-img-6 { width: 150px; top: 50%; left: 45%; }
.decor-img-7 { width: 140px; top: 2%; left: 46%; }

@media (max-width: 1023px) {
  .decor-img-6, .decor-img-7 { display: none; }
}

/* ============ MAISON NOLIA — liste des articles ============ */
.project-articles {
  margin-top: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.project-articles-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.project-articles-list {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}

.project-articles-list li + li {
  border-top: 1px solid var(--border);
}

.project-articles-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  transition: background 0.15s ease;
}

.project-articles-list a:hover {
  background: var(--accent-tint);
}

.project-article-index {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--accent-dark);
  background: var(--accent-tint);
  border-radius: 999px;
  padding: 5px 12px;
}

.project-articles-list a:hover .project-article-index {
  background: var(--white);
}

.project-article-title {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.project-article-arrow {
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.15s ease;
}

.project-articles-list a:hover .project-article-arrow {
  transform: translateX(3px);
}

@media (max-width: 560px) {
  .project-articles-list a {
    flex-wrap: wrap;
    padding: 14px 16px;
  }
  .project-article-title {
    flex-basis: 100%;
    order: 3;
  }
}
