/* ==========================================================================
   Atelier — Creative Agency & Portfolio Template
   Personnalisez les couleurs via les variables ci-dessous.
   ========================================================================== */
:root {
  --bg: #f4f2ee;
  --ink: #111111;
  --muted: #6e6b66;
  --line: #d9d5cd;
  --accent: #ff4d2e;
  --dark: #111111;
  --font: "Space Grotesk", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container { width: min(1320px, 100% - 48px); margin-inline: auto; }

/* Header */
.header { position: fixed; inset: 0 0 auto; z-index: 50; mix-blend-mode: normal; transition: background .3s; }
.header.scrolled { background: rgba(244, 242, 238, .9); backdrop-filter: blur(10px); }
.header__inner { display: flex; justify-content: space-between; align-items: center; height: 76px; }
.logo { font-size: 24px; font-weight: 700; letter-spacing: -0.04em; }
.logo span { color: var(--accent); font-size: 14px; vertical-align: super; margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 34px; font-weight: 500; }
.nav a { position: relative; }
.nav a:not(.nav__cta)::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 1.5px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s; }
.nav a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { background: var(--ink); color: var(--bg); padding: 10px 20px; border-radius: 99px; transition: background .3s; }
.nav__cta:hover { background: var(--accent); }
.burger { display: none; background: none; border: 1.5px solid var(--ink); border-radius: 99px; padding: 8px 18px; font-weight: 600; cursor: pointer; color: var(--ink); }

/* Hero */
.hero { padding: 170px 0 90px; }
.hero__meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; margin-bottom: 30px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.hero__title { font-size: clamp(52px, 10.5vw, 168px); line-height: .92; letter-spacing: -0.055em; font-weight: 700; }
.outline { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.accent { color: var(--accent); }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 60px; }
.hero__bottom p { max-width: 440px; font-size: 19px; color: var(--muted); }
.circle-btn { width: 140px; height: 140px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; text-align: center; font-weight: 600; line-height: 1.2; flex-shrink: 0; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.circle-btn:hover { transform: scale(1.1) rotate(-8deg); }

/* Marquee */
.marquee { background: var(--ink); color: var(--bg); overflow: hidden; padding: 22px 0; transform: rotate(-1.5deg); margin: 20px -20px; }
.marquee__track { display: flex; gap: 40px; width: max-content; animation: marquee 28s linear infinite; font-size: clamp(26px, 4vw, 46px); font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; }
.marquee__track span:nth-child(even) { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 130px 0; }
.section--dark { background: var(--dark); color: var(--bg); }
.section h2 { font-size: clamp(40px, 6vw, 84px); letter-spacing: -0.045em; line-height: 1; font-weight: 700; }
.section h2 sup { font-size: .3em; vertical-align: top; color: var(--accent); margin-left: 6px; letter-spacing: 0; }
.section__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 50px; }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { background: none; border: 1.5px solid var(--line); padding: 9px 18px; border-radius: 99px; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--ink); transition: all .25s; }
.filters button.active, .filters button:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Works */
.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }
.work { display: block; }
.work.hidden { display: none; }
.work__img { aspect-ratio: 4 / 3; border-radius: 6px; background: radial-gradient(circle at 30% 30%, var(--c2), var(--c1) 70%); position: relative; overflow: hidden; transition: border-radius .5s; }
.work__img::after { content: "Voir le projet ↗"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.6); opacity: 0; background: var(--bg); color: var(--ink); padding: 12px 22px; border-radius: 99px; font-weight: 600; transition: all .4s; }
.work:hover .work__img { border-radius: 28px; }
.work:hover .work__img::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.work--lg .work__img { aspect-ratio: 4 / 3.6; }
.work__info { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; }
.work__info h3 { font-size: 24px; letter-spacing: -0.02em; }
.work__info span { color: var(--muted); font-size: 14px; }

/* Services */
.services { margin-top: 60px; border-top: 1px solid #333; }
.service { border-bottom: 1px solid #333; padding: 30px 0; }
.service summary { list-style: none; display: flex; align-items: center; gap: 30px; font-size: clamp(26px, 3.6vw, 50px); font-weight: 600; letter-spacing: -0.03em; cursor: pointer; transition: color .3s; }
.service summary::-webkit-details-marker { display: none; }
.service summary:hover { color: var(--accent); }
.service summary span { font-size: 15px; color: var(--accent); font-weight: 500; letter-spacing: 0; }
.service summary i { margin-left: auto; font-style: normal; font-weight: 400; transition: transform .3s; }
.service[open] summary i { transform: rotate(45deg); }
.service p { max-width: 620px; margin: 18px 0 0 54px; color: #a8a49c; font-size: 18px; }

/* Studio */
.studio { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.lead { font-size: 22px; line-height: 1.5; }
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; border-top: 1px solid var(--line); padding-top: 30px; }
.numbers strong { display: block; font-size: 56px; letter-spacing: -0.05em; line-height: 1; }
.numbers span { color: var(--muted); font-size: 14px; }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 100px; }
.member__img { aspect-ratio: 3 / 4; border-radius: 6px; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .25)), var(--c); margin-bottom: 14px; filter: grayscale(.2); transition: filter .4s, transform .4s; }
.member:hover .member__img { filter: none; transform: translateY(-6px); }
.member h3 { font-size: 19px; }
.member span { color: var(--muted); font-size: 14px; }

/* Contact */
.contact { background: var(--accent); color: #fff; padding: 130px 0; }
.contact p { font-size: 22px; }
.contact__mail { display: block; font-size: clamp(36px, 8vw, 120px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; margin: 16px 0 60px; word-break: break-word; }
.contact__mail:hover { color: var(--ink); }
.contact__form { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.contact__form textarea { grid-column: 1 / -1; }
.contact__form input, .contact__form select, .contact__form textarea { font: inherit; font-size: 17px; background: transparent; border: 0; border-bottom: 1.5px solid rgba(255, 255, 255, .6); padding: 14px 0; color: #fff; outline: none; }
.contact__form select option { color: var(--ink); }
.contact__form ::placeholder { color: rgba(255, 255, 255, .75); }
.contact__form input:focus, .contact__form textarea:focus { border-color: #fff; }
.contact__form button { grid-column: 1 / -1; justify-self: start; background: var(--ink); color: #fff; border: 0; padding: 16px 34px; border-radius: 99px; font-size: 17px; font-weight: 600; cursor: pointer; transition: transform .3s; }
.contact__form button:hover { transform: translateY(-3px); }

/* Footer */
.footer { padding: 30px 0; font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__inner div { display: flex; gap: 24px; }
.footer a:hover { color: var(--accent); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .marquee__track { animation: none; } }

/* Responsive */
@media (max-width: 960px) {
  .studio { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 20px; padding: 30px 24px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 22px; }
  .works { grid-template-columns: 1fr; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .circle-btn { width: 110px; height: 110px; }
  .contact__form { grid-template-columns: 1fr; }
  .numbers strong { font-size: 40px; }
  .service p { margin-left: 0; }
  .section { padding: 90px 0; }
  .outline { -webkit-text-stroke-width: 1.5px; }
}
