@font-face {
  font-family: "PP Frama";
  src: url("Fonts/PPFrama-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #f4e6a6;
  --text: #2b160f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  font-family: "PP Frama", Arial, sans-serif;
}

/* ─── Desktop (original intact) ─── */

.navbar {
  height: 110px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.logo {
  width: 120px;
  display: block;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navigation a,
.email {
  color: var(--text);
  text-decoration: none;
}

.navigation a {
  font-size: 18px;
  line-height: 1;
}

.hero {
  position: relative;
  flex: 1;
  min-height: 0;
}

.hero-center {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.chapeau {
  width: 80px;
  margin-bottom: 20px;
}

.services {
  margin: 0;
  font-size: clamp(18px, 2.8vw, 28px);
  line-height: 1.15;
  text-align: center;
  font-weight: 400;
}

.services span {
  display: block;
  white-space: nowrap;
}

.hero-bottom {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.bottom-left,
.bottom-right {
  width: 42%;
}

.bottom-title {
  margin: 0;
  font-size: 33px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 400;
}

.bottom-right {
  text-align: right;
}

.bottom-subtitle,
.portfolio-text {
  margin: 0;
  font-size: 27px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.email {
  display: inline-block;
  margin-top: 4px;
  font-size: 33px;
  line-height: 1;
  letter-spacing: -0.04em;
  text-decoration: underline;
}

.footer {
  height: 70px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ══════════════════════════════════════════════
   TABLETTE PORTRAIT (601–1100px)
   hero-center centré dans l'espace libre,
   hero-bottom en bas en flow normal.
══════════════════════════════════════════════ */

@media (min-width: 601px) and (max-width: 1100px) and (orientation: portrait) {
  .navbar {
    height: 90px;
    padding: 0 28px;
  }

  .logo {
    width: 110px;
  }

  .navigation {
    gap: 24px;
  }

  .navigation a {
    font-size: 17px;
  }

  .hero {
    position: static;
    display: flex;
    flex-direction: column;
    padding: 0 28px 28px;
  }

  .hero-center {
    position: static;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: none;
    text-align: center;
    width: 100%;
  }

  .chapeau {
    width: clamp(44px, 6vw, 70px);
    margin-bottom: 18px;
  }

  .services {
    font-size: clamp(30px, 2.8vw, 40px);
  }

  .hero-bottom {
    position: static;
    flex-shrink: 0;
    flex-direction: row;
    align-items: flex-end;
    gap: 28px;
  }

  .bottom-left,
  .bottom-right {
    width: 48%;
  }

  .bottom-title {
    font-size: clamp(22px, 3.2vw, 36px);
  }

  .bottom-subtitle {
    font-size: clamp(15px, 2vw, 20px);
  }

  .portfolio-text {
    font-size: clamp(14px, 1.9vw, 19px);
  }

  .email {
    font-size: clamp(18px, 2.5vw, 26px);
  }

  .footer {
    height: 60px;
    font-size: 13px;
  }
}

/* ══════════════════════════════════════════════
   MOBILE PORTRAIT (≤ 600px)
══════════════════════════════════════════════ */

@media (max-width: 600px) and (orientation: portrait) {
  body {
    min-height: 100svh;
  }

  .navbar {
    height: 78px;
    padding: 0 18px;
  }

  .logo {
    width: 90px;
  }

  .navigation {
    gap: 16px;
  }

  .navigation a {
    font-size: 14px;
  }

  .hero {
    position: static;
    flex: 1;
    min-height: calc(100svh - 124px);
    display: flex;
    flex-direction: column;
    padding: 0 18px 20px;
  }

  .hero-center {
    position: static;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: none;
    text-align: center;
    width: 100%;
  }

  .chapeau {
    width: 50px;
    margin-bottom: 14px;
  }

  .services {
    font-size: 20px;
    line-height: 1.08;
  }

  .hero-bottom {
    position: static;
    flex-shrink: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .bottom-left,
  .bottom-right {
    width: 100%;
    text-align: center;
  }

  .bottom-title {
    font-size: 20px;
    line-height: 0.92;
  }

  .bottom-subtitle {
    font-size: 17px;
    line-height: 1;
  }

  .portfolio-text {
    font-size: 15px;
    line-height: 0.98;
  }

  .email {
    font-size: 20px;
    line-height: 1;
  }

  .footer {
    height: 46px;
    font-size: 10px;
    text-align: center;
  }
}

/* ══════════════════════════════════════════════
   MOBILE PAYSAGE (≤ 900px + landscape)
══════════════════════════════════════════════ */

@media (max-width: 900px) and (orientation: landscape) {
  .navbar {
    height: 58px;
    padding: 0 18px;
  }

  .logo {
    width: 78px;
  }

  .navigation {
    gap: 16px;
  }

  .navigation a {
    font-size: 13px;
  }

  .hero {
    min-height: 320px;
  }

  .hero-center {
    top: 40%;
  }

  .chapeau {
    width: 28px;
    margin-bottom: 8px;
  }

  .services {
    font-size: 14px;
    line-height: 1.05;
  }

  .hero-bottom {
    left: 18px;
    right: 18px;
    bottom: 12px;
    gap: 24px;
  }

  .bottom-left,
  .bottom-right {
    width: 44%;
  }

  .bottom-title {
    font-size: 20px;
    line-height: 0.9;
  }

  .bottom-subtitle {
    font-size: 15px;
    line-height: 1;
  }

  .portfolio-text {
    font-size: 14px;
    line-height: 0.95;
  }

  .email {
    font-size: 18px;
    line-height: 1;
  }

  .footer {
    height: 34px;
    font-size: 9px;
  }
}