/* Axeddam — page d'accueil */

/* --- Bandeau haut ------------------------------------------------------ */

.masthead {
  background: var(--paper);
  color: var(--ink);
  border-radius: 28px 28px 8px 8px;
  padding: 18px 26px 26px;
}

.masthead__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.masthead__nav a {
  color: var(--ink);
}

.masthead__nav a:hover {
  color: var(--violet);
}

.masthead__nav .nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  border-radius: 999px;
}

.masthead__nav .nav-cta:hover {
  background: var(--violet);
  color: var(--paper);
}

.masthead__brand {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.masthead__title {
  margin: 0;
  text-align: center;
  font-weight: 700;
  font-size: clamp(40px, 9vw, 132px);
  line-height: 0.86;
  letter-spacing: -0.05em;
}

/* Contrepoids visuel du logo, pour que le titre reste optiquement centré */
.masthead__balance {
  width: 78px;
}

/* --- Hero -------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  border-radius: 8px 8px 28px 28px;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  padding: clamp(28px, 4vw, 56px) clamp(20px, 4vw, 48px) 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  position: relative;
  z-index: 2;
}

.hero__claim {
  margin: 16px 0 0;
  font-weight: 700;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

.hero__lede {
  margin: 14px 0 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.45;
  color: var(--on-dark-2);
  max-width: 30ch;
}

.hero__terrains {
  margin: 16px 0 0;
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero__coords {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.5;
}

.hero__cta {
  margin-top: 18px;
  font-size: 16px;
  padding: 14px 26px;
}

.hero__cta .arrow {
  font-size: 14px;
}

.hero__note {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(244, 243, 246, 0.4);
}

.hero__services-link {
  display: inline-block;
  margin-top: 14px;
}

/* Signature géante + stickers */

.hero__signature {
  position: relative;
  margin-top: clamp(20px, 3vw, 40px);
  pointer-events: none;
}

.hero__wordmark {
  font-weight: 700;
  font-size: clamp(84px, 20vw, 300px);
  line-height: 0.74;
  letter-spacing: -0.06em;
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  transform: translateY(0.1em);
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-10px) rotate(var(--r, 0deg)); }
}

.sticker {
  position: absolute;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  padding: 9px 14px;
  border-radius: 999px;
  animation: floaty var(--dur, 7s) ease-in-out infinite;
}

.sticker--1 {
  top: -6%;
  left: 16%;
  --r: -9deg;
  --dur: 6s;
  background: var(--teal);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 211, 192, 0.25);
}

.sticker--2 {
  top: 22%;
  right: 6%;
  --r: 8deg;
  --dur: 7.5s;
  background: var(--paper);
  color: var(--ink);
}

.sticker--3 {
  top: 6%;
  right: 32%;
  --r: -4deg;
  --dur: 8.5s;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--pink);
  font-weight: 400;
}

.sticker--4 {
  bottom: 14%;
  left: 2%;
  --r: 11deg;
  --dur: 6.8s;
  background: var(--orange);
  color: var(--ink);
}

/* --- Sections ---------------------------------------------------------- */

.section {
  padding: clamp(64px, 8vw, 120px) clamp(8px, 3vw, 40px) 0;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.section__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.section__index {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--on-dark-3);
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: clamp(28px, 4vw, 48px);
}

.grid-cards--wide {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* --- Services ---------------------------------------------------------- */

.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px;
  transition: border-color var(--ease);
}

.service--vitrine:hover { border-color: var(--violet); }
.service--ecommerce:hover { border-color: var(--pink); }
.service--webapp:hover { border-color: var(--teal); }

.service__title {
  margin: 20px 0 0;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.service__text {
  margin: 10px 0 20px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(244, 243, 246, 0.6);
}

.service__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(244, 243, 246, 0.75);
}

/* --- Réalisations ------------------------------------------------------ */

.work {
  display: block;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--ease);
}

.work:hover {
  color: inherit;
}

.work--miru:hover { border-color: var(--violet); }
.work--aza:hover { border-color: var(--pink); }

/* Les captures d'écran sont en ~2:1 : la case suit ce format pour éviter les
   bandes vides, et `cover` ancré en haut absorbe le reliquat sans rogner
   l'en-tête des interfaces. */
.work__shot {
  aspect-ratio: 2 / 1;
  background: var(--ink);
  overflow: hidden;
  padding: 10px;
}

.work__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 12px;
}

/* Repli tant que la capture d'écran n'est pas fournie */
.work__shot.is-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, rgba(108, 59, 255, 0.22), rgba(255, 61, 139, 0.14) 55%, rgba(255, 122, 26, 0.12));
}

.work__shot.is-missing img {
  display: none;
}

.work__shot.is-missing::after {
  content: attr(data-fallback);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--on-dark-3);
  text-align: center;
  padding: 0 16px;
}

.work__body {
  padding: 20px 22px 24px;
}

.work__title {
  margin: 14px 0 6px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.work__text {
  margin: 0;
  font-weight: 500;
  font-size: 14px;
  color: rgba(244, 243, 246, 0.55);
}

/* --- À propos ---------------------------------------------------------- */

.about {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 52px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(26px, 4vw, 48px);
  align-items: center;
}

.about__title {
  margin: 18px 0 0;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}

.about__text {
  margin: 16px 0 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  color: var(--on-light-1);
  max-width: 52ch;
}

.about__author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.about__avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  flex-shrink: 0;
  background-color: #E3E1E8;
  background-image: repeating-linear-gradient(135deg, rgba(14, 15, 18, 0.16) 0 6px, transparent 6px 12px);
}

.about__name {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
}

.about__role {
  margin: 2px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--on-light-2);
}

/* Fenêtre « live build » */

.term {
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background: var(--ink);
  border: 1px solid rgba(14, 15, 18, 0.12);
  box-shadow: 0 24px 60px rgba(14, 15, 18, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.term__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.term__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.term__dot--1 { background: var(--pink); }
.term__dot--2 { background: var(--orange); }
.term__dot--3 { background: var(--teal); }

.term__label {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--on-dark-3);
}

.term__body {
  flex: 1;
  padding: 18px 18px 22px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.85;
  color: var(--on-dark-1);
  display: flex;
  flex-direction: column;
}

.term__line {
  display: flex;
  gap: 12px;
  white-space: pre;
}

.term__n {
  color: var(--on-dark-4);
  width: 14px;
  text-align: right;
  flex-shrink: 0;
}

.term__t--key { color: var(--violet-soft); }
.term__t--base { color: var(--on-dark-1); }
.term__t--value { color: var(--teal); }
.term__t--call { color: var(--pink-soft); }
.term__t--comment { color: rgba(244, 243, 246, 0.35); }

.term__caret {
  display: inline-block;
  width: 7px;
  height: 13px;
  margin-left: 1px;
  background: var(--teal);
  vertical-align: -2px;
}

/* --- Contact ----------------------------------------------------------- */

.contact {
  border-radius: var(--r-lg);
  padding: clamp(34px, 6vw, 84px);
  background: linear-gradient(120deg, #6C3BFF 0%, #FF3D8B 62%, #FF7A1A 100%);
  color: var(--paper);
  text-align: center;
}

.contact__title {
  margin: 18px auto 0;
  font-weight: 700;
  font-size: clamp(30px, 5.5vw, 74px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  max-width: 20ch;
  text-wrap: pretty;
}

.contact__text {
  margin: 16px auto 0;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  max-width: 46ch;
  color: rgba(244, 243, 246, 0.85);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.contact__secondary {
  border: 1px solid rgba(244, 243, 246, 0.6);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 14px;
  padding: 16px 26px;
  border-radius: 999px;
}

.contact__secondary:hover {
  background: rgba(14, 15, 18, 0.2);
  color: var(--paper);
}

/* --- Pied de page ------------------------------------------------------ */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 36px clamp(8px, 3vw, 40px) 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--on-dark-3);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer__mark {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  background: var(--brand-mark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer__links {
  display: flex;
  gap: 18px;
}

.site-footer__links a {
  color: var(--on-dark-3);
}

.site-footer__links a:hover {
  color: var(--paper);
}

/* --- Adaptations ------------------------------------------------------- */

/* Sous cette largeur, la signature est trop courte pour porter les stickers
   en absolu : ils passent en ligne sous le mot-marque. */
@media (max-width: 700px) {
  .stickers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
  }

  .sticker {
    position: static;
    inset: auto;
    animation: none;
    transform: rotate(var(--r));
  }
}

@media (max-width: 640px) {
  .masthead__brand {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .masthead__balance {
    display: none;
  }

  .masthead__nav {
    justify-content: center;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticker {
    animation: none;
  }

  .term__caret {
    display: none;
  }
}
