/* Devis / RDV JSA CLIM — CSS canonique
   Version de travail : 5.0.95
   Objectif : habillage léger de la page Devis / RDV.
   Le formulaire [jsaclim_form] reste géré par le plugin CRM.
   Une seule source de styles : remplacer entièrement assets/css/devis-rdv.css par ce fichier. */

.jsa-devis-page{
  --devis-gap:var(--jsa-page-gap,clamp(12px,1.45vw,20px));
  --devis-radius:var(--jsa-page-radius,18px);
  --devis-line:var(--jsa-page-line,#cfe4f4);
  --devis-green:var(--jsa-green,#16885a);
  --devis-orange:var(--jsa-orange,#f39a1f);
  width:100%;
  max-width:100%;
  padding-bottom:clamp(14px,1.7vw,22px);
  color:var(--jsa-ink);
  font-size:20px;
}

.jsa-devis-page *,
.jsa-devis-page *::before,
.jsa-devis-page *::after{
  box-sizing:border-box;
}

.jsa-devis-page p,
.jsa-devis-page li{
  hyphens:none;
}

.jsa-devis-page a{
  overflow-wrap:anywhere;
}

/* Hero compact : le formulaire doit arriver vite dans l'écran */
.jsa-devis-hero{
  position:relative;
  overflow:hidden;
  margin:0 0 clamp(10px,1.2vw,16px);
  padding:clamp(18px,2.4vw,28px);
  border:1px solid var(--devis-line);
  border-radius:var(--jsa-page-hero-radius,22px);
  background:
    radial-gradient(circle at 100% 100%,rgba(16,121,180,.12),transparent 29%),
    linear-gradient(135deg,#fff 0%,#f5fbff 56%,#eaf6ff 100%);
  box-shadow:var(--jsa-shadow-strong);
  text-align:center;
}

.jsa-devis-hero::after{
  content:"";
  position:absolute;
  right:-120px;
  bottom:-160px;
  width:310px;
  height:310px;
  border-radius:999px;
  background:rgba(16,121,180,.09);
  pointer-events:none;
}

.jsa-devis-hero > *{
  position:relative;
  z-index:1;
}

.jsa-devis-eyebrow{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:fit-content;
  max-width:100%;
  margin:0 auto 9px;
  padding:6px 12px;
  border:1px solid #bddcf0;
  border-radius:999px;
  background:#eef8ff;
  color:#075f91;
  font-size:.84rem;
  font-weight:950;
  line-height:1.1;
  text-align:center;
  white-space:nowrap;
  text-transform:none;
}

.jsa-devis-hero h1{
  max-width:1040px;
  margin:0 auto 10px;
  font-size:clamp(1.9rem,2.45vw,2.28rem);
  line-height:1.08;
  text-wrap:balance;
}

.jsa-devis-lead{
  max-width:960px;
  margin:0 auto;
  color:#334155;
  font-size:19.5px;
  line-height:1.62;
  text-align:justify;
  text-align-last:center;
  hyphens:none;
}

/* Pastille information : forte demande + redirection SAV */
.jsa-devis-info-strip{
  width:min(100%,1120px);
  margin:0 auto clamp(14px,1.8vw,22px);
  padding:8px 14px;
  border:1px solid #f2c57f;
  border-left:4px solid var(--devis-orange);
  border-radius:12px;
  background:linear-gradient(90deg,#fff8ee 0%,#fff 78%);
  color:#334155;
  box-shadow:0 6px 16px rgba(220,119,16,.07);
}

.jsa-devis-info-strip p{
  margin:0;
  color:#334155;
  font-size:16.2px;
  line-height:1.48;
  text-align:center;
  text-align-last:center;
}

.jsa-devis-info-strip strong{
  color:#9a4b06;
  font-weight:950;
}

.jsa-devis-info-strip span{
  display:inline;
}

.jsa-devis-info-strip a{
  color:#075f91;
  font-weight:950;
  text-decoration:none;
}

.jsa-devis-info-strip a:hover{
  text-decoration:underline;
}

/* Zone formulaire : on encadre sans casser le CSS du CRM */
.jsa-devis-form-zone{
  max-width:1120px;
  margin:0 auto;
}

/* Garde-fous très légers autour du formulaire plugin.
   Ne pas styler brutalement les champs : le CRM reste maître du rendu. */
.jsa-devis-form-zone > *{
  max-width:100%;
}

.jsa-devis-form-zone .jsaclim-form,
.jsa-devis-form-zone .jsaclim-form-wrapper,
.jsa-devis-form-zone .jsa-crm-form,
.jsa-devis-form-zone form{
  margin-inline:auto;
}

/* Si le plugin génère déjà une carte blanche, on évite de rajouter une carte dans une carte. */
.jsa-devis-form-zone .jsaclim-form,
.jsa-devis-form-zone .jsaclim-form-wrapper{
  box-shadow:none;
}

/* On garde la colonne Facebook sur desktop : elle apporte une preuve sociale.
   Le layout du thème la passe déjà sous le contenu sur écran étroit. */
.jsa-content-shell:has(.jsa-devis-page) .jsa-sidebar{
  top:92px;
}

/* Espaces footer */
.jsa-main:has(.jsa-devis-page){
  padding-top:8px!important;
  padding-bottom:0;
}

.jsa-main:has(.jsa-devis-page) + .jsa-footer{
  margin-top:0;
}

.jsa-main:has(.jsa-devis-page) + .jsa-footer .jsa-footer__reviews-full{
  padding-top:20px!important;
}

.entry-content:has(.jsa-devis-page){
  margin-top:0!important;
  padding-top:0!important;
  overflow:visible;
}

/* Tablettes */
@media(min-width:641px) and (max-width:980px){
  .jsa-devis-page{
    --devis-gap:18px;
  }

  .jsa-devis-hero h1{
    font-size:1.95rem;
  }

  .jsa-devis-lead{
    font-size:18.8px;
    line-height:1.6;
  }

  .jsa-devis-info-strip p{
    font-size:15.8px;
  }
}

/* Mobile */
@media(max-width:640px){
  .jsa-devis-page{
    --devis-gap:14px;
    padding-bottom:16px;
    font-size:18px;
  }

  .jsa-devis-hero{
    padding:16px 12px;
    border-radius:17px;
    margin-bottom:10px;
  }

  .jsa-devis-eyebrow{
    padding:5px 9px;
    font-size:.76rem;
    line-height:1.16;
    white-space:normal;
  }

  .jsa-devis-hero h1{
    margin-bottom:8px;
    font-size:1.46rem;
    line-height:1.13;
  }

  .jsa-devis-lead{
    font-size:16.9px;
    line-height:1.5;
    text-align:justify;
    text-align-last:center;
  }

  .jsa-devis-info-strip{
    margin-bottom:13px;
    padding:8px 10px;
    border-radius:10px;
  }

  .jsa-devis-info-strip p{
    font-size:14.8px;
    line-height:1.4;
  }

  .jsa-devis-info-strip span{
    display:block;
    margin-top:2px;
  }

  .jsa-devis-form-zone{
    max-width:100%;
  }
}

/* Très petits mobiles */
@media(max-width:380px){
  .jsa-devis-page{
    font-size:17px;
  }

  .jsa-devis-hero h1{
    font-size:1.35rem;
  }

  .jsa-devis-lead{
    font-size:16.1px;
    line-height:1.48;
  }

  .jsa-devis-info-strip p{
    font-size:14.2px;
  }

  .jsa-devis-eyebrow{
    font-size:.72rem;
    padding:5px 8px;
  }
}

/* Stabilisation iOS */
.jsa-devis-page p,
.jsa-devis-page li{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
