:root {
  --cream: #f8f2e9;
  --cream-light: #fffaf4;
  --paper: #fffdf9;

  --text: #3f352f;
  --text-soft: #75665e;
  --text-muted: #9a887d;

  --sauge: #dfe8dc;
  --sauge-dark: #71806c;

  --peach: #efd8ca;
  --peach-dark: #a98370;

  --lavender: #e9e2ee;
  --rose: #f2e1df;
  --blue: #e1e8ed;

  --border: rgba(119, 97, 84, 0.12);
  --shadow: 0 24px 70px rgba(79, 61, 50, 0.08);

  --radius-xl: 42px;
  --radius-lg: 30px;
  --radius-md: 22px;

  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(
      circle at 10% 8%,
      rgba(239, 216, 202, 0.52),
      transparent 27%
    ),
    radial-gradient(
      circle at 92% 22%,
      rgba(223, 232, 220, 0.72),
      transparent 29%
    ),
    var(--cream);
  color: var(--text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  width: min(
    calc(100% - 40px),
    var(--max-width)
  );
  min-height: 78px;
  margin: 18px auto 0;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 18px;
  z-index: 20;

  background: rgba(255, 253, 249, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;

  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  box-shadow:
    0 10px 45px rgba(71, 54, 45, 0.06);
}

.brand {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  position: relative;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 3px;
  height: 1px;
  background: var(--peach-dark);
  transition: right 220ms ease;
}

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

.nav a:hover::after {
  right: 0;
}

main {
  width: min(
    calc(100% - 40px),
    var(--max-width)
  );
  margin: 0 auto;
}

.hero {
  min-height: 700px;
  padding: 90px 18px 70px;
  display: grid;
  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(330px, 0.92fr);
  align-items: center;
  gap: 70px;
}

.eyebrow {
  margin: 0 0 17px;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.17em;
  color: var(--peach-dark);
}

.hero h1,
.section-heading h2,
.project h2,
.coming-card h2,
.contact h2 {
  margin: 0;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(
    52px,
    7vw,
    88px
  );
  line-height: 0.98;
  font-weight: 700;
}

.hero h1 span,
.section-heading h2 span,
.contact h2 span {
  display: block;
  color: var(--peach-dark);
}

.hero-text {
  max-width: 620px;
  margin: 28px 0 0;
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-soft);
}

.hero-actions {
  margin-top: 35px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 51px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;

  font-size: 13px;
  font-weight: 700;

  transition:
    transform 180ms ease,
    opacity 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  background: var(--text);
  color: var(--paper);
}

.button-secondary {
  background: rgba(255, 253, 249, 0.68);
  border: 1px solid rgba(109, 86, 74, 0.12);
  color: var(--text);
}

.hero-visual {
  min-height: 510px;
  position: relative;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.orb-one {
  width: 290px;
  height: 290px;
  top: 16px;
  right: 8px;
  background: var(--sauge);
}

.orb-two {
  width: 250px;
  height: 250px;
  left: 5px;
  bottom: 5px;
  background: var(--peach);
}

.hero-card {
  width: min(
    100%,
    355px
  );
  min-height: 425px;
  padding: 35px;
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background:
    linear-gradient(
      145deg,
      rgba(255, 253, 249, 0.88),
      rgba(255, 253, 249, 0.58)
    );
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  box-shadow: var(--shadow);
  transform: rotate(3deg);
}

.hero-card-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--peach-dark);
}

.hero-card p {
  margin: 0;
  font-size: 47px;
  line-height: 1.03;
  font-weight: 650;
  letter-spacing: -0.055em;
}

.section {
  padding: 105px 18px;
}

.about {
  border-top: 1px solid var(--border);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 70px;
  align-items: end;
}

.section-heading h2 {
  max-width: 650px;
  font-size: clamp(
    40px,
    5vw,
    68px
  );
  line-height: 1.02;
  font-weight: 650;
}

.section-heading p {
  margin: 0 0 6px;
  max-width: 530px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-soft);
}

.projects {
  padding-top: 70px;
}

.project {
  margin-top: 26px;
  padding: 58px;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(300px, 0.8fr);
  gap: 65px;
  align-items: center;

  border-radius: var(--radius-xl);
  overflow: hidden;
}

.project-featured {
  background:
    linear-gradient(
      135deg,
      #e3ebdf,
      #f5e6da 58%,
      #f8eee7
    );
}

.project-secondary {
  min-height: 410px;
  background:
    linear-gradient(
      135deg,
      #e8e1ed,
      #dee6eb
    );
}

.project-status {
  display: inline-flex;
  padding: 8px 12px;
  margin-bottom: 22px;

  border-radius: 999px;
  background: rgba(255, 253, 249, 0.62);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  color: var(--text-soft);
}

.project h2 {
  font-size: clamp(
    50px,
    6vw,
    76px
  );
  line-height: 0.95;
  font-weight: 700;
}

.project-tagline {
  margin: 20px 0 0;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 600;
}

.project-description {
  max-width: 600px;
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-soft);
}

.feature-list {
  margin-top: 27px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.feature-list span {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.68);

  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
}

.text-link {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 9px;

  font-size: 13px;
  font-weight: 800;
}

.text-link span {
  font-size: 18px;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.project-visual {
  min-height: 390px;
  display: grid;
  place-items: center;
  position: relative;
}

.nid-card {
  width: min(
    100%,
    315px
  );
  min-height: 370px;
  padding: 31px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  border-radius: 38px;
  background: rgba(255, 253, 249, 0.77);
  border: 1px solid rgba(255, 255, 255, 0.84);

  box-shadow:
    0 30px 70px rgba(75, 61, 52, 0.11);

  transform: rotate(-3deg);
}

.nid-card span {
  font-size: 31px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.nid-card p {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.nocturne-visual {
  min-height: 280px;
}

.nocturne-visual::before,
.nocturne-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.nocturne-visual::before {
  width: 225px;
  height: 225px;
  background: rgba(83, 67, 99, 0.12);
}

.nocturne-visual::after {
  width: 150px;
  height: 150px;
  transform: translate(
    55px,
    -45px
  );
  background: rgba(255, 253, 249, 0.42);
}

.nocturne-visual span {
  position: relative;
  z-index: 2;
  font-size: clamp(
    31px,
    5vw,
    58px
  );
  font-weight: 800;
  letter-spacing: 0.05em;
}

.coming-soon {
  padding-top: 35px;
}

.coming-card {
  padding: 75px 55px;
  text-align: center;

  border-radius: var(--radius-xl);

  background:
    radial-gradient(
      circle at top left,
      rgba(242, 225, 223, 0.9),
      transparent 40%
    ),
    linear-gradient(
      140deg,
      #fffaf4,
      #ece6db
    );
}

.coming-card h2 {
  font-size: clamp(
    38px,
    5vw,
    64px
  );
  line-height: 1;
  font-weight: 650;
}

.coming-card p:not(.eyebrow) {
  max-width: 520px;
  margin: 21px auto 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft);
}

.contact {
  padding-bottom: 95px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 60px;
  align-items: end;
}

.contact h2 {
  max-width: 600px;
  font-size: clamp(
    41px,
    5vw,
    66px
  );
  line-height: 1.02;
  font-weight: 650;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.contact-links a {
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(63, 53, 47, 0.2);

  font-size: 16px;
  font-weight: 600;
  color: var(--text-soft);

  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.contact-links a:hover {
  color: var(--text);
  border-color: var(--text);
}

.site-footer {
  width: min(
    calc(100% - 40px),
    var(--max-width)
  );
  margin: 0 auto 24px;
  padding: 38px 42px 30px;

  border-radius: var(--radius-lg);
  background: #403630;
  color: #f7efe8;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top strong {
  font-size: 13px;
  letter-spacing: 0.17em;
}

.footer-top p {
  max-width: 320px;
  margin: 0;
  text-align: right;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(247, 239, 232, 0.64);
}

.legal {
  padding-top: 28px;
}

.legal p {
  margin: 5px 0;
  font-size: 10px;
  line-height: 1.6;
  color: rgba(247, 239, 232, 0.56);
}

.copyright {
  margin: 25px 0 0;
  font-size: 10px;
  color: rgba(247, 239, 232, 0.42);
}


/* Les p’tits exploreurs */

.project-explorers {
  min-height: 500px;
  background:
    radial-gradient(
      circle at 88% 14%,
      rgba(255, 244, 194, 0.88),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #edf2f2,
      #f8eddb 58%,
      #fff8e6
    );
}

.project-explorers .project-status {
  background: rgba(255, 253, 249, 0.7);
}

.explorers-actions {
  margin-top: 30px;
}

.explorers-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  font-size: 13px;
  font-weight: 800;

  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

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

.explorers-link span {
  font-size: 18px;
}

.explorers-link-main {
  padding: 13px 17px;
  border-radius: 999px;
  background: var(--text);
  color: var(--paper);
}

.amazon-links {
  margin-top: 25px;
}

.amazon-label {
  display: block;
  margin-bottom: 10px;

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  color: var(--text-soft);
}

.amazon-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 470px;
}

.amazon-grid a {
  padding: 11px 13px;

  border-radius: 15px;
  background: rgba(255, 253, 249, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.75);

  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text-soft);

  transition:
    background 180ms ease,
    transform 180ms ease;
}

.amazon-grid a:hover {
  background: rgba(255, 253, 249, 0.9);
  transform: translateY(-2px);
}

.explorers-visual {
  min-height: 420px;
}

.explorers-stack {
  width: 340px;
  height: 390px;
  position: relative;
}

.explorer-book {
  position: absolute;
  width: 235px;
  height: 310px;
  padding: 27px;

  border-radius: 22px 30px 30px 22px;
  border: 1px solid rgba(255, 255, 255, 0.78);

  box-shadow:
    0 26px 55px rgba(69, 65, 54, 0.1);
}

.explorer-book::after {
  content: "";
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 15px;
  width: 1px;
  background: rgba(63, 53, 47, 0.08);
}

.explorer-book-back {
  top: 12px;
  right: 0;

  display: flex;
  align-items: flex-end;
  justify-content: flex-end;

  background: #dce9ec;
  transform: rotate(10deg);
}

.explorer-book-back span {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #77929b;
}

.explorer-book-middle {
  top: 38px;
  left: 4px;

  background: #f5e7a9;
  transform: rotate(-9deg);
}

.explorer-book-middle span {
  font-size: 32px;
  font-weight: 800;
  color: #a48743;
}

.explorer-book-front {
  top: 49px;
  left: 56px;
  z-index: 3;

  display: flex;
  flex-direction: column;

  background:
    linear-gradient(
      145deg,
      #fffdf7,
      #f5e7d9
    );

  transform: rotate(1.5deg);
}

.explorer-book-front small {
  margin-top: 3px;

  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--peach-dark);
}

.explorer-book-front strong {
  margin-top: 4px;

  font-size: 28px;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.explorer-book-front p {
  margin: auto 0 0;

  font-size: 23px;
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text-soft);
}

/* Accessibilité */

a:focus-visible {
  outline: 2px solid var(--peach-dark);
  outline-offset: 4px;
}

/* Tablette */

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 80px;
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .section-heading,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .project {
    padding: 45px;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .project-visual {
    min-height: 330px;
  }
}

/* Mobile */

@media (max-width: 640px) {
  .site-header {
    width: calc(100% - 24px);
    min-height: 66px;
    margin-top: 12px;
    padding: 0 18px;
    top: 10px;
  }

  .brand {
    font-size: 12px;
  }

  .nav {
    gap: 14px;
  }

  .nav a {
    font-size: 11px;
  }

  .nav a:nth-child(1) {
    display: none;
  }

  main {
    width: calc(100% - 24px);
  }

  .hero {
    padding:
      75px
      7px
      45px;
  }

  .hero h1 {
    font-size: clamp(
      48px,
      15vw,
      67px
    );
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 375px;
  }

  .orb-one {
    width: 220px;
    height: 220px;
  }

  .orb-two {
    width: 190px;
    height: 190px;
  }

  .hero-card {
    min-height: 325px;
    width: 255px;
    padding: 27px;
  }

  .hero-card p {
    font-size: 35px;
  }

  .section {
    padding:
      75px
      7px;
  }

  .section-heading h2 {
    font-size: 44px;
  }

  .section-heading p {
    font-size: 15px;
  }

  .projects {
    padding-top: 40px;
  }

  .project {
    margin-top: 18px;
    padding: 30px 24px;
    border-radius: 32px;
  }

  .project h2 {
    font-size: 51px;
  }

  .project-tagline {
    font-size: 18px;
  }

  .project-description {
    font-size: 14px;
  }

  .project-visual {
    min-height: 300px;
  }

  .nid-card {
    width: 240px;
    min-height: 295px;
    padding: 25px;
  }

  .nid-card span {
    font-size: 27px;
  }

  .nid-card p {
    font-size: 25px;
  }

  .coming-card {
    padding: 55px 25px;
    border-radius: 32px;
  }

  .contact h2 {
    font-size: 45px;
  }

  .contact-links a {
    font-size: 14px;
  }

  .site-footer {
    width: calc(100% - 24px);
    margin-bottom: 12px;
    padding: 31px 25px;
    border-radius: 27px;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-top p {
    text-align: left;
  }
}

@media (max-width: 390px) {
  .nav {
    gap: 11px;
  }

  .nav a {
    font-size: 10px;
  }

  .hero h1 {
    font-size: 46px;
  }
}


/* Mobile overflow hardening */

@media (max-width: 640px) {
  .project,
  .project-copy,
  .project-visual,
  .contact-grid,
  .contact-links,
  .site-footer,
  .footer-top,
  .legal {
    min-width: 0;
    max-width: 100%;
  }

  .project-copy,
  .project-description,
  .project-tagline,
  .contact-links a,
  .legal p,
  .footer-top p {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .amazon-grid {
    width: 100%;
    max-width: 100%;
  }

  .amazon-grid a {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
