/*
Theme Name: JRTP Officiel
Theme URI: https://jrtp.fr
Author: JRTP
Description: Thème officiel JRTP – terrassement, assainissement et aménagement extérieur.
Version: 1.5.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: jrtp
*/
:root {
  --ink: #111111;
  --forest: #090909;
  --orange: #f58200;
  --sand: #f4f4f3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  font:
    16px/1.65 Arial,
    sans-serif;
}
.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}
.topbar {
  background: var(--orange);
  color: #090909;
  font-size: 13px;
}
.topbar .wrap {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar a,
.nav a,
.brand,
footer a {
  color: inherit;
  text-decoration: none;
}
.header-inner {
  height: 112px;
  display: flex;
  align-items: center;
  gap: 42px;
  width: min(1320px, calc(100% - 28px));
}
header{background:#050505;border-bottom:2px solid var(--orange)}
.brand {
  display: flex;
  flex-direction:column;
  align-items: center;
  gap: 0;
}
.brand img{display:block;width:235px;height:70px;object-fit:contain;object-position:left center}.brand-slogan{display:block;color:white;font-weight:900;font-size:12px;line-height:1.2;white-space:nowrap;letter-spacing:.15px}.brand-slogan i{font-style:normal;color:var(--orange);padding:0 2px}
.brand-mark {
  width: 48px;
  height: 48px;
  border: 3px solid var(--orange);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--orange);
}
.brand b {
  font-size: 27px;
  line-height: 1;
  display: block;
}
.brand small {
  display: block;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 2px;
  color: #67726b;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex: 1;
}
.nav a {
  font-size: 14px;
  font-weight: 700;
  color:#fff;
}
.nav a:hover{color:var(--orange)}
.nav-call {
  background: var(--orange);
  color: white !important;
  padding: 11px 18px;
}
.menu {
  display: none;
}
.hero,
.subhero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, #050505, #252525);
  color: white;
  background-size: cover;
  background-position: center;
}
.hero {
  min-height: 650px;
}
.hero:after,
.subhero:after {
  content: none;
}
.hero-content,
.subhero .wrap {
  position: relative;
  z-index: 2;
}
.hero-content {
  padding-top: 105px;
}
.eyebrow {
  color: var(--orange);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2.5px;
  font-weight: 800;
  display: block;
  margin-bottom: 16px;
}
.light {
  color: #ff9a2e;
}
.hero h1,
.subhero h1 {
  font-size: 68px;
  line-height: 1.02;
  letter-spacing: -3px;
  margin: 0;
  max-width: 900px;
}
.hero h1 em,
h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--orange);
}
.hero p,
.subhero p {
  font-size: 19px;
  max-width: 650px;
  color: #d8e2dc;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.btn {
  padding: 14px 20px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid transparent;
}
.orange {
  background: var(--orange);
  color: white;
}
.glass {
  border-color: #ffffff66;
  color: white;
}
.text-link {
  font-weight: 800;
  color: var(--orange);
  text-decoration: none;
}
.text-link.light {
  color: white;
}
.hero-badge {
  position: absolute;
  right: 8%;
  bottom: 55px;
  z-index: 2;
  border-left: 3px solid var(--orange);
  padding-left: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.hero-badge b {
  font-size: 28px;
}
.hero-badge span {
  font-size: 12px;
  text-transform: uppercase;
}
.section {
  padding: 96px 0;
}
.muted {
  background: var(--sand);
  border-top: 4px solid var(--orange);
}
.split,
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}
.section h2,
.local h2,
.cta h2 {
  font-size: 46px;
  line-height: 1.13;
  letter-spacing: -2px;
  margin: 0 0 26px;
}
.lead {
  font-size: 20px;
  font-weight: 700;
}
.title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 44px;
}
.title-row p {
  max-width: 430px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: white;
  padding: 34px;
  min-height: 245px;
  border-top: 4px solid var(--orange);
  box-shadow: 0 12px 35px #15261d0d;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:after{content:"";position:absolute;right:-55px;bottom:-65px;width:150px;height:150px;border:28px solid #f582000d;border-radius:50%;pointer-events:none}.card:hover{transform:translateY(-4px);box-shadow:0 18px 42px #11111118}.card-copy{position:relative;z-index:1}.card-photo{display:none}
.card-icon {
  width: 58px;
  height: 58px;
  background: #111;
  color: var(--orange);
  display: grid;
  place-items: center;
  font-size: 27px;
  border:2px solid var(--orange);
  border-radius:50%;
  box-shadow:0 0 0 7px #f5820013;
}
.card h3 {
  font-size: 22px;
  margin: 26px 0 8px;
}
.service-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.story-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
}
.story-grid figure,
.service-wide-photo {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: #14251b;
}
.story-grid img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.story-grid figure:not(.story-main) img {
  height: 420px;
}
.story-grid figure:after,
.service-wide-photo:after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(8, 17, 12, 0.9));
}
.story-grid figcaption,
.service-wide-photo figcaption {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 25px;
  color: white;
  display: flex;
  flex-direction: column;
}
.story-grid figcaption b,
.service-wide-photo figcaption b {
  font-size: 19px;
}
.story-grid figcaption span,
.service-wide-photo figcaption span {
  color: #dce5df;
  font-size: 14px;
}
.service-wide-photo {
  height: 390px;
  margin-top: 36px;
}
.service-wide-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mini-photo-row{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:22px}.mini-photo-row figure,.page-photo-pair figure{margin:0;background:#080808;color:white;overflow:hidden;border-bottom:4px solid var(--orange)}.mini-photo-row img{display:block;width:100%;height:210px;object-fit:cover;transition:transform .4s ease}.mini-photo-row figure:hover img,.page-photo-pair figure:hover img{transform:scale(1.03)}.mini-photo-row figcaption,.page-photo-pair figcaption{display:flex;flex-direction:column;padding:18px 20px}.mini-photo-row figcaption span,.page-photo-pair figcaption span{font-size:13px;color:#ccc}.page-photo-pair{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:22px}.page-photo-pair img{display:block;width:100%;height:310px;object-fit:cover;transition:transform .4s ease}
.service-links a {
  background: white;
  padding: 0 34px 30px;
  color: var(--orange);
  font-weight: 800;
  text-decoration: none;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-top: 50px;
}
.features > div {
  border-top: 1px solid #cad0cb;
  padding-top: 24px;
}
.features b {
  color: var(--orange);
}
.local {
  background: #080808;
  color: white;
  padding: 70px 0;
}
.local-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.local p {
  font-size: 18px;
  color: #d9e2dc;
}
.cta {
  background: linear-gradient(115deg,#ed7300,var(--orange));
  color: white;
  padding: 70px 0;
}
.cta .eyebrow,.cta .eyebrow.light{color:#fff}
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}
.cta h2 {
  margin-bottom: 10px;
}
.cta-actions {
  display: flex;
  gap: 10px;
  flex-direction: column;
  min-width: 250px;
}
.white {
  background: white;
  color: var(--ink);
}
.outline-white {
  color: white;
  border-color: #fff;
}
.subhero {
  padding: 100px 0;
}
.subhero h1 {
  font-size: 58px;
}
.checklist {
  list-style: none;
  padding: 0;
}
.checklist li {
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
}
.checklist li:before {
  content: "✓";
  color: var(--orange);
  font-weight: 900;
  margin-right: 12px;
}
.faq {
  max-width: 850px;
  margin: auto;
}
.faq details {
  border-bottom: 1px solid #d5d9d6;
  padding: 20px 0;
}
.faq summary {
  font-weight: 800;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-card {
  min-height: 280px;
  background: linear-gradient(145deg, #263d30, #101914);
  color: white;
  display: block;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.gallery-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-card:hover img {
  transform: scale(1.04);
}
.gallery-card:after {
  content: "";
  position: absolute;
  inset: 25% 0 0;
  background: linear-gradient(transparent, rgba(6, 13, 9, 0.92));
}
.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  z-index: 2;
}
.gallery-caption span {
  display: block;
  margin-bottom: 8px;
}
.gallery-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    120deg,
    transparent 0 25px,
    #ffffff08 25px 27px
  );
}
.gallery-card h3,
.gallery-card p {
  position: relative;
  margin: 0;
}
.gallery-card p {
  color: #ffac7d;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
}
.contact-box {
  padding: 38px;
  background: var(--sand);
}
.contact-box.dark {
  background: var(--forest);
  color: white;
}
.contact-box a {
  display: block;
  color: inherit;
  font-size: 19px;
  font-weight: 800;
  margin: 18px 0;
  text-decoration: none;
}
footer {
  background: #050505;
  color: #cdd7d0;
  padding-top: 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 55px;
  padding-bottom: 55px;
}
.footer-grid>div:first-child{display:flex;align-items:flex-start;justify-content:flex-start}.footer-brand{display:block;width:300px;max-width:100%;margin:0}.footer-brand img{display:block;width:300px;height:112px;object-fit:contain;object-position:left center}.footer-brand .brand-slogan{display:none}
.footer-grid h3 {
  color: white;
}
.footer-grid a {
  display: block;
  margin: 7px 0;
  font-size: 13px;
}
.footer-bottom {
  border-top: 1px solid #ffffff1d;
  padding: 18px 0;
  font-size: 12px;
}
.footer-bottom .wrap {
  display: flex;
  gap: 16px;
}
.footer-bottom span {
  margin-left: auto;
}
.footer-nav{border-top:1px solid #2d2d2d;border-bottom:1px solid #2d2d2d;background:#0c0c0c}.footer-nav .wrap{min-height:72px;display:flex;align-items:center;justify-content:center;gap:26px;flex-wrap:wrap}.footer-nav a{color:white;text-decoration:none;font-size:13px;font-weight:800}.footer-nav a:hover{color:var(--orange)}.footer-nav .footer-call{background:var(--orange);color:#080808;padding:11px 17px}
.floating-call {
  display: none;
}
@media (max-width: 850px) {
  .topbar span {
    display: none;
  }
  .topbar .wrap {
    justify-content: center;
  }
  .header-inner{height:96px;width:min(1160px,calc(100% - 40px));justify-content:space-between;gap:20px}.brand{align-items:flex-start}.brand img{width:180px;height:57px}.brand-slogan{font-size:9px}.brand.footer-brand{display:block;width:270px}.footer-brand img{width:270px;height:100px;object-position:left center}.footer-brand .brand-slogan{display:none}
  .menu {
    display: block;
    border: 0;
    background: #050505;
    color: white;
    font-size: 25px;
  }
  .nav {
    display: none;
    position: absolute;
    top: 132px;
    left: 0;
    right: 0;
    background: #080808;
    border-bottom:2px solid var(--orange);
    padding: 20px;
    z-index: 20;
    flex-direction: column;
  }
  .nav.open {
    display: flex;
  }
  .hero {
    min-height: 620px;
  }
  .hero-content {
    padding-top: 75px;
  }
  .hero h1,
  .subhero h1 {
    font-size: 43px;
    letter-spacing: -2px;
  }
  .hero-badge {
    display: none;
  }
  .section {
    padding: 65px 0;
  }
  .section h2,
  .local h2,
  .cta h2 {
    font-size: 36px;
  }
  .split,
  .content-grid,
  .local-grid,
  .contact-grid,
  .cards,
  .features,
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .story-grid {
    grid-template-columns: 1fr;
  }
  .mini-photo-row,.page-photo-pair{grid-template-columns:1fr}.mini-photo-row img,.page-photo-pair img{height:270px}
  .story-grid img,
  .story-grid figure:not(.story-main) img {
    height: 310px;
  }
  .service-wide-photo {
    height: 310px;
  }
  .title-row,
  .cta-inner {
    display: block;
  }
  .service-links {
    display: none;
  }
  .cta-actions {
    margin-top: 25px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-nav .wrap{display:grid;grid-template-columns:1fr 1fr;gap:0;padding:14px 0}.footer-nav a{padding:10px;text-align:center;border-bottom:1px solid #242424}.footer-nav .footer-call{grid-column:1/-1;margin-top:8px}
  .floating-call {
    display: block;
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 30;
    background: var(--orange);
    color: white;
    text-decoration: none;
    padding: 13px 18px;
    border-radius: 40px;
    font-weight: 800;
  }
}
@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .floating-call span {
    display: none;
  }
}

/* Adaptation WordPress : les menus générés gardent exactement l'alignement de la maquette. */
.jrtp-menu,.footer-links,.footer-bottom-links{list-style:none;margin:0;padding:0}
.nav>.jrtp-menu{display:flex;align-items:center;justify-content:space-between;gap:28px}
.footer-links li{margin:0;padding:0}.footer-links a{display:block}
.footer-nav .footer-bottom-links{display:flex;align-items:center;justify-content:center;gap:26px;flex-wrap:wrap}
.footer-nav .wrap{justify-content:space-between}
.page .entry-content{margin:0}
.admin-bar header{top:32px}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.filters button {
  border: 1px solid #ccd2ce;
  background: white;
  padding: 10px 15px;
  font-weight: 700;
  cursor: pointer;
}
.filters button.active {
  background: #1d392c;
  color: white;
  border-color: #1d392c;
}
.gallery-card span {
  position: relative;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 2px;
  margin-bottom: auto;
  color: #d8e2dc;
}

@media (max-width: 980px){
  .nav>.jrtp-menu{display:block}
  .nav>.jrtp-menu a{display:block}
  .footer-nav .footer-bottom-links{display:contents}
}
@media screen and (max-width:782px){.admin-bar header{top:46px}}
