/* Charrier — création de sites
   Palette : bitume, trottoir, mèche (la rose des cheveux, pas un dégradé d’agence)
   Type    : Alumni Sans (wordmark), IBM Plex Sans, Spline Sans Mono
*/

:root {
  --encre: #16171c;
  --bitume: #1c1e24;
  --trottoir: #dce0e6;
  --craie: #eef0f3;
  --feuille: #f7f8fa;
  --blanc: #fbfcfd;
  --meche: #c84e9a;
  --meche-clair: #e59ac8;
  --meche-profond: #9b3478;
  --doux: #5c616c;
  --ligne: rgba(22, 23, 28, 0.14);
  --ligne-clair: rgba(247, 248, 250, 0.16);

  --font-display: "Alumni Sans", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: "Spline Sans Mono", "Consolas", monospace;

  --space: clamp(1.25rem, 4vw, 2.5rem);
  --space-lg: clamp(3.5rem, 9vw, 7.5rem);
  --wrap: 72rem;
  --header: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--craie);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.55em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(22, 23, 28, 0.06);
  padding: 0.1em 0.35em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 30;
  background: var(--meche);
  color: #fff;
  padding: 0.5rem 0.9rem;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

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

/* Header
   -------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
  padding: 0.6rem var(--space);
  background: var(--encre);
  color: var(--feuille);
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.wordmark__tick {
  display: inline-block;
  width: 0.55rem;
  height: 0.22rem;
  background: var(--meche);
  transform: translateY(-0.35em);
}

.wordmark__sub {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 248, 250, 0.55);
  display: none;
}

@media (min-width: 640px) {
  .wordmark__sub {
    display: inline;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: rgba(247, 248, 250, 0.78);
}

.nav a:hover {
  color: #fff;
}

.nav a.nav__cta {
  color: #fff;
  border-bottom: 2px solid var(--meche);
  padding-bottom: 0.1rem;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: currentColor;
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 820px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bitume);
    padding: 0.5rem 0 1rem;
    border-top: 1px solid var(--ligne-clair);
  }

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

  .nav a {
    display: block;
    width: 100%;
    padding: 0.75rem var(--space);
  }
}

/* Buttons
   -------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.55rem 1.15rem;
  font: inherit;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
  border: 1px solid transparent;
}

.btn--solid {
  background: var(--meche);
  color: #fff;
  border-color: var(--meche);
}

.btn--solid:hover {
  background: var(--meche-profond);
  border-color: var(--meche-profond);
}

.btn--ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.btn--ghost:hover {
  border-color: var(--meche);
  color: var(--meche);
}

.text-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.92rem;
  color: var(--meche-profond);
  text-underline-offset: 0.22em;
}

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

.hero {
  position: relative;
  background: var(--encre);
  color: var(--feuille);
  padding: clamp(3rem, 8vw, 6.5rem) var(--space) clamp(4rem, 10vw, 8rem);
  overflow: hidden;
}

.hero::after {
  content: "49";
  position: absolute;
  right: clamp(-0.5rem, 2vw, 1.5rem);
  bottom: -0.35em;
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 16rem);
  font-weight: 700;
  line-height: 0.7;
  letter-spacing: -0.06em;
  color: rgba(247, 248, 250, 0.045);
  pointer-events: none;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
  margin: 0 0 2.2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 248, 250, 0.55);
}

.hero__meta span + span::before {
  content: "·";
  margin: 0 0.85rem;
  color: var(--meche);
}

.hero__title {
  font-family: var(--font-body);
  font-size: clamp(2.15rem, 6.4vw, 4.35rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  max-width: 16ch;
  margin-bottom: 1.25rem;
}

.hero__title em {
  font-style: normal;
  box-shadow: inset 0 -0.18em 0 var(--meche);
}

.hero__lead {
  max-width: 38rem;
  font-size: 1.12rem;
  color: rgba(247, 248, 250, 0.78);
  margin-bottom: 1.8rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero .btn--ghost {
  color: var(--feuille);
  border-color: rgba(247, 248, 250, 0.35);
}

.hero .btn--ghost:hover {
  border-color: var(--meche);
  color: #fff;
}

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

.section {
  padding: var(--space-lg) 0;
}

.section__head {
  max-width: 38rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.section__head h2 {
  font-size: clamp(1.85rem, 4vw, 2.85rem);
}

.section__head p {
  color: var(--doux);
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--meche-profond);
}

/* Work
   -------------------------------------------------- */

.work {
  background: var(--feuille);
}

.project--lead {
  display: grid;
  gap: 1.25rem 2rem;
  margin-bottom: 2.75rem;
}

@media (min-width: 900px) {
  .project--lead {
    grid-template-columns: 1.35fr 0.85fr;
    align-items: end;
  }
}

.project__visual {
  display: block;
  background: var(--trottoir);
  overflow: hidden;
}

.project__visual picture,
.about__photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.project__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.project__visual:hover img {
  transform: scale(1.03);
}

.project--lead .project__visual {
  aspect-ratio: 16 / 10;
}

.project__kind {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--doux);
}

.project h3 {
  font-size: 1.55rem;
  margin-bottom: 0.4rem;
}

.project p {
  color: var(--doux);
}

.project-grid {
  display: grid;
  gap: 1.75rem;
}

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

.project-grid .project__visual {
  aspect-ratio: 4 / 5;
  margin-bottom: 1rem;
}

.project-grid .project:nth-child(2) img {
  object-position: center 12%;
}

.project-grid h3 {
  font-size: 1.28rem;
}

/* Offre
   -------------------------------------------------- */

.offer {
  background: var(--craie);
}

.offer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ligne);
}

.offer-list li {
  padding: 1.35rem 0 1.35rem 1.15rem;
  border-bottom: 1px solid var(--ligne);
  border-left: 3px solid transparent;
}

.offer-list li:hover {
  border-left-color: var(--meche);
}

.offer-list h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.offer-list p {
  color: var(--doux);
  max-width: 42rem;
}

@media (min-width: 800px) {
  .offer-list {
    grid-template-columns: 1fr 1fr;
  }

  .offer-list li:nth-child(odd) {
    padding-right: 1.5rem;
  }
}

.process {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ligne);
}

.process__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--doux);
  margin-bottom: 1.25rem;
}

.process__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

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

.process__steps li {
  color: var(--doux);
}

.process__steps strong {
  display: block;
  color: var(--encre);
  margin-bottom: 0.25rem;
}

/* Tarifs
   -------------------------------------------------- */

.pricing {
  background: var(--bitume);
  color: var(--feuille);
}

.pricing .section__head p,
.pricing .eyebrow {
  color: rgba(247, 248, 250, 0.62);
}

.pricing .eyebrow {
  color: var(--meche-clair);
}

.price-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 860px) {
  .price-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--encre);
  color: var(--feuille);
  padding: 1.5rem 1.4rem 1.4rem;
  border-left: 4px solid var(--meche);
}

.price-card__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--meche-clair);
  margin-bottom: 0.85rem;
}

.price-card h3 {
  font-family: var(--font-display);
  font-size: 2.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.price-card__for {
  color: rgba(247, 248, 250, 0.62);
  min-height: 3em;
}

.price-card__amount {
  margin: 1.1rem 0 0.35rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(247, 248, 250, 0.18);
  font-family: var(--font-mono);
}

.price-card__value {
  font-size: 1.45rem;
}

.price-card__value.is-set {
  font-size: 2rem;
  font-weight: 500;
}

.price-card__value.is-range {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: -0.02em;
}

.price-card__suffix {
  margin-left: 0.35rem;
  font-size: 0.8rem;
  color: rgba(247, 248, 250, 0.55);
}

.price-card__delay {
  font-size: 0.85rem;
  color: rgba(247, 248, 250, 0.55);
  min-height: 1.3em;
  margin-bottom: 1rem;
}

.price-card ul {
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.price-card li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1rem;
  color: rgba(247, 248, 250, 0.78);
  border-bottom: 1px solid rgba(247, 248, 250, 0.08);
}

.price-card li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--meche);
}

.price-card .btn {
  width: 100%;
}

.pricing__note {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: rgba(247, 248, 250, 0.45);
}

.pricing__note code {
  background: rgba(247, 248, 250, 0.08);
  color: rgba(247, 248, 250, 0.8);
}

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

.about {
  background: var(--feuille);
}

.about__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 880px) {
  .about__grid {
    grid-template-columns: 0.9fr 1.2fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.about__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 20%;
}

.about__photo figcaption {
  margin-top: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--doux);
}

.about__copy p {
  color: var(--doux);
}

.about__copy h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.about__cv-title {
  margin-top: 2rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cv {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.cv th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--doux);
  padding: 0.4rem 0.6rem 0.4rem 0;
  border-bottom: 1px solid var(--ligne);
}

.cv td {
  padding: 0.75rem 0.6rem 0.75rem 0;
  border-bottom: 1px solid var(--ligne);
  vertical-align: top;
}

.cv td:last-child,
.cv th:last-child {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  white-space: nowrap;
}

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

.contact {
  background: var(--craie);
}

.contact__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .contact__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
  }
}

.contact__mail {
  margin-top: 1.5rem;
  font-size: 1.2rem;
}

.contact__mail a {
  color: var(--meche-profond);
}

.contact__place {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--doux);
}

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

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

.form__row {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.form label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--doux);
}

.form input,
.form select,
.form textarea {
  font: inherit;
  color: var(--encre);
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 0;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

.form textarea {
  resize: vertical;
  min-height: 8rem;
}

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

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 0.25rem 0 0;
}

.form__status {
  font-size: 0.92rem;
  color: var(--doux);
}

.form__status.is-ok {
  color: #1f6b45;
}

.form__status.is-err {
  color: #a32626;
}

/* Footer
   -------------------------------------------------- */

.site-footer {
  background: var(--encre);
  color: rgba(247, 248, 250, 0.5);
  padding: 1.25rem 0;
  font-size: 0.85rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.site-footer p {
  margin: 0;
}
