@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --resinov-teal: #4f868e;
  --resinov-charcoal: #333333;
  --resinov-white: #ffffff;
  --resinov-light-gray: #f3f5f5;
  --resinov-gray: #737a7c;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--resinov-charcoal);
  background: var(--resinov-white);
  font-family: Montserrat, Arial, sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header,
.site-footer {
  background: var(--resinov-white);
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--resinov-light-gray);
}

.site-header__inner,
.site-footer__inner {
  width: min(100% - 2rem, 1440px);
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
}

.site-branding {
  display: inline-block;
}

.site-branding img,
.custom-logo-link img {
  width: auto;
  max-height: 3.5rem;
}

.site-navigation .menu {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
}

.site-navigation a {
  display: inline-block;
  padding-block: 0.5rem;
  color: var(--resinov-gray);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.site-navigation a:hover,
.site-navigation a:focus-visible {
  color: var(--resinov-teal);
}

.menu-toggle {
  display: none;
}

.section-mission {
  padding-block: clamp(2rem, 3.5vw, 3.5rem) !important;
}

.section-mission .section-content {
  max-width: 70rem;
}

.section-mission h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.section-mission p {
  margin: 0;
  color: var(--resinov-gray);
}

.site-main {
  width: 100%;
}

.site-footer {
  color: var(--resinov-gray);
  background: var(--resinov-light-gray);
}

.site-footer__inner {
  padding-block: 1.5rem;
}

.site-footer p {
  margin: 0;
}

.container {
  width: min(100% - 2rem, 1440px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.section-hero {
  overflow: hidden;
  padding-top: clamp(2rem, 5vw, 4rem);
  background: var(--resinov-white);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  max-width: 42rem;
}

.hero-logo {
  width: min(100%, 25rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-eyebrow {
  margin: 0 0 1rem;
  color: var(--resinov-teal);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-hero h1,
.section-heading h2 {
  margin: 0;
  color: var(--resinov-charcoal);
  font-size: clamp(2.25rem, 7vw, 4.75rem);
  line-height: 1.1;
}

.hero-text {
  margin: 1.5rem 0 2rem;
  color: var(--resinov-gray);
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

.button-primary {
  color: var(--resinov-white);
  background: var(--resinov-teal);
}

.button-primary:hover,
.button-primary:focus-visible {
  color: var(--resinov-white);
  background: var(--resinov-charcoal);
}

.hero-media {
  margin: 0;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.section-projects {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--resinov-white);
}

.section-projects::before {
  position: absolute;
  z-index: -1;
  top: 8%;
  right: -14rem;
  width: min(48vw, 42rem);
  aspect-ratio: 1 / 0.72;
  border-radius: 58% 42% 52% 48% / 45% 50% 50% 55%;
  background: rgba(79, 134, 142, 0.1);
  content: "";
}

.section-projects::after {
  position: absolute;
  z-index: -1;
  bottom: -12rem;
  left: -12rem;
  width: min(42vw, 34rem);
  aspect-ratio: 1;
  border-radius: 44% 56% 40% 60% / 55% 43% 57% 45%;
  background: var(--resinov-light-gray);
  content: "";
}

.section-projects .container {
  display: flex;
  flex-direction: column;
}

.section-heading {
  margin-bottom: 2rem;
}

.section-projects .section-heading {
  order: -1;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.projects-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.project-card {
  margin: 0;
  overflow: hidden;
  background: var(--resinov-white);
}

.project-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

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

.service-card {
  display: grid;
  overflow: hidden;
  background: var(--resinov-light-gray);
}

.service-image {
  overflow: hidden;
}

.service-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.3;
}

.service-content p {
  margin: 0.5rem 0 0;
  color: var(--resinov-gray);
}

.section-benefits {
  background: var(--resinov-white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.benefit {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  padding: 1.25rem;
  background: var(--resinov-light-gray);
  border-top: 3px solid var(--resinov-teal);
}

.benefit-icon {
  width: 3rem;
  height: 3rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.benefit:nth-child(1) .benefit-icon {
  background-image: url('../images/icons/expertise8ans.png');
}

.benefit:nth-child(2) .benefit-icon {
  background-image: url('../images/icons/qualityMaterial.png');
}

.benefit:nth-child(3) .benefit-icon {
  background-image: url('../images/icons/accompagnement.png');
}

.benefit:nth-child(4) .benefit-icon {
  background-image: url('../images/icons/ecologique.png');
}

.benefit p {
  margin: 0;
  color: var(--resinov-charcoal);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.section-contact {
  background: var(--resinov-white);
}

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

.contact-details {
  display: grid;
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 4rem;
  padding: 1rem 1.125rem;
  color: var(--resinov-charcoal);
  background: var(--resinov-light-gray);
  font-weight: 600;
  text-decoration: none;
}

.contact-item:hover,
.contact-item:focus-visible {
  color: var(--resinov-teal);
}

.contact-icon {
  flex: 0 0 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--resinov-teal);
}

.contact-content {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  color: var(--resinov-white);
  background: var(--resinov-teal);
}

.contact-content::after {
  display: block;
  width: 3.75rem;
  height: 3.75rem;
  margin-top: 1.5rem;
  background: url('../images/icons/contact-mail.png') center / contain no-repeat;
  content: "";
}

.contact-content p {
  position: relative;
  margin: 0;
}

.contact-content a {
  font-weight: 600;
}

.contact-content strong {
  display: block;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 6rem);
  }

  .hero-media img {
    aspect-ratio: 3 / 4;
  }

  .projects-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    grid-template-columns: minmax(12rem, 42%) minmax(0, 1fr);
    align-items: stretch;
  }

  .service-image img {
    height: 100%;
    aspect-ratio: auto;
  }

  .benefits-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .benefit {
    padding: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1.5rem;
  }

  .contact-content {
    padding: 2rem;
  }
}

@media (max-width: 767px) {
  .site-header__inner {
    justify-content: flex-end;
    min-height: 4rem;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    color: var(--resinov-charcoal);
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .menu-toggle__icon,
  .menu-toggle__icon::before,
  .menu-toggle__icon::after {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: currentColor;
    content: "";
  }

  .menu-toggle__icon {
    position: relative;
  }

  .menu-toggle__icon::before,
  .menu-toggle__icon::after {
    position: absolute;
    left: 0;
  }

  .menu-toggle__icon::before {
    top: -0.45rem;
  }

  .menu-toggle__icon::after {
    top: 0.45rem;
  }

  .site-navigation {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 0.75rem 1rem 1rem;
    background: var(--resinov-white);
    border-bottom: 1px solid var(--resinov-light-gray);
  }

  .site-navigation.is-open {
    display: block;
  }

  .site-navigation .menu {
    display: grid;
    gap: 0;
    overflow: visible;
    white-space: normal;
  }

  .site-navigation a {
    display: block;
    padding-block: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .site-header__inner,
  .site-footer__inner,
  .container {
    width: min(100% - 5rem, 1440px);
  }

  .hero-logo {
    width: min(100%, 30rem);
  }

  .services-grid {
    gap: 1.5rem;
  }

  .service-card {
    grid-template-columns: 16rem minmax(0, 1fr);
  }

  .projects-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Formes décoratives inspirées de la fluidité de la résine. */
.section-hero,
.section-mission,
.section-services,
.section-projects,
.section-benefits {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section-hero .container,
.section-mission .container,
.section-services .container,
.section-projects .container,
.section-benefits .container {
  position: relative;
  z-index: 1;
}

.section-hero::after {
  position: absolute;
  z-index: 0;
  top: -10rem;
  right: -12rem;
  width: min(44vw, 34rem);
  aspect-ratio: 1;
  border-radius: 58% 42% 65% 35% / 45% 52% 48% 55%;
  background: rgba(79, 134, 142, 0.08);
  content: "";
}

.section-mission::before {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: -8rem;
  width: min(35vw, 28rem);
  aspect-ratio: 1.4 / 1;
  border: 1px solid rgba(79, 134, 142, 0.18);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%) rotate(-12deg);
}

.section-services::before {
  position: absolute;
  z-index: 0;
  top: 4rem;
  left: -9rem;
  width: min(32vw, 24rem);
  aspect-ratio: 1;
  border-radius: 40% 60% 54% 46% / 55% 45% 55% 45%;
  background: rgba(79, 134, 142, 0.06);
  content: "";
}

.section-projects::before,
.section-projects::after {
  z-index: 0;
}

.section-benefits::after {
  position: absolute;
  z-index: 0;
  right: -10rem;
  bottom: -11rem;
  width: min(36vw, 28rem);
  aspect-ratio: 1;
  border: 1px solid rgba(79, 134, 142, 0.14);
  border-radius: 58% 42% 46% 54% / 48% 56% 44% 52%;
  content: "";
  transform: rotate(20deg);
}
