/*
Theme Name: Entretien Paysage Genevois
Theme URI: https://crackerstech.com/
Author: Cracker's Tech
Author URI: https://crackerstech.com/
Description: Theme dedie Gutenberg pour Entretien Paysage Genevois.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: entretien-paysage-genevois
*/

:root {
  --epg-ink: #18251d;
  --epg-ink-soft: #33443a;
  --epg-green: #3f8f3d;
  --epg-green-deep: #173c2b;
  --epg-lime: #8fb340;
  --epg-sage: #e9f0e7;
  --epg-paper: #f8f7f2;
  --epg-white: #ffffff;
  --epg-border: rgba(24, 37, 29, 0.14);
  --epg-shadow: 0 24px 70px rgba(24, 37, 29, 0.14);
  --epg-radius: 8px;
  --epg-container: min(1160px, calc(100vw - 40px));
  --epg-font: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--epg-ink);
  background: var(--epg-paper);
  font-family: var(--epg-font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--epg-ink);
  color: var(--epg-white);
}

.skip-link:focus {
  left: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 247, 242, 0.92);
  border-bottom: 1px solid var(--epg-border);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  width: var(--epg-container);
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.1;
}

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--epg-white);
  background: var(--epg-green-deep);
  border-radius: 50%;
}

.brand__name {
  max-width: 210px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.brand__name span {
  display: block;
  color: var(--epg-green);
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu a {
  color: var(--epg-ink-soft);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.primary-menu a:hover,
.primary-menu a:focus {
  color: var(--epg-green);
}

.site-header__cta,
.epg-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  color: var(--epg-white);
  background: var(--epg-green);
  border: 0;
  border-radius: var(--epg-radius);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-header__cta:hover,
.epg-button:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
  background: var(--epg-green-deep);
  box-shadow: 0 10px 28px rgba(23, 60, 43, 0.22);
}

.entry-content > * {
  margin-block-start: 0;
}

.epg-container,
.wp-block-group.epg-container {
  width: var(--epg-container);
  margin-inline: auto;
}

.epg-container > .wp-block-group__inner-container,
.epg-section > .wp-block-group__inner-container,
.epg-services > .wp-block-group__inner-container,
.epg-gallery > .wp-block-group__inner-container,
.epg-section__head > .wp-block-group__inner-container,
.epg-service > .wp-block-group__inner-container {
  width: 100%;
  max-width: none !important;
}

.epg-container > .wp-block-group__inner-container > .epg-section__head,
.epg-container > .wp-block-group__inner-container > .epg-services,
.epg-container > .wp-block-group__inner-container > .epg-gallery {
  width: 100%;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.alignfull {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.epg-hero {
  display: grid;
  align-items: stretch;
  background: var(--epg-green-deep);
}

.epg-hero > .wp-block-group__inner-container {
  width: 100%;
}

.epg-hero__grid {
  width: var(--epg-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 56px;
  align-items: center;
  padding: 44px 0 56px;
}

.epg-hero__content {
  color: var(--epg-white);
}

.epg-hero h1 {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: clamp(42px, 5.2vw, 78px);
  line-height: 0.96;
  letter-spacing: 0;
}

.epg-hero p {
  max-width: 620px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.epg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.epg-hero__phone {
  margin: 0;
  color: var(--epg-white);
  font-weight: 800;
  text-decoration: none;
}

.epg-hero__phone a {
  color: var(--epg-white);
  text-decoration: none;
}

.epg-hero__media {
  min-height: 480px;
  border-radius: var(--epg-radius);
  background-size: cover;
  background-position: center;
  box-shadow: var(--epg-shadow);
}

.epg-hero__image {
  margin: 0;
}

.epg-hero__image img {
  width: 100%;
  min-height: 480px;
  display: block;
  object-fit: cover;
  border-radius: var(--epg-radius);
  box-shadow: var(--epg-shadow);
}

.epg-section {
  padding: 96px 0;
}

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

.epg-section--dark {
  color: var(--epg-white);
  background: var(--epg-ink);
}

.epg-section__head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.45fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 44px;
}

.wp-block-group.epg-section__head {
  display: block;
}

.epg-section__head > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.45fr);
  gap: 36px;
  align-items: end;
}

.epg-section h2,
.entry-content h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

.epg-section__head p {
  margin: 0;
  color: var(--epg-ink-soft);
}

.epg-section--dark .epg-section__head p {
  color: rgba(255, 255, 255, 0.72);
}

.epg-about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 56px;
  align-items: center;
}

.epg-about__image {
  overflow: hidden;
  border-radius: var(--epg-radius);
  box-shadow: var(--epg-shadow);
}

.epg-about__image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.epg-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  overflow: hidden;
  border: 1px solid var(--epg-border);
  border-radius: var(--epg-radius);
}

.epg-proof__item {
  padding: 24px;
  background: var(--epg-sage);
}

.epg-proof__item strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.epg-proof__item p {
  margin: 0;
}

.epg-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.wp-block-group.epg-services {
  display: block;
}

.epg-services > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.epg-service {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--epg-radius);
  background: var(--epg-green-deep);
}

.epg-service > .wp-block-group__inner-container {
  height: 100%;
}

.epg-service figure {
  height: 100%;
  margin: 0;
}

.epg-service .wp-block-image {
  height: 100%;
}

.epg-service img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  object-fit: cover;
  transition: transform 500ms ease;
}

.epg-service:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 18%, rgba(0, 0, 0, 0.72));
}

.epg-service__body {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 2;
  color: var(--epg-white);
}

.epg-service__body h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.1;
}

.epg-service__body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.epg-service:hover img {
  transform: scale(1.05);
}

.epg-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
}

.wp-block-group.epg-gallery {
  display: block;
}

.epg-gallery > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
}

.epg-gallery figure {
  margin: 0;
}

.epg-gallery img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: block;
  object-fit: cover;
  border-radius: var(--epg-radius);
}

.epg-gallery img:first-child {
  grid-row: span 2;
  min-height: 540px;
}

.epg-gallery > .wp-block-group__inner-container > .wp-block-image:first-child {
  grid-row: span 2;
}

.epg-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: 52px;
  align-items: start;
}

.epg-contact__panel {
  padding: 34px;
  background: var(--epg-white);
  border: 1px solid var(--epg-border);
  border-radius: var(--epg-radius);
  box-shadow: var(--epg-shadow);
}

.epg-contact-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.epg-contact-list a {
  color: var(--epg-green-deep);
  font-weight: 800;
  text-decoration: none;
}

.epg-form {
  display: grid;
  gap: 14px;
}

.epg-form label {
  display: grid;
  gap: 6px;
  color: var(--epg-ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.epg-form input,
.epg-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  color: var(--epg-ink);
  background: #f4f6f1;
  border: 1px solid var(--epg-border);
  border-radius: var(--epg-radius);
  font: inherit;
}

.epg-form textarea {
  min-height: 140px;
  resize: vertical;
}

.epg-form__status {
  padding: 12px 14px;
  border-radius: var(--epg-radius);
  background: var(--epg-sage);
  font-weight: 700;
}

.epg-hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: var(--epg-green-deep);
}

.site-footer__inner {
  width: var(--epg-container);
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

.site-footer a {
  color: var(--epg-white);
  font-weight: 800;
  text-decoration: none;
}

.reveal,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.is-visible {
  animation: epg-rise 620ms ease both;
}

@keyframes epg-rise {
  from {
    opacity: 0.01;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .reveal,
  .epg-service img,
  .epg-button,
  .wp-block-button__link {
    transition: none;
  }
}

@media (max-width: 900px) {
  body.admin-bar .site-header {
    top: 0;
  }

  .site-header__inner {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-menu {
    width: 100%;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .site-header__cta {
    display: none;
  }

  .epg-hero__grid,
  .epg-about,
  .epg-section__head,
  .epg-contact {
    grid-template-columns: 1fr;
  }

  .epg-hero {
    min-height: auto;
  }

  .epg-hero__grid {
    gap: 32px;
    padding: 48px 0 64px;
  }

  .epg-hero__media {
    min-height: 360px;
  }

  .epg-hero__image img {
    min-height: 360px;
  }

  .epg-section {
    padding: 70px 0;
  }

  .epg-services,
  .epg-proof,
  .epg-gallery {
    grid-template-columns: 1fr;
  }

  .epg-services > .wp-block-group__inner-container,
  .epg-section__head > .wp-block-group__inner-container,
  .epg-gallery > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
  }

  .epg-gallery img:first-child {
    grid-row: auto;
    min-height: 300px;
  }

  .epg-gallery > .wp-block-group__inner-container > .wp-block-image:first-child {
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  :root {
    --epg-container: min(100vw - 28px, 1160px);
  }

  .brand__name {
    max-width: 260px;
    font-size: 13px;
  }

  .epg-hero h1 {
    font-size: 42px;
  }

  .epg-contact__panel {
    padding: 22px;
  }
}
