/* =========================================================
   EEP · Devis — Version: 1.1.1
   Formulaire de devis — L'Élagueur De L'Est Parisien
   Palette Landscop : doré #f4be29 · vert anis #97b545 · vert foncé #0f3714
   ========================================================= */
.eep-d{
    --eep-accent:#f4be29;
    --eep-primary:#97b545;
    --eep-dark:#0f3714;
    --eep-light:#eef1e8;
    --eep-svc-cols:3;
    position:relative; font-family:inherit;
}
.eep-d-card{
    background:#fff; border-radius:24px; padding:36px;
    box-shadow:0 16px 50px rgba(15,55,20,.1); max-width:780px; margin:0 auto;
}

/* En-tête */
.eep-d-head{ text-align:center; margin-bottom:26px; }
.eep-d-title{ margin:0 0 8px; font-size:1.6rem; font-weight:800; color:var(--eep-dark); line-height:1.2; }
.eep-d-subtitle{ margin:0; color:#5a6b7a; font-size:1rem; line-height:1.55; }

/* Barre de progression */
.eep-d-progress{ height:6px; background:var(--eep-light); border-radius:30px; overflow:hidden; margin-bottom:12px; }
.eep-d-progress-bar{ height:100%; background:linear-gradient(90deg, var(--eep-primary), var(--eep-accent)); border-radius:30px; transition:width .4s cubic-bezier(.2,.7,.2,1); }
.eep-d-progress-steps{ display:flex; justify-content:space-between; margin-bottom:28px; }
.eep-d-progress-steps span{ font-size:.8rem; font-weight:700; color:#b3c0cc; transition:color .3s ease; }
.eep-d-progress-steps span.is-active{ color:var(--eep-primary); }
.eep-d-progress-steps span.is-done{ color:var(--eep-dark); }

/* Étapes */
.eep-d-step{ display:none; animation:eepDFade .4s ease; }
.eep-d-step.is-active{ display:block; }
.eep-d-step-title{ margin:0 0 20px; font-size:1.25rem; font-weight:800; color:var(--eep-dark); }
@keyframes eepDFade{ from{ opacity:0; transform:translateX(12px); } to{ opacity:1; transform:none; } }

/* Cases prestations */
.eep-d-services{ display:grid; grid-template-columns:repeat(var(--eep-svc-cols),minmax(0,1fr)); gap:14px; }
.eep-d-svc{
    position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
    padding:22px 14px; border-radius:18px; border:2px solid #e8eef3; background:#fff;
    cursor:pointer; text-align:center; transition:border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.eep-d-svc:hover{ border-color:var(--eep-primary); transform:translateY(-3px); box-shadow:0 10px 24px rgba(15,55,20,.1); }
.eep-d-svc.is-selected{ border-color:var(--eep-primary); background:rgba(151,181,69,.08); }
.eep-d-svc-input{ position:absolute; opacity:0; pointer-events:none; }
.eep-d-svc-icon{ font-size:30px; color:var(--eep-primary); line-height:1; }
.eep-d-svc-icon svg{ width:1em; height:1em; fill:currentColor; }
.eep-d-svc-label{ font-size:.9rem; font-weight:700; color:var(--eep-dark); line-height:1.3; }
.eep-d-svc-check{
    position:absolute; top:10px; right:10px; width:22px; height:22px; border-radius:50%;
    background:var(--eep-primary); color:#fff; display:flex; align-items:center; justify-content:center;
    opacity:0; transform:scale(.5); transition:opacity .2s ease, transform .2s ease;
}
.eep-d-svc.is-selected .eep-d-svc-check{ opacity:1; transform:scale(1); }

/* Champs */
.eep-d-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.eep-d-group{ display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.eep-d-group label{ font-size:.82rem; font-weight:700; color:var(--eep-dark); }
.eep-d-field{
    width:100%; box-sizing:border-box;
    background-color:var(--eep-light);
    border:1.5px solid #e2e9ef; border-radius:30px !important;
    padding:14px 22px; font-size:.97rem; color:var(--eep-dark); font-family:inherit;
    transition:border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.eep-d-field:focus{ outline:none; border-color:var(--eep-primary); background-color:#fff; box-shadow:0 0 0 4px rgba(151,181,69,.12); }
.eep-d-field.is-error{ border-color:#e0413e; box-shadow:0 0 0 4px rgba(224,65,62,.1); }
textarea.eep-d-field{ resize:vertical; min-height:110px; border-radius:22px !important; }
select.eep-d-field{
    appearance:none; -webkit-appearance:none; -moz-appearance:none;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath fill='none' stroke='%2397b545' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M5 7l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat:no-repeat; background-position:right 20px center; background-size:18px; padding-right:48px; cursor:pointer;
}

.eep-d-hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

.eep-d-rgpd{ display:flex; align-items:flex-start; gap:10px; font-size:.82rem; color:#5a6b7a; line-height:1.5; cursor:pointer; margin-top:6px; }
.eep-d-rgpd input{ margin-top:3px; accent-color:var(--eep-primary); flex:0 0 auto; width:16px; height:16px; }
.eep-d-rgpd-link{ color:var(--eep-primary); font-weight:700; text-decoration:underline; text-underline-offset:2px; }
.eep-d-rgpd-link:hover{ color:var(--eep-dark); }

/* Message d'erreur inline */
.eep-d-err{ display:block; color:#e0413e; font-size:.8rem; font-weight:600; margin-top:6px; animation:eepDErr .25s ease; }
.eep-d-services-err{ grid-column:1 / -1; margin-top:4px; }
@keyframes eepDErr{ from{ opacity:0; transform:translateY(-4px); } to{ opacity:1; transform:none; } }

/* Navigation */
.eep-d-nav{ display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:28px; }
.eep-d-prev, .eep-d-next, .eep-d-submit{
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    border:none; border-radius:30px !important; padding:14px 26px;
    font-size:.97rem; font-weight:800; cursor:pointer; font-family:inherit;
    transition:transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.eep-d-prev{ background:transparent; color:#8595a3; border:1.5px solid #e2e9ef !important; }
.eep-d-prev:hover{ border-color:var(--eep-primary) !important; color:var(--eep-primary); }
.eep-d-next{ background:var(--eep-primary); color:#fff; box-shadow:0 8px 22px rgba(151,181,69,.3); }
.eep-d-next:hover{ transform:translateY(-2px); box-shadow:0 12px 28px rgba(151,181,69,.4); }
.eep-d-submit{ position:relative; background:var(--eep-accent); color:var(--eep-dark); box-shadow:0 8px 22px rgba(249,191,33,.32); }
.eep-d-submit:hover{ transform:translateY(-2px); box-shadow:0 12px 28px rgba(249,191,33,.42); }
.eep-d-submit:disabled{ opacity:.7; cursor:not-allowed; transform:none; }
.eep-d-prev svg, .eep-d-next svg, .eep-d-submit svg{ flex:0 0 auto; }
.eep-d-spinner{ width:18px; height:18px; border-radius:50%; border:2.5px solid rgba(15,55,20,.25); border-top-color:var(--eep-dark); display:none; animation:eepDSpin .7s linear infinite; }
.eep-d-submit.is-loading .eep-d-spinner{ display:inline-block; }
.eep-d-submit.is-loading .eep-d-submit-text{ opacity:.6; }
@keyframes eepDSpin{ to{ transform:rotate(360deg); } }

/* POPUP */
.eep-d-popup{ position:fixed; inset:0; z-index:99999; display:none; align-items:center; justify-content:center; padding:20px; }
.eep-d-popup.is-open{ display:flex; }
.eep-d-popup-overlay{ position:absolute; inset:0; background:rgba(15,55,20,.6); backdrop-filter:blur(5px); animation:eepDPopFade .3s ease; }
.eep-d-popup-box{ position:relative; z-index:1; background:#fff; border-radius:26px; max-width:460px; width:100%; text-align:center; box-shadow:0 30px 90px rgba(15,55,20,.45); animation:eepDPop .5s cubic-bezier(.2,.85,.3,1); overflow:hidden; }
.eep-d-popup-head{ position:relative; background:linear-gradient(150deg,#0b280f 0%,#1d5823 100%); padding:40px 30px 54px; }
.eep-d-popup.is-error .eep-d-popup-head{ background:linear-gradient(150deg,#7a1f1d 0%,#e0413e 100%); }
.eep-d-popup-icon{ position:relative; z-index:1; width:92px; height:92px; margin:0 auto; }
.eep-d-popup-icon svg{ width:100%; height:100%; background:#fff; border-radius:50%; padding:6px; box-sizing:border-box; }
.eep-d-popup-icon circle{ stroke:#97b545; stroke-width:2.5; stroke-dasharray:151; stroke-dashoffset:151; animation:eepDCircle .6s .2s cubic-bezier(.65,0,.45,1) forwards; }
.eep-d-popup-icon path{ stroke:#97b545; stroke-width:4; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:48; stroke-dashoffset:48; animation:eepDCheck .4s .75s cubic-bezier(.65,0,.45,1) forwards; }
.eep-d-popup.is-error .eep-d-popup-icon circle{ stroke:#e0413e; }
.eep-d-popup.is-error .eep-d-popup-icon path{ stroke:#e0413e; }
.eep-d-popup-body{ padding:30px 34px 34px; margin-top:-24px; position:relative; z-index:1; }
.eep-d-popup-title{ margin:0 0 10px; font-size:1.5rem; font-weight:800; color:var(--eep-dark); }
.eep-d-popup-text{ margin:0 0 24px; color:#5a6b7a; font-size:.97rem; line-height:1.6; }
.eep-d-popup-steps{ display:flex; flex-direction:column; gap:12px; text-align:left; margin:0 0 24px; }
.eep-d-popup-step{ display:flex; align-items:center; gap:12px; background:#eef1e8; border-radius:14px; padding:13px 16px; }
.eep-d-popup-step-ic{ flex:0 0 auto; width:36px; height:36px; border-radius:10px; background:rgba(151,181,69,.1); color:var(--eep-primary); display:flex; align-items:center; justify-content:center; }
.eep-d-popup-step-tx{ font-size:.9rem; color:var(--eep-dark); font-weight:600; line-height:1.4; }
.eep-d-popup-urgent{ margin:0 0 12px; font-size:.85rem; color:#8595a3; font-weight:600; }
.eep-d-popup-phones{ display:flex; gap:10px; margin:0 0 24px; }
.eep-d-popup-phone{ flex:1; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:13px 12px; border-radius:30px; text-decoration:none; font-size:.95rem; font-weight:700; transition:transform .2s ease, box-shadow .2s ease; }
.eep-d-popup-phone svg{ flex:0 0 auto; }
.eep-d-popup-phone.is-primary{ background:var(--eep-primary); color:#fff; box-shadow:0 6px 18px rgba(151,181,69,.3); }
.eep-d-popup-phone.is-accent{ background:var(--eep-accent); color:var(--eep-dark); box-shadow:0 6px 18px rgba(249,191,33,.3); }
.eep-d-popup-phone:hover{ transform:translateY(-2px); }
.eep-d-popup-btn{ background:none; color:#8595a3; border:1.5px solid #e2e9ef; border-radius:30px; padding:13px 40px; font-size:.95rem; font-weight:700; cursor:pointer; font-family:inherit; transition:border-color .2s ease, color .2s ease; }
.eep-d-popup-btn:hover{ border-color:var(--eep-primary); color:var(--eep-primary); }
@keyframes eepDPopFade{ from{ opacity:0; } to{ opacity:1; } }
@keyframes eepDPop{ from{ opacity:0; transform:translateY(28px) scale(.92); } to{ opacity:1; transform:none; } }
@keyframes eepDCircle{ to{ stroke-dashoffset:0; } }
@keyframes eepDCheck{ to{ stroke-dashoffset:0; } }

/* RESPONSIVE */
@media (max-width:768px){
    .eep-d-card{ padding:24px 20px; border-radius:18px; }
    .eep-d{ --eep-svc-cols:2; }
    .eep-d-services{ gap:12px; }
    .eep-d-row{ grid-template-columns:1fr; }
    .eep-d-title{ font-size:1.3rem; }
    .eep-d-step-title{ font-size:1.1rem; }
    .eep-d-progress-steps span{ font-size:.72rem; }
    .eep-d-nav{ flex-wrap:wrap; }
    .eep-d-prev, .eep-d-next, .eep-d-submit{ flex:1; padding:14px 18px; }
    .eep-d-popup-head{ padding:34px 24px 48px; }
    .eep-d-popup-body{ padding:26px 22px 28px; }
    .eep-d-popup-phones{ flex-direction:column; }
}
@media (max-width:430px){
    .eep-d{ --eep-svc-cols:2; }
    .eep-d-svc{ padding:18px 10px; }
    .eep-d-svc-icon{ font-size:26px; }
    .eep-d-svc-label{ font-size:.82rem; }
}
@media (prefers-reduced-motion:reduce){
    .eep-d-step, .eep-d-popup-overlay, .eep-d-popup-box,
    .eep-d-popup-icon circle, .eep-d-popup-icon path{ animation:none !important; }
    .eep-d-popup-icon circle{ stroke-dashoffset:0; }
    .eep-d-popup-icon path{ stroke-dashoffset:0; }
    .eep-d-spinner{ animation-duration:1.4s; }
}
