/* L'atelier cov'R — palette logo magenta + cadres slate / mint / lilas */

:root {
  --magenta: #e6007e;
  --magenta-deep: #c4006a;
  --slate: #4a6477;
  --slate-deep: #2f4352;
  --mint: #6fe8d4;
  --lilac: #8b94b8;
  --ink: #0e1114;
  --ink-soft: #3d4a54;
  --paper: #e9edf1;
  --paper-deep: #d5dde4;
  --white: #ffffff;
  --line: rgba(14, 17, 20, 0.12);
  --font: "Outfit", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* —— Nav —— */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.nav.is-scrolled {
  background: rgba(233, 237, 241, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.nav__logo {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.55rem;
  object-fit: cover;
  flex-shrink: 0;
}

.nav__brand span {
  color: var(--magenta);
}

.nav__links {
  display: none;
  gap: 1.75rem;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav__links a {
  position: relative;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: var(--magenta);
  transition: width 0.35s var(--ease);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.1rem;
  background: var(--magenta);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 0.35rem;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.nav__cta:hover {
  background: var(--magenta-deep);
  transform: translateY(-1px);
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav.is-open .nav__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.is-open .nav__toggle span:nth-child(2) {
  opacity: 0;
}

.nav.is-open .nav__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__mobile {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--paper);
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 1.35rem;
  font-size: 1.5rem;
  font-weight: 600;
  z-index: 99;
}

.nav.is-open .nav__mobile {
  display: flex;
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }

  .nav__cta {
    margin-left: 0;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  overflow: hidden;
  background: var(--slate-deep);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1.05fr;
  }
}

.hero__visual {
  position: relative;
  min-height: 48svh;
  overflow: hidden;
}

@media (min-width: 900px) {
  .hero__visual {
    min-height: 100svh;
    order: 2;
  }
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  position: absolute;
  inset: 0;
  transform: scale(1.08);
  animation: hero-zoom 16s var(--ease) forwards;
}

@keyframes hero-zoom {
  to {
    transform: scale(1);
  }
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(47, 67, 82, 0.45) 100%
  );
  pointer-events: none;
}

@media (min-width: 900px) {
  .hero__visual::after {
    background: linear-gradient(
      90deg,
      rgba(47, 67, 82, 0.55) 0%,
      transparent 35%
    );
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 1.5rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4rem);
  color: var(--white);
  background:
    radial-gradient(ellipse 90% 70% at 0% 100%, rgba(230, 0, 126, 0.22), transparent 55%),
    linear-gradient(160deg, var(--slate-deep) 0%, var(--slate) 55%, #5a7588 100%);
}

@media (min-width: 900px) {
  .hero__content {
    justify-content: center;
    order: 1;
    padding-top: var(--nav-h);
  }
}

.hero__place {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.85s var(--ease) 0.05s forwards;
}

.hero__logo {
  width: clamp(5.5rem, 18vw, 7.5rem);
  height: auto;
  border-radius: 1.1rem;
  margin-bottom: 1.35rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  animation: rise-scale 0.9s var(--ease) 0.12s forwards;
}

@keyframes rise-scale {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero__brand {
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1.1rem;
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.85s var(--ease) 0.22s forwards;
}

.hero__brand em {
  font-style: normal;
  color: var(--magenta);
}

.hero__lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 400;
  max-width: 26rem;
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.88);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.85s var(--ease) 0.38s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.85s var(--ease) 0.52s forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 0.4rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--magenta {
  background: var(--magenta);
  color: var(--white);
}

.btn--magenta:hover {
  background: var(--magenta-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn--ink {
  background: var(--ink);
  color: var(--white);
}

.btn--ink:hover {
  background: var(--magenta);
}

.btn--mint {
  background: var(--mint);
  color: var(--ink);
}

.btn--mint:hover {
  background: #57d4c0;
}

/* —— Sections —— */
.section {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 3rem);
}

.section__head {
  max-width: 36rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.section__eyebrow {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 0.7rem;
}

.section__title {
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 0.8rem;
}

.section__text {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* —— Services —— */
.services {
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(111, 232, 212, 0.18), transparent),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
}

.services__grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--line);
  }
}

.service {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.service.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .service {
    padding: 2.25rem 1.75rem 2.25rem 0;
    border-bottom: none;
    border-right: 1px solid var(--line);
  }

  .service:last-child {
    border-right: none;
    padding-right: 0;
  }
}

.service__num {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--magenta);
  margin-bottom: 0.85rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.service__swatch {
  width: 2.5rem;
  height: 0.35rem;
  border-radius: 2px;
  margin-bottom: 1.1rem;
}

.service__swatch--protect {
  background: linear-gradient(90deg, var(--slate), var(--lilac));
}

.service__swatch--perso {
  background: linear-gradient(90deg, var(--magenta), #ff6bb5);
}

.service__swatch--custom {
  background: linear-gradient(90deg, var(--mint), var(--slate));
}

.service__title {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.service__desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* —— Process —— */
.process {
  background:
    linear-gradient(135deg, var(--slate-deep) 0%, var(--slate) 50%, #5c7a8c 100%);
  color: var(--white);
}

.process .section__eyebrow {
  color: var(--mint);
}

.process .section__text {
  color: rgba(255, 255, 255, 0.72);
}

.process__list {
  list-style: none;
  display: grid;
  gap: 0;
}

@media (min-width: 900px) {
  .process__list {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.process__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
  padding: 1.6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.process__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 900px) {
  .process__item {
    grid-template-columns: 1fr;
    border-top: none;
    padding: 0;
  }
}

.process__step {
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--magenta);
  letter-spacing: -0.04em;
}

.process__item h3 {
  font-size: 1.15rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
}

.process__item p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
}

/* —— Gallery —— */
.gallery__note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: -1.75rem;
  margin-bottom: 1.75rem;
}

.gallery__grid {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .gallery__grid {
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: 320px;
  }
}

.gallery__item {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  background: var(--slate-deep);
  border-radius: 0.35rem;
  border: none;
  padding: 0;
  cursor: zoom-in;
  width: 100%;
  display: block;
  font: inherit;
  text-align: left;
  color: inherit;
}

@media (min-width: 640px) {
  .gallery__item {
    min-height: 0;
  }
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.8s var(--ease);
  pointer-events: none;
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.05);
}

.gallery__item:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
}

.gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(transparent, rgba(14, 17, 20, 0.78));
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 1;
}

/* —— Lightbox —— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 17, 20, 0.88);
  cursor: pointer;
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1100px);
  max-height: 92svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: lightbox-in 0.35s var(--ease);
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(92svh - 4rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.35rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.lightbox__caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: var(--magenta);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s;
}

.lightbox__close:hover {
  background: var(--magenta-deep);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s;
}

.lightbox__nav:hover {
  background: var(--magenta);
}

.lightbox__nav--prev {
  left: -0.5rem;
}

.lightbox__nav--next {
  right: -0.5rem;
}

@media (min-width: 700px) {
  .lightbox__nav--prev {
    left: -3.25rem;
  }

  .lightbox__nav--next {
    right: -3.25rem;
  }

  .lightbox__close {
    top: -0.5rem;
    right: -3rem;
  }
}

/* —— Contact —— */
.contact {
  background:
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(230, 0, 126, 0.1), transparent),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(111, 232, 212, 0.15), transparent),
    linear-gradient(180deg, var(--paper-deep), var(--paper));
}

.contact__layout {
  display: grid;
  gap: 3rem;
}

@media (min-width: 860px) {
  .contact__layout {
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: start;
  }
}

.contact__place {
  margin-top: 1.15rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.contact__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.05rem;
  border: 1.5px solid var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0.35rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s;
}

.social-link:hover {
  background: var(--magenta);
  border-color: var(--magenta);
  color: var(--white);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.form {
  display: grid;
  gap: 1rem;
}

.form__row {
  display: grid;
  gap: 1rem;
}

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

.form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid var(--line);
  border-radius: 0.35rem;
  outline: none;
  transition: border-color 0.25s;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--magenta);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form__msg {
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 0.35rem;
}

.form__msg--ok {
  background: rgba(47, 120, 90, 0.12);
  color: #0a6b3c;
}

.form__msg--err {
  background: rgba(180, 30, 30, 0.1);
  color: #9a1a1a;
}

.form__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* —— Footer —— */
.footer {
  padding: 1.75rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: var(--paper);
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--ink);
}

.footer__brand img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.35rem;
}

.footer__brand span {
  color: var(--magenta);
}
