/*PETITJEAN global*/

/*COULEURS + BASE*/

:root {
  --blanc: #ffffff;
  --rougeFonce: #730500;
  --rougeMoyen: #ad0f0a;
  --rougeNormal: #c90d0f;
  --rouge: #e30512;
  --noir333: #333333;
  --noir888: #888888;
  --noirEF: #efefef;
  --noir11 : #111111;
}

.rougeFonce { color:#730500;}
.rougeMoyen { color:#ad0f0a;} 
.rougeNormal { color:#c90d0f;} 
.rouge { color:#e30512;} 

/*html { overflow-x: hidden; }*/
b { font-weight:900; }

.no

/*HEADER*/

#masthead { z-index:9999;}
body.home .main-header-bar.ast-sticky-active {
}

/*OFF CANVAS*/
.menu-toggle {
	position : relative;
	top:0;
	right:0;
	padding:5px 8px!important;
	height:1.5em!important;
}

/*MENU*/

.ast-primary-header-bar .menu-link {
	margin-left:3px;
}

.main-header-bar-navigation .current-menu-ancestor > .menu-link {
	color:#fff!important;
}

.astra-mm-icon-label img {
	height:auto!important;
}
.no-text .menu-link .menu-text {
	display:none;
}

.no-text.accueil a {
	background:none!important;
}
.menu-text {
	text-align:center;
}

/*HEADER page MAINTENANCE*/

.postid-2848 #masthead {
  display: none!important;
}

/*HEADER LOGO TRANS + MOVE*/

#masthead .ast-container {
	padding-left:0!important;
}

.ast-theme-transparent-header .ast-primary-header-bar .menu-link {
	color:#fff;
}
.ast-primary-header{
	box-shadow: 0 2px 10px 0 rgba(36,50,66,0.25)
}
.ast-theme-transparent-header
.ast-primary-header {
	box-shadow:none;
}
.ast-primary-header .ast-header-button-2 .ast-custom-button {
	color:#000;
	border:1px solid #00000033;
}
.ast-theme-transparent-header .ast-primary-header .ast-header-button-2 .ast-custom-button {
	color:#fff;
	border:1px solid #ffffff;
}

.ast-theme-transparent-header #masthead .site-logo-img .transparent-custom-logo .astra-logo-svg {
	width:200px;
	max-width:200px;
	height:auto;
	padding:0px 10px 0 0;
	filter: drop-shadow(5px 5px 6px rgba(0, 0, 0, 0.5));
}

.transparent-custom-logo .astra-logo-svg {
  animation: slideInLeft 1s ease-out forwards;
}

.ast-sticky-active
.site-branding.ast-site-identity {
	padding:10px;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}


/*ELEMENTOR correction img Box mobile*/

@media (max-width: 767px) {

    .image-box-mobile-left .elementor-image-box-wrapper {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start;
        text-align: left;
        gap: 5px;
    }

    .image-box-mobile-left .elementor-image-box-img {
        margin: 0 !important;
        flex-shrink: 0;
    }

    .image-box-mobile-left .elementor-image-box-content {
        flex: 1;
        min-width: 0;
    }
}


/*ACCUEIL slider diapo haut fond*/
.backConteneurDiapoNoir {
    background-color: #000000;
    background-image: url(https://petitjean2026.rsp.fr/wp-content/uploads/2026/09/Petijean-Desnes-Juillet-2026_20-scaled.webp);
    background-position: center center;
    background-size: cover;
}


/*CLIENT HOVER*/

#hoverDiv .hover-swap {
  position: relative;
  overflow: hidden;
}

#hoverDiv .hover-swap .bloc-base,
#hoverDiv .hover-swap .bloc-hover {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#hoverDiv .hover-swap .bloc-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.03);
}

#hoverDiv .hover-swap:hover .bloc-base {
  opacity: 0;
  transform: scale(0.97);
}

#hoverDiv .hover-swap:hover .bloc-hover {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}


/*FORM CONTACT*/

.pj-contact-form {
  color: var(--noir333);
	font-size:24px!important;
}

.pj-contact-form * {
  box-sizing: border-box;
}

.pj-contact-form p {
  margin: 0;
}

.pj-contact-form br {
  display: none;
}

.pj-contact-form .wpcf7-form-control-wrap {
  display: block;
}

.pj-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom:20px;
}

.pj-field,
.pj-field-full,
.pj-file-field {
  display: block;
  margin: 0 0 14px;
}

.pj-form-grid .pj-field {
  margin-bottom: 0;
}

.pj-input,
.pj-select,
.pj-textarea {
  display: block;
  width: 100%!important;
  border: 1px solid transparent!important;
  border-radius: 5px!important;
  background: var(--noirEF)!important;
  color: var(--noir333)!important;
  font-size:18px!important;
	line-height:1.1em!important;
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.pj-input,
.pj-select {
  min-height: 30px;
  padding: 10px 15px;
}

.pj-input::placeholder,
.pj-textarea::placeholder {
  color: var(--noir888);
  opacity: 1;
}

.pj-select {
  appearance: auto;
  cursor: pointer;
}

.pj-textarea {
  height: 90px;
  min-height: 90px;
  padding: 10px 15px;
  resize: vertical;
}

.pj-input:focus,
.pj-select:focus,
.pj-textarea:focus {
  border-color: #969696;
  background: #f7f7f7;
}

.pj-file-field {
  min-height: 42px;
  background: var(--noirEF);
}

.pj-file {
  display: block;
  width: 100%;
  min-height: 42px;
  color: var(--noir888);
  font: inherit;
	background:var(--noirEF)!important;
}

.pj-file::file-selector-button {
  min-height: 42px;
  margin-right: 10px;
  padding: 4px 12px;
  border: none;
  border-radius: 5px;
  background: var(--rougeNormal)!important;
  color: var(--blanc)!important;
  font: inherit;
  text-transform:uppercase!important;
  cursor: pointer;
}
.pj-file::file-selector-button:hover {
	background: var(--noir333)!important;
}

.pj-consent {
  margin: 2px 0 14px;
  font-size: 19px;
  line-height: 1.5;
}

.pj-consent .wpcf7-list-item {
  margin: 0;
}

.pj-acceptance {
  margin-right: 8px;
  height:auto!important;
  accent-color: var(--rougeNormal);
  transform: translateY(1px) scale(1.25);
}

.pj-submit {
  position: relative;
  padding: 15px 30px 15px 70px!important;
  border: 0;
  border-radius: 5px;
  background-color: var(--rougeNormal);
  background-image: url("https://petitjean2026.rsp.fr/wp-content/uploads/2026/09/PETIT-JEAN-Icone-chevrons-right-blanc-100px.svg")!important;
  background-position: 30px center!important;
  background-repeat: no-repeat!important;
  background-size: 24px auto!important;
  color: #fff;
  cursor: pointer;
  font-size: 24px!important;
  font-weight: 800!important;
  text-transform: uppercase!important;
  border-style: none!important;
}

.pj-submit:hover,
.pj-submit:focus-visible {
  background-color: var(--noir333)!important;
}

body .e-con.e-parent:nth-of-type(n+4):not(.e-lazyloaded):not(.e-no-lazyload) .pj-contact-form .pj-submit {
  background-image: url("https://petitjean2026.rsp.fr/wp-content/uploads/2026/09/PETIT-JEAN-Icone-chevrons-right-blanc-100px.svg")!important;
}

.pj-submit:active {
  transform: translateY(1px);
}

.wpcf7 .wpcf7-spinner {
  width: 30px;
  height: 30px;
  margin: 0 0 0 14px;
  border: 3px solid rgba(201, 13, 15, 0.22);
  border-top-color: var(--rougeNormal);
  border-radius: 50%;
  background-color: transparent!important;
  vertical-align: middle;
  animation: pj-spinner-rotation 700ms linear infinite;
}

.wpcf7 .wpcf7-form.submitting .wpcf7-spinner {
  visibility: visible;
}

@keyframes pj-spinner-rotation {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wpcf7 .wpcf7-spinner {
    animation-duration: 1400ms;
  }
}

.pj-contact-form .wpcf7-not-valid-tip {
  color:var(--rougeNormal)!important;
  font-size: 14px;
  line-height:1em!important;
}

.wpcf7 .wpcf7-response-output {
  --pj-message-background: var(--blanc);
  --pj-message-border: var(--noir888);
  --pj-message-color: var(--noir333);
  display: block;
  margin: 24px 0 0;
  padding: 15px 30px!important;
  border: 1px solid var(--pj-message-border);
  border-radius: 5px;
  background: var(--pj-message-background);
  color: var(--pj-message-color);
  font-size: 18px;
  text-transform:uppercase;
  text-align:center;
  line-height: 1.1;
}

.wpcf7 .wpcf7-form.sent .wpcf7-response-output,
.wpcf7 .wpcf7-response-output.wpcf7-mail-sent-ok {
  --pj-message-border: #4a9b61;
}

.wpcf7 .wpcf7-form.failed .wpcf7-response-output,
.wpcf7 .wpcf7-form.aborted .wpcf7-response-output,
.wpcf7 .wpcf7-response-output.wpcf7-mail-sent-ng {
  --pj-message-border: var(--rougeNormal);
  --pj-message-color: var(--rougeFonce);
}

.wpcf7 .wpcf7-form.invalid .wpcf7-response-output,
.wpcf7 .wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7 .wpcf7-response-output.wpcf7-validation-errors,
.wpcf7 .wpcf7-response-output.wpcf7-acceptance-missing {
  --pj-message-border: #c58b22;
}

.wpcf7 .wpcf7-form.spam .wpcf7-response-output,
.wpcf7 .wpcf7-response-output.wpcf7-spam-blocked {
  --pj-message-border: #8955a3;
}

@media (max-width: 700px) {
  .pj-contact-form {
    font-size: 18px;
  }

  .pj-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pj-form-grid .pj-field {
    margin-bottom: 18px;
  }

  .pj-field,
  .pj-field-full,
  .pj-file-field {
    margin-bottom: 18px;
  }

  .pj-input,
  .pj-select,
  .pj-textarea {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pj-consent {
    font-size: 17px;
    line-height: 1.65;
  }

  .pj-submit {
    width: 100%;
    min-width: 0;
    font-size: 25px;
  }
}


/*CARTOGRAPHIE ZONE ACTION*/

#map-villes-wrapper {
position: relative;
width: 100%;
}

#map-villes-wrapper a {
    text-decoration:none;
    color:#111;
}

#map-villes-wrapper .leaflet-attribution-flag {
    display:none!important;
}

#map-villes {
width: 100%;
height: 820px;
min-height: 820px;
border-radius: 12px;
overflow: hidden;
}

#map-villes .leaflet-control-zoom.leaflet-bar {
    box-shadow:none;
    border:none;
    
}

#map-villes .leaflet-control-zoom a {
background: #ffffff;
color: #ad0f0a;
border: none;
box-shadow: 0 0 5px rgba(0,0,0,0.25);
text-decoration:none;
padding : 0px 6px 8px 5px;
margin-top:5px;
border-radius:999px;
line-height:1em;
}

#map-villes .leaflet-control-zoom a:hover {
background: #ad0f0a;
color:#ffffff;
}

#map-villes .leaflet-control-attribution {
  margin: 0 0 25px 0;
  background:none;
}

.message-zoom-villes {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(0, 0, 0, 0.65);
color: #ffffff;
text-align:center;
padding: 10px 16px;
border-radius: 0px;
font-size: 20px;
text-transform:uppercase;
line-height: 1.1;
z-index: 1000;
pointer-events: none;
opacity: 0;
transition: opacity 0.25s ease;
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
white-space: nowrap;
}

.ville-etiquette {
background: transparent;
border: none;
}

.ville-etiquette__contenu {
display: inline-flex;
align-items: center;
gap: 8px;
white-space: nowrap;
font-family:Neue-Kabel;
font-size: 13px;
text-transform:uppercase;
font-weight: 800;
color: #111111;
text-shadow:
  -1px -1px 0 #ffffff,
   1px -1px 0 #ffffff,
  -1px  1px 0 #ffffff,
   1px  1px 0 #ffffff;
}

.ville-etiquette__point {
width: 15px;
height: 15px;
border-radius: 0%;
background: #c90d0f;
box-shadow: 3px 3px 3px 0px rgba(0,0,0,0.15);
flex: 0 0 15px;
}


/*MATERIEL tableaux HTML*/

:root {
    --table-border: #ccc;
    --table-head-bg: #c90d0f;
    --table-head-color: #fff;
    --table-row-alt: #f8f8f8;
    --table-row-hover: #d9d9d9;
    --title-color: #222;
    --text-color: #111;
}


.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.materiel-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 0px solid var(--table-border);
	font-size:1em;
	line-height:1em;
}

.materiel-table th,
.materiel-table td {
    padding: 6px 10px;
    border-bottom: 1px solid var(--table-border);
    text-align: left;
    vertical-align: top;
}

.materiel-table th {
    background: var(--table-head-bg);
    color: var(--table-head-color);
    font-weight: 700;
}

.materiel-table tbody tr:nth-child(even) {
    background: var(--table-row-alt);
}

.materiel-table tbody tr:hover {
    background: var(--table-row-hover);
}

.materiel-table th:nth-child(2),
.materiel-table td:nth-child(2) {
    text-align: center;
}

.materiel-table th:nth-child(3),
.materiel-table td:nth-child(3) {
    
}

@media (max-width: 700px) {
    .materiel-table th,
    .materiel-table td {
        padding: 10px;
        font-size: 0.95rem;
    }
}





