@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --color-black: #252324;
  --color-beige: #f0efeb;
  --color-accent: #947f62;
  --color-white: #ffffff;
  --font-primary: "Aloevera display", serif;
  --transition-standard: all 0.3s ease;
  --border-radius-lg: 32px;
}

.layout-container {
  max-width: 1536px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px;
}

/* Police Aloevera Display - Configuration complète */
@font-face {
  font-family: "Aloevera display";
  src: url("Aloevera display/Aloevera display/WOFF2/AloeveraDisplay-Thin.woff2")
    format("woff2");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: "Aloevera display";
  src: url("Aloevera display/Aloevera display/WOFF2/AloeveraDisplay-ExtraLight.woff2")
    format("woff2");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "Aloevera display";
  src: url("Aloevera display/Aloevera display/WOFF2/AloeveraDisplay-Light.woff2")
    format("woff2");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Aloevera display";
  src: url("Aloevera display/Aloevera display/WOFF2/AloeveraDisplay-Regular.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Aloevera display";
  src: url("Aloevera display/Aloevera display/WOFF2/AloeveraDisplay-Medium.woff2")
    format("woff2");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Aloevera display";
  src: url("Aloevera display/Aloevera display/WOFF2/AloeveraDisplay-SemiBold.woff2")
    format("woff2");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Aloevera display";
  src: url("Aloevera display/Aloevera display/WOFF2/AloeveraDisplay-Bold.woff2")
    format("woff2");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Aloevera display";
  src: url("Aloevera display/Aloevera display/WOFF2/AloeveraDisplay-ExtraBold.woff2")
    format("woff2");
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: "Aloevera display";
  src: url("Aloevera display/Aloevera display/WOFF2/AloeveraDisplay-Black.woff2")
    format("woff2");
  font-weight: 900;
  font-style: normal;
}

/* Application de la police et styles de base */
* {
  font-family: var(--font-primary);
  font-weight: 300;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-beige);
  color: var(--color-black);
}

header {
  background-color: var(--color-beige);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.page-home header {
  background-color: transparent;
}

.page-home header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--color-beige);
  transform-origin: top;
  transform: scaleY(0);
  will-change: transform;
  z-index: -1;
  animation: headerCurtainReveal 1100ms cubic-bezier(0.16, 0.1, 0, 1) forwards;
  animation-delay: 1000ms;
}

@keyframes headerCurtainReveal {
  0% {
    transform: scaleY(0);
  }

  80% {
    transform: scaleY(1.04);
  }

  100% {
    transform: scaleY(1);
  }
}

h3,
h4 {
  font-size: 38px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
}

p {
  font-family: "Montserrat", sans-serif !important;
  font-size: 20px !important;
  line-height: 1.6 !important;
  font-weight: 300 !important;
}

ul {
  font-family: "Montserrat", sans-serif !important;
  font-size: 20px !important;
  line-height: 1.6 !important;
  font-weight: 300 !important;
}

li {
  font-family: "Montserrat", sans-serif !important;
  font-size: 20px !important;
  line-height: 1.6 !important;
  font-weight: 300 !important;
  margin-left: 20px;
}

/* Navigation */
.nav-link {
  font-size: 16px;
  padding: 12px 0;
  display: inline-block;
  transition: var(--transition-standard);
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 32px;
  height: 1px;
  background-color: var(--color-black);
}

.mobile-nav-link {
  font-size: 32px;
  font-weight: 500;
  color: var(--color-black);
  text-decoration: none;
  transition: var(--transition-standard);
}

/* Hamburger Menu */
.hamburger {
  cursor: pointer;
}

.hamburger input {
  display: none;
}

.hamburger svg {
  height: 3em;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
  fill: none;
  stroke: black;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition:
    stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line-top-bottom {
  stroke-dasharray: 12 63;
}

.hamburger input:checked + svg {
  transform: rotate(-45deg);
}

.hamburger input:checked + svg .line-top-bottom {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42;
}

/* Mobile Menu Active Link */
#mobile-menu .mobile-nav-link.active {
  text-decoration: none;
  position: relative;
  display: inline-block;
}

#mobile-menu .mobile-nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 30%;
  height: 1px;
  background-color: var(--color-black);
  transform: translateX(-50%);
}

#mobile-menu .mobile-nav-link.contact-btn.active::after {
  display: none;
}

/* Boutons */
.btn-base,
.btn-black,
.btn-white,
.nav-contact-button {
  font-size: 16px;
  border-radius: 48px;
  display: inline-block;
  transition: var(--transition-standard);
  text-decoration: none;
  font-weight: 400;
  cursor: pointer;
  border: none;
}

.nav-contact-button {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 12px 32px;
}

.btn-black,
.mobile-nav-link.contact-btn {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 16px 40px;
  font-size: 18px;
}

.mobile-nav-link.contact-btn {
  padding: 12px 48px;
  margin-top: 20px;
  border-radius: 48px;
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-black);
  padding: 16px 40px;
  font-size: 18px;
}

.nav-contact-button:hover,
.btn-black:hover,
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 35, 36, 0.3);
}

.nav-contact-button:hover,
.btn-black:hover {
  background-color: #3a3839;
}

.btn-white:hover {
  background-color: var(--color-beige);
}

.button-container {
  margin-top: 48px;
  display: flex;
}

.button-container.right {
  justify-content: flex-end;
}

.button-container.center {
  justify-content: center;
}

/* Hero Section */
.hero-image-container {
  border-radius: var(--border-radius-lg);
  overflow: visible;
  /* Permet à l'image de dépasser */
  box-shadow: none;
  width: 100%;
  height: 1200px;
  position: relative;
}

.hero-image-container img {
  width: 100%;
  height: calc(100% + 82px);
  object-fit: cover;
  object-position: center bottom;
  position: absolute;
  bottom: 0;
  left: 0;
  animation: heroRevealPadding 1400ms cubic-bezier(0.16, 0.1, 0, 1) forwards;
}

@keyframes heroRevealPadding {
  0% {
    clip-path: inset(0 0 0 0 round 0px);
  }

  50% {
    clip-path: inset(0 48px 0 48px round 0px);
  }

  85% {
    clip-path: inset(82px 48px 48px 48px round 0px);
  }

  100% {
    clip-path: inset(82px 48px 48px 48px round 32px);
  }
}

/* Tablette */
@keyframes heroRevealPaddingTablet {
  0% {
    clip-path: inset(0 0 0 0 round 0px);
  }

  50% {
    clip-path: inset(0 24px 0 24px round 0px);
  }

  85% {
    clip-path: inset(82px 24px 24px 24px round 0px);
  }

  100% {
    clip-path: inset(82px 24px 24px 24px round 20px);
  }
}

/* Mobile */
@keyframes heroRevealPaddingMobile {
  0% {
    clip-path: inset(0 0 0 0 round 0px);
  }

  50% {
    clip-path: inset(0 12px 0 12px round 0px);
  }

  85% {
    clip-path: inset(82px 12px 12px 12px round 0px);
  }

  100% {
    clip-path: inset(82px 12px 12px 12px round 12px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero-title {
  position: absolute;
  top: 96px;
  left: 96px;
  text-align: left;
  z-index: 10;
}

.hero-title-name,
.hero-title-profession {
  font-size: clamp(180px, 12vw, 187px);
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.hero-title-name {
  color: var(--color-white);
  animation: fadeIn 0.8s ease-in;
  animation-delay: 0.3s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.hero-title-profession {
  color: transparent;
  -webkit-text-stroke: 2px var(--color-white);
  animation: fadeIn 0.6s ease-in;
  animation-delay: 0.8s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.hero-description {
  position: absolute;
  bottom: 96px;
  right: 96px;
  color: var(--color-white);
  font-weight: 500;
  font-size: 48px;
  width: 652px;
  height: 128px;
  text-align: right;
  z-index: 10;
  line-height: 1;
}

/* Sections Standards */
.section-title,
.section-title-right {
  font-size: 67px;
  font-weight: 400;
  margin: 0 0 20px 0;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  line-height: 1.1;
}

.section-title::before,
.section-title-right::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  background-color: transparent;
  flex-shrink: 0;
  margin-top: 30px;
}

.section-title-right {
  justify-content: flex-end;
}

.section-title.no-bullet::before {
  content: none;
}

.section-title {
  max-width: 477px;
}

.section-divider {
  width: 100%;
  height: 1px;
  background-color: #d1d1d1;
  margin: 20px 0 60px 0;
  transform: scaleX(0);
  transform-origin: right center;
  animation: revealFromRight 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes revealFromRight {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.section-divider-right {
  width: 100%;
  height: 1px;
  background-color: #d1d1d1;
  margin: 20px 0 60px 0;
}

.no-margin-bottom {
  margin-bottom: 0;
}

/* Présentation */
.presentation-container {
  display: flex;
  align-items: center;
  gap: 48px;
  align-self: stretch;
}

.presentation-image {
  width: 508px;
  height: auto;
  max-height: 680px;
  object-fit: cover;
  align-self: stretch;
  border-radius: var(--border-radius-lg);
}

.presentation-content {
  flex: 1;
  padding-top: 20px;
}

.presentation-content h3 {
  margin: 0 0 20px 0;
  color: var(--color-black);
}

.presentation-content p {
  color: #333;
  margin: 0 0 20px 0;
}

.presentation-content-legales {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-bottom: 48px;
}

/* Compétences */
.competences-grid {
  display: flex;
  gap: 40px;
  justify-content: space-between;
}

.competence-item {
  position: relative;
  flex: 1;
  height: 292px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.competence-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.competence-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #947f62, #2e271e);
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
}

.competence-text {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  color: var(--color-white);
  z-index: 2;
}

.competence-text h3 {
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.competence-portrait {
  width: 508px;
  height: 712px;
  object-fit: cover;
  object-position: top;
  align-self: stretch;
  border-radius: var(--border-radius-lg);
}

/* Principes et Engagements */
.engagements-bg {
  position: relative;
  background-image: url("images/image_fond_echafaudages.webp");
  background-size: cover;
  background-position: bottom;
  height: 666px;
  width: 100%;
}

.engagements-overlay {
  background-color: rgba(77, 70, 51, 0.75);
  padding: 0;
  color: var(--color-white);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.engagements-overlay .section-title {
  color: var(--color-white);
}

.engagements-overlay .section-title::before {
  border-color: var(--color-white);
}

.engagements-overlay .section-divider {
  background-color: rgba(255, 255, 255, 0.3);
}

.engagements-grid {
  display: flex;
  gap: 60px;
  justify-content: space-between;
}

.engagement-item {
  flex: 1;
}

.engagement-item h3 {
  margin: 0 0 20px 0;
}

/* Expertises Accordéon */
.section-expertises {
  background-color: var(--color-beige);
  padding: 48px 48px 96px 48px;
}

.expertise-item {
  border-bottom: 1px solid rgba(148, 127, 98, 0.2);
  margin-bottom: 10px;
}

.expertise-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  cursor: pointer;
  padding: 24px 0;
  transition: var(--transition-standard);
}

.expertise-header:hover h3 {
  opacity: 0.7;
}

.expertise-header h3 {
  margin: 0 !important;
}

.expertise-icon {
  font-size: 32px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1;
  color: var(--color-black);
}

.expertise-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.expertise-item.active .expertise-content {
  max-height: 1000px;
  padding-bottom: 40px;
  opacity: 1;
}

.expertise-content ul {
  list-style: none;
  padding: 0;
}

.expertise-content ul li {
  margin-bottom: 10px;
}

/* Footer */
.site-footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 40px 48px;
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-areas:
    "logo socials nav mentions"
    "coords socials nav credits"
    "desc socials nav credits";
}

.f-logo {
  grid-area: logo;
}

.f-coords {
  grid-area: coords;
  line-height: 1;
}

.f-desc {
  grid-area: desc;
}

.f-socials {
  grid-area: socials;
  text-align: right;
  line-height: 0.5;
}

.f-nav {
  grid-area: nav;
  text-align: right;
}

.f-mentions {
  grid-area: mentions;
  text-align: right;
}

.f-credits {
  grid-area: credits;
  text-align: right;
  align-self: end;
}

.f-sep {
  display: none;
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 24px;
}

.footer-text p,
.footer-credits p {
  font-size: 13px !important;
  line-height: 1.6;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  gap: 12px;
}

.footer-text strong {
  display: block;
  font-family: "Montserrat", sans-serif !important;
  margin-bottom: 8px;
  color: var(--color-white);
}

.footer-text a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-standard);
}

.footer-text a:hover {
  color: var(--color-white);
}

/* Contact Page */

.contact-hero {
  position: relative;
  width: 100%;
  height: 792px;
  background: url("images/carte.webp") right bottom/cover;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 0px 48px;
  align-items: flex-start;
}

.contact-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  gap: 72px;
  z-index: 10;
}

.contact-form-side {
  padding-top: 72px;
  flex: 2;
}

.contact-info-side {
  display: flex;
  flex-direction: column;
  flex: 1;
  border-left: 1px solid rgba(37, 35, 36, 0.1);
  padding: 72px 0 0 72px;
  gap: 24px;
}

.form-group {
  margin-bottom: 24px;
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(37, 35, 36, 0.2);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  font-size: 18px;
  font-family: "Montserrat", sans-serif;
  color: var(--color-black);
  transition: var(--transition-standard);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-black);
  background-color: rgba(255, 255, 255, 0.8);
}

.form-select {
  appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23252324' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E")
    no-repeat right 16px center/20px;
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-icon-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.contact-icon {
  color: var(--color-black);
  opacity: 0.8;
}

.contact-detail-item strong {
  display: block;
  font-size: 14px;
  color: rgba(37, 35, 36, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-detail-item p {
  font-size: 24px !important;
  margin: 0;
}

/* Page White Utility */
.page-white,
.page-white header,
.page-white header nav,
.page-white #mobile-menu {
  background-color: var(--color-white) !important;
}

/* MEDIA QUERIES */
@media screen and (max-width: 1024px) {
  .mx-12,
  section.mx-12 {
    margin-left: 24px !important;
    margin-right: 24px !important;
  }

  .my-24 {
    margin-bottom: 48px !important;
  }

  .hero-image-container img {
    animation: heroRevealPaddingTablet 1400ms cubic-bezier(0.16, 0.1, 0, 1)
      forwards;
  }

  nav {
    padding: 20px 24px;
  }

  .hero-title-name,
  .hero-title-profession {
    font-size: 136px;
  }

  .hero-title {
    left: 40px;
    top: 40px;
  }

  .hero-description {
    font-size: 40px;
    right: 40px;
    bottom: 40px;
    max-width: 668px;
  }

  .hero-image-container {
    height: calc(100vh - 82px);
    height: calc(100dvh - 82px);
  }

  .presentation-container,
  .competences-grid,
  .contact-container,
  .engagements-grid {
    flex-direction: column;
    gap: 40px;
  }

  .presentation-image,
  .competence-portrait {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .competence-item {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    height: auto !important;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .competence-item .competence-image {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }

  .competence-item .competence-text {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    padding: 24px !important;
    z-index: 2;
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .column-right {
    grid-column: span 2;
    margin-top: 40px;
  }

  .contact-form-side {
    padding-top: 0px;
  }

  .contact-info-side {
    border-left: none;
    padding-left: 0;
    padding-top: 32px;
    border-top: 1px solid rgba(37, 35, 36, 0.1);
  }

  .contact-hero {
    height: auto;
    background-position: 85% 100%;
  }

  .contact-overlay {
    position: relative;
    inset: auto;
    padding: 48px 24px;
    align-items: flex-start;
  }

  .contact-detail-item p {
    font-size: 20px !important;
  }

  /* Fix Tablette - Principes et Engagements */
  .engagements-bg {
    height: auto;
    min-height: 666px;
  }

  .engagements-overlay {
    height: auto;
    min-height: 666px;
    padding: 60px 0;
  }

  /* Footer Tablet Layout */
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-areas:
      "logo desc desc"
      "sep sep sep"
      "socials nav mentions"
      "coords coords credits";
    gap: 24px;
    text-align: left;
  }

  .f-logo {
    grid-area: logo;
    text-align: left !important;
    justify-self: start;
  }

  .f-desc {
    grid-area: desc;
    text-align: right !important;
    justify-self: end;
    align-self: center;
  }

  .f-sep {
    display: block;
    grid-area: sep;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    height: 1px;
  }

  .f-socials {
    grid-area: socials;
    text-align: left !important;
    justify-self: stretch !important;
  }

  .f-nav {
    grid-area: nav;
    text-align: left !important;
    display: flex;
    justify-content: center;
    justify-self: stretch !important;
  }

  .f-mentions {
    grid-area: mentions;
    text-align: right !important;
    justify-self: stretch !important;
  }

  .f-coords {
    grid-area: coords;
    text-align: left !important;
    justify-self: start;
  }

  .f-credits {
    grid-area: credits;
    text-align: right !important;
    justify-self: end;
    align-self: end;
  }

  .footer-text p,
  .footer-credits p {
    white-space: normal !important;
  }
}

@media screen and (max-width: 767px) {
  .form-row {
    flex-direction: column;
  }

  .my-24 {
    margin-top: 48px !important;
  }

  .hero-image-container img {
    animation: heroRevealPaddingMobile 1400ms cubic-bezier(0.16, 0.1, 0, 1)
      forwards;
  }

  .section-divider,
  .section-divider-right {
    margin-bottom: 24px;
  }

  .presentation-container,
  .competences-grid,
  .contact-container,
  .engagements-grid {
    gap: 24px;
  }

  .hero-title-name,
  .hero-title-profession {
    font-size: clamp(80px, 15vw, 136px);
  }

  .hero-title {
    left: 24px;
    top: 24px;
  }

  .hero-description {
    font-size: clamp(24px, 5vw, 40px);
    right: 24px;
    bottom: 24px;
    height: auto;
    width: auto;
    max-width: calc(100% - 48px);
    text-align: right;
  }

  .hero-image-container {
    height: calc(100vh - 82px);
    height: calc(100dvh - 82px);
    border-radius: 20px;
  }

  .section-title,
  .section-title-right {
    font-size: 40px;
  }

  .presentation-content h3 {
    font-size: 34px;
  }

  .engagements-overlay {
    padding: 40px 24px !important;
  }

  .engagements-grid {
    flex-direction: column;
    gap: 24px;
  }

  .engagement-item h4 {
    font-size: 32px;
  }

  .engagements-bg {
    height: auto !important;
    min-height: 700px;
  }

  .engagements-bg {
    height: auto !important;
    min-height: 700px;
  }

  .contact-hero {
    background-size: auto 60%;
    background-repeat: no-repeat;
    background-position: 78% 110%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "socials"
      "nav"
      "mentions"
      "coords"
      "credits";
    gap: 24px;
    text-align: center;
  }

  .footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 0px;
  }

  .f-logo,
  .f-coords,
  .f-desc,
  .f-socials,
  .f-nav,
  .f-mentions,
  .f-credits {
    text-align: center !important;
    justify-self: center;
  }

  .f-credits {
    align-self: center;
  }

  .f-sep {
    display: none;
  }

  .f-desc {
    display: none;
  }

  /* Footer Mobile Consolidated */
  .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .footer-column,
  .footer-column.text-right,
  .column-right {
    text-align: center !important;
    align-items: center !important;
    width: 100%;
  }

  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-credits {
    text-align: center !important;
  }
}

@media screen and (max-width: 480px) {
  .layout-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .mx-12,
  section.mx-12 {
    margin-left: 20px !important;
    margin-right: 20px !important;
  }

  h3 {
    font-size: 28px !important;
  }

  p,
  ul,
  li {
    font-size: 16px !important;
  }

  nav {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .site-footer {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .presentation-container {
    margin-top: 24px !important;
  }

  .competence-portrait {
    height: calc(100vh - 203px);
    height: calc(100dvh - 203px);
  }

  .contact-overlay {
    padding-top: 20px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .section-title.no-bullet {
    font-size: 50px !important;
  }

  .section-title::before,
  .section-title-right::before {
    margin-top: 15px;
    /* Adjust alignment from original 30px */
  }

  .hero-title-name,
  .hero-title-profession {
    font-size: 65px;
  }

  .hero-description {
    font-size: 26px;
    max-width: 320px;
  }

  .hero-image-container {
    height: calc(100vh - 80px);
  }

  .btn-black,
  .btn-white {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }

  .engagement-item h3 {
    margin: 0 0 12px 0;
  }
}
