/* EEP · Contact — Version: 1.0.0
   Palette Landscop : vert anis #97b545 · vert foncé #0f3714 · doré #f4be29 */
/* =========================================================
   EEP · Contact — Francis L. Paysagiste  [CSS v1.3.8]
   Palette : jaune #97b545 · bleu 7bb9e7→0078be · vert #1d5823 · dark #0f3714
   ========================================================= */
.eep-c{
    --eep-accent:#97b545;
    --eep-primary:#1d5823;
    --eep-dark:#0f3714;
    --eep-light:#eef1e8;
    font-family:inherit;
    position:relative;
}

/* ---------- GRID & DISPOSITIONS ---------- */
.eep-c-grid{ display:grid; gap:28px; }
.eep-c.layout-form-aside .eep-c-grid{ grid-template-columns:1.4fr 1fr; grid-auto-rows:min-content; }
.eep-c.layout-form-aside .eep-c-col-form{ grid-row:1 / span 2; }
.eep-c.layout-two-col .eep-c-grid{ grid-template-columns:1fr 1fr; }
.eep-c.layout-stacked .eep-c-grid{ grid-template-columns:1fr; }
.eep-c-col{ min-width:0; display:flex; }
.eep-c-col > *{ width:100%; }

/* ---------- CARTES ---------- */
.eep-c-card{
    background:#fff;
    border-radius:18px;
    padding:30px;
    box-shadow:0 10px 40px rgba(0,42,76,.08);
}
.eep-c-block-title{ margin:0 0 6px; font-size:1.35rem; font-weight:800; color:var(--eep-dark); line-height:1.2; }
.eep-c-block-sub{ margin:0 0 22px; color:#5b6b5d; font-size:.97rem; line-height:1.55; }

/* ---------- FORMULAIRE ---------- */
.eep-c-formel{ display:flex; flex-direction:column; gap:16px; }
.eep-c-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.eep-c-group{ display:flex; flex-direction:column; gap:6px; }
.eep-c-group label{ font-size:.82rem; font-weight:700; color:var(--eep-dark); letter-spacing:.2px; }
.eep-c-field{
    width:100%; box-sizing:border-box;
    background-color:var(--eep-light);
    border:1.5px solid #dbe3d2;
    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-c-field:focus{
    outline:none;
    border-color:var(--eep-primary);
    background-color:#fff;
    box-shadow:0 0 0 4px rgba(0,120,190,.12);
}
.eep-c-field.is-error{ border-color:#e0413e; box-shadow:0 0 0 4px rgba(224,65,62,.1); }
textarea.eep-c-field{ resize:vertical; min-height:120px; border-radius:22px !important; }
select.eep-c-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='%230078be' 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-c-hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

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

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

.eep-c-submit{
    position:relative;
    display:flex; width:100%; align-items:center; justify-content:center; gap:10px;
    background:var(--eep-accent);
    color:var(--eep-dark);
    border:none; border-radius:30px !important;
    padding:17px 28px;
    font-size:1rem; font-weight:800;
    cursor:pointer;
    font-family:inherit;
    transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
    box-shadow:0 8px 22px rgba(244,190,41,.32);
}
.eep-c-submit:hover{ transform:translateY(-2px); box-shadow:0 12px 28px rgba(244,190,41,.42); }
.eep-c-submit:disabled{ opacity:.7; cursor:not-allowed; transform:none; }
.eep-c-spinner{
    width:18px; height:18px; border-radius:50%;
    border:2.5px solid rgba(0,42,76,.25); border-top-color:var(--eep-dark);
    display:none; animation:eepCSpin .7s linear infinite;
}
.eep-c-submit.is-loading .eep-c-spinner{ display:inline-block; }
.eep-c-submit.is-loading .eep-c-submit-text{ opacity:.6; }
@keyframes eepCSpin{ to{ transform:rotate(360deg); } }

/* ---------- COORDONNÉES ---------- */
.eep-c-coords{ --eep-coords-g1:#0f3714; --eep-coords-g2:#1d5823; background:linear-gradient(150deg, var(--eep-coords-g1) 0%, var(--eep-coords-g2) 100%); color:#fff; height:100%; }
.eep-c-coords .eep-c-block-title{ color:#fff; }
.eep-c-coord-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:18px; }
.eep-c-coord{ display:flex; align-items:flex-start; gap:14px; min-width:0; }
.eep-c-coord-icon{
    flex:0 0 auto; width:46px; height:46px; border-radius:12px;
    background:rgba(244,190,41,.18); color:var(--eep-accent);
    display:flex; align-items:center; justify-content:center; font-size:18px;
}
.eep-c-coord-icon svg{ width:1em; height:1em; fill:currentColor; }
.eep-c-coord-body{ display:flex; flex-direction:column; gap:2px; padding-top:2px; min-width:0; }
.eep-c-coord-label{ font-size:.78rem; text-transform:uppercase; letter-spacing:.6px; color:#a8bda4; font-weight:700; }
.eep-c-coord-val{ color:#fff; font-size:1rem; font-weight:600; text-decoration:none; line-height:1.4; overflow-wrap:anywhere; word-break:break-word; }
a.eep-c-coord-val:hover{ color:var(--eep-accent); }

.eep-c-socials{ display:flex; gap:10px; margin-top:24px; }
.eep-c-social{
    width:42px; height:42px; border-radius:10px;
    background:rgba(255,255,255,.1); color:#fff;
    display:flex; align-items:center; justify-content:center; font-size:16px;
    transition:background .2s ease, transform .2s ease;
}
.eep-c-social:hover{ background:var(--eep-accent); color:var(--eep-dark); transform:translateY(-2px); }
.eep-c-social svg{ width:1em; height:1em; fill:currentColor; }

/* ---------- MAP ---------- */
.eep-c-map{ overflow:hidden; border-radius:18px; box-shadow:0 0 0 1px rgba(244,190,41,.25), 0 6px 22px rgba(244,190,41,.25); line-height:0; }
.eep-c-map iframe{ width:100%; display:block; border:0; }

/* ---------- POPUP ---------- */
.eep-c-popup{ position:fixed; inset:0; z-index:99999; display:none; align-items:center; justify-content:center; padding:20px; }
.eep-c-popup.is-open{ display:flex; }
.eep-c-popup-overlay{ position:absolute; inset:0; background:rgba(0,42,76,.6); backdrop-filter:blur(5px); animation:eepCFade .3s ease; }
.eep-c-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(0,42,76,.45);
    animation:eepCPop .5s cubic-bezier(.2,.85,.3,1);
    overflow:hidden;
}

/* En-tête dégradé */
.eep-c-popup-head{
    position:relative;
    background:linear-gradient(150deg, #0f3714 0%, #1d5823 100%);
    padding:40px 30px 54px;
    overflow:hidden;
}
.eep-c-popup.is-error .eep-c-popup-head{ background:linear-gradient(150deg, #7a1f1d 0%, #e0413e 100%); }
.eep-c-popup-icon{ position:relative; z-index:1; width:92px; height:92px; margin:0 auto; }
.eep-c-popup-icon svg{ position:relative; width:100%; height:100%; background:#fff; border-radius:50%; padding:6px; box-sizing:border-box; }
.eep-c-popup-icon-success circle{ stroke:#1d5823; stroke-width:2.5; stroke-dasharray:151; stroke-dashoffset:151; animation:eepCCircle .6s .2s cubic-bezier(.65,0,.45,1) forwards; }
.eep-c-popup-icon-success path{ stroke:#1d5823; stroke-width:4; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:48; stroke-dashoffset:48; animation:eepCCheck .4s .75s cubic-bezier(.65,0,.45,1) forwards; }
.eep-c-popup.is-error .eep-c-popup-icon-success circle{ stroke:#e0413e; }
.eep-c-popup.is-error .eep-c-popup-icon-success path{ stroke:#e0413e; }

/* Corps */
.eep-c-popup-body{ padding:30px 34px 34px; margin-top:-24px; position:relative; z-index:1; }
.eep-c-popup-title{ margin:0 0 10px; font-size:1.5rem; font-weight:800; color:var(--eep-dark); line-height:1.25; }
.eep-c-popup-text{ margin:0 0 24px; color:#5b6b5d; font-size:.97rem; line-height:1.6; }

/* Étapes */
.eep-c-popup-steps{ display:flex; flex-direction:column; gap:12px; text-align:left; margin:0 0 24px; }
.eep-c-popup-step{ display:flex; align-items:center; gap:12px; background:#eef1e8; border-radius:14px; padding:13px 16px; }
.eep-c-popup-step-ic{
    flex:0 0 auto; width:36px; height:36px; border-radius:10px;
    background:rgba(0,120,190,.1); color:var(--eep-primary);
    display:flex; align-items:center; justify-content:center;
}
.eep-c-popup-step-tx{ font-size:.9rem; color:var(--eep-dark); font-weight:600; line-height:1.4; }

/* Urgence / appels */
.eep-c-popup-urgent{ margin:0 0 12px; font-size:.85rem; color:#93a58f; font-weight:600; }
.eep-c-popup-phones{ display:flex; gap:10px; margin:0 0 24px; }
.eep-c-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-c-popup-phone svg{ flex:0 0 auto; }
.eep-c-popup-phone.is-primary{ background:var(--eep-primary); color:#fff; box-shadow:0 6px 18px rgba(0,120,190,.3); }
.eep-c-popup-phone.is-accent{ background:var(--eep-accent); color:var(--eep-dark); box-shadow:0 6px 18px rgba(244,190,41,.3); }
.eep-c-popup-phone:hover{ transform:translateY(-2px); }

.eep-c-popup-btn{
    background:none !important; color:#93a58f !important;
    border:1.5px solid #dbe3d2 !important; border-radius:30px !important; padding:13px 40px;
    font-size:.95rem; font-weight:700; cursor:pointer; font-family:inherit;
    transition:border-color .2s ease, color .2s ease; box-shadow:none !important;
}
.eep-c-popup-btn:hover{ border-color:var(--eep-primary) !important; color:var(--eep-primary) !important; background:none !important; }

@keyframes eepCFade{ from{ opacity:0; } to{ opacity:1; } }
@keyframes eepCPop{ from{ opacity:0; transform:translateY(28px) scale(.92); } to{ opacity:1; transform:none; } }
@keyframes eepCCircle{ to{ stroke-dashoffset:0; } }
@keyframes eepCCheck{ to{ stroke-dashoffset:0; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:1024px){
    .eep-c.layout-form-aside .eep-c-grid,
    .eep-c.layout-two-col .eep-c-grid{ grid-template-columns:1fr; }
    .eep-c.layout-form-aside .eep-c-col-form{ grid-row:auto; }
}

@media (max-width:767px){
    .eep-c-grid{ display:flex; flex-direction:column; gap:20px; }
    .eep-c-col{ order:var(--m-order,1); }
    .eep-c-card{ padding:24px 20px; }
    .eep-c-row{ grid-template-columns:1fr; }
    .eep-c-block-title{ font-size:1.2rem; }
    .eep-c-popup-head{ padding:34px 24px 48px; }
    .eep-c-popup-body{ padding:26px 22px 28px; }
    .eep-c-popup-phones{ flex-direction:column; }
    .eep-c-popup-title{ font-size:1.3rem; }
}

@media (prefers-reduced-motion:reduce){
    .eep-c-popup-overlay, .eep-c-popup-box,
    .eep-c-popup-icon-success circle, .eep-c-popup-icon-success path{ animation:none !important; }
    .eep-c-popup-icon-success circle{ stroke-dashoffset:0; }
    .eep-c-popup-icon-success path{ stroke-dashoffset:0; }
    .eep-c-spinner{ animation-duration:1.4s; }
}
