/* WBTP – Contact · Design Card Moderne avec Sidebar */
:root { --ct-rouge:#bc1818; --ct-noir:#34393d; }

/* ── Wrap global ── */
.wbtp-ct-wrap {
    font-family: inherit;
    max-width: 860px;
    margin: 0 auto;
}
.wbtp-ct-has-sidebar {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(0,0,0,.1);
}
@media(max-width:768px){
    .wbtp-ct-has-sidebar {
        grid-template-columns: 1fr;
    }
}

/* ════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════ */
.wbtp-ct-sidebar {
    background: linear-gradient(165deg, var(--ct-noir) 0%, #1a1f22 100%);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    overflow: hidden;
}
/* Motif décoratif en fond */
.wbtp-ct-sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(188,24,24,.2) 0%, transparent 50%),
                      radial-gradient(circle at 20% 80%, rgba(188,24,24,.12) 0%, transparent 50%);
    pointer-events: none;
}
.wbtp-ct-sidebar-icon {
    width: 52px; height: 52px;
    background: var(--ct-rouge);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(188,24,24,.4);
    position: relative;
}
.wbtp-ct-sidebar-titre {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.2;
    position: relative;
}
.wbtp-ct-sidebar-desc {
    font-size: 13px;
    color: rgba(255,255,255,.6);
    line-height: 1.6;
    margin: 0 0 28px;
    position: relative;
}

/* Infos de contact */
.wbtp-ct-infos {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    flex: 1;
}
.wbtp-ct-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.wbtp-ct-info-icon {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.08);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    color: var(--ct-rouge);
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.06);
}
.wbtp-ct-info-item div,
.wbtp-ct-info-item span,
.wbtp-ct-info-item a {
    font-size: 13px;
    color: rgba(255,255,255,.8);
    line-height: 1.5;
    text-decoration: none;
    transition: color .2s;
}
.wbtp-ct-info-item div { display: flex; flex-direction: column; gap: 2px; }
.wbtp-ct-info-item a:hover { color: #fff; }

/* Déco bas sidebar */
.wbtp-ct-sidebar-deco {
    margin-top: 28px;
    display: flex;
    gap: 6px;
    position: relative;
}
.wbtp-ct-sidebar-deco::before,
.wbtp-ct-sidebar-deco::after,
.wbtp-ct-sidebar-deco span {
    content: '';
    display: block;
    height: 3px;
    border-radius: 2px;
    background: var(--ct-rouge);
}
.wbtp-ct-sidebar-deco::before { width: 32px; }
.wbtp-ct-sidebar-deco::after  { width: 12px; opacity: .5; }

@media(max-width:768px){
    .wbtp-ct-sidebar { padding: 28px 24px; }
    .wbtp-ct-infos { gap: 14px; }
}

/* ════════════════════════════════════
   COLONNE FORMULAIRE
   ════════════════════════════════════ */
.wbtp-ct-form-col {
    background: #fff;
    padding: 36px 32px;
}
@media(max-width:480px){ .wbtp-ct-form-col { padding: 24px 18px; } }

.wbtp-ct-no-sidebar-header {
    margin-bottom: 24px;
}
.wbtp-ct-no-sidebar-header h3 {
    font-size: 22px; font-weight: 800;
    color: var(--ct-noir); margin: 0 0 6px;
}
.wbtp-ct-no-sidebar-header p {
    font-size: 14px; color: #888; margin: 0;
}

/* ── Grille 2 colonnes ── */
.wbtp-ct-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media(max-width:480px){ .wbtp-ct-grid-2 { grid-template-columns: 1fr; } }

/* ── Champ ── */
.wbtp-ct-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.wbtp-ct-field:last-of-type { margin-bottom: 0; }
.wbtp-ct-field label {
    font-size: 12px;
    font-weight: 700;
    color: #555;
    letter-spacing: .3px;
    text-transform: uppercase;
}
.wbtp-ct-field label span { color: var(--ct-rouge); }

/* Input avec icône */
.wbtp-ct-input-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}
.wbtp-ct-input-wrap > i {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 13px;
    pointer-events: none;
    transition: color .25s;
    z-index: 1;
}
.wbtp-ct-input-wrap:focus-within > i { color: var(--ct-rouge); }
.wbtp-ct-input-wrap input,
.wbtp-ct-input-wrap textarea {
    width: 100%;
    padding: 11px 14px 11px 40px;
    font-size: 14px;
    border: 1.5px solid #eee;
    border-radius: 10px;
    background: #fafafa;
    color: var(--ct-noir);
    font-family: inherit;
    transition: border-color .25s, box-shadow .25s, background .25s;
    outline: none;
    box-sizing: border-box;
}
.wbtp-ct-input-wrap textarea {
    resize: vertical;
    min-height: 110px;
    padding-top: 12px;
    line-height: 1.5;
}
.wbtp-ct-input-wrap input:focus,
.wbtp-ct-input-wrap textarea:focus {
    border-color: var(--ct-rouge);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(188,24,24,.09);
}

/* ── RGPD ── */
.wbtp-ct-rgpd {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0;
    font-size: 12px;
    color: #888;
    line-height: 1.55;
}
.wbtp-ct-rgpd input[type="checkbox"] {
    width: 15px; height: 15px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--ct-rouge);
    cursor: pointer;
}
.wbtp-ct-rgpd label { cursor: pointer; }

/* ── Bouton submit ── */
.wbtp-ct-btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--ct-rouge);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform .25s, box-shadow .25s;
    box-shadow: 0 4px 16px rgba(188,24,24,.35);
}
.wbtp-ct-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(188,24,24,.45);
}
.wbtp-ct-btn-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }

/* ── Messages ── */
.wbtp-ct-msg {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}
.wbtp-ct-msg.error   { background: #fef2f2; color: #c53030; border: 1px solid #fed7d7; }
.wbtp-ct-msg.success { background: #f0fff4; color: #276749; border: 1px solid #c6f6d5; }

/* ════════════════════════════════════
   CONFIRMATION OVERLAY
   ════════════════════════════════════ */
.wbtp-ct-confirm {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: ct-fade .3s ease;
}
@keyframes ct-fade { from{opacity:0} to{opacity:1} }
.wbtp-ct-confirm-box {
    background: #fff;
    border-radius: 20px;
    padding: 40px 32px 32px;
    max-width: 420px; width: 100%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,.2);
    position: relative; overflow: hidden;
    animation: ct-slide-up .4s cubic-bezier(.4,0,.2,1);
}
@keyframes ct-slide-up { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:none} }
.wbtp-ct-confirm-box::before {
    content:''; position:absolute; top:0; left:0; right:0; height:4px;
    background: linear-gradient(90deg, var(--ct-rouge), #ff5252);
}
.wbtp-ct-confirm-logo { max-height:60px; max-width:180px; object-fit:contain; margin-bottom:16px; }
.wbtp-ct-confirm-icon {
    width:64px; height:64px;
    background: linear-gradient(135deg, var(--ct-rouge), #8b1010);
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    margin:0 auto 20px;
    font-size:28px; color:#fff;
    box-shadow: 0 8px 20px rgba(188,24,24,.35);
    animation: ct-pop .5s .2s cubic-bezier(.4,0,.2,1) both;
}
@keyframes ct-pop { from{transform:scale(0)} to{transform:scale(1)} }
.wbtp-ct-confirm-box h3 { font-size:20px; font-weight:800; color:var(--ct-noir); margin:0 0 12px; }
.wbtp-ct-confirm-box p  { font-size:14px; color:#666; line-height:1.65; margin:0 0 6px; }
.wbtp-ct-confirm-box button {
    margin-top:20px;
    background:var(--ct-rouge); color:#fff; border:none;
    border-radius:10px; padding:12px 28px;
    font-size:14px; font-weight:700;
    cursor:pointer; font-family:inherit;
    display:inline-flex; align-items:center; gap:8px;
    transition: transform .2s, box-shadow .2s;
}
.wbtp-ct-confirm-box button:hover { transform:translateY(-2px); box-shadow:0 6px 16px rgba(188,24,24,.35); }

/* ── FIX icônes : padding-left suffisant + positionnement correct ── */
.wbtp-ct-input-wrap {
    position: relative !important;
}
.wbtp-ct-input-wrap > i {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #ccc !important;
    font-size: 13px !important;
    pointer-events: none !important;
    z-index: 2 !important;
    width: 16px !important;
    text-align: center !important;
}
.wbtp-ct-input-wrap textarea ~ i,
.wbtp-ct-input-wrap > i.icon-textarea {
    top: 14px !important;
    transform: none !important;
}
.wbtp-ct-input-wrap input,
.wbtp-ct-input-wrap textarea {
    padding: 12px 14px 12px 44px !important;
    font-size: 14px !important;
    border: 1.5px solid #eee !important;
    border-radius: 10px !important;
    background: #fafafa !important;
    color: #34393d !important;
    font-family: inherit !important;
    transition: border-color .25s, box-shadow .25s, background .25s !important;
    outline: none !important;
    box-sizing: border-box !important;
    width: 100% !important;
}
.wbtp-ct-input-wrap textarea {
    padding-top: 13px !important;
    resize: vertical !important;
    min-height: 110px !important;
}
.wbtp-ct-input-wrap input:focus,
.wbtp-ct-input-wrap textarea:focus {
    border-color: #bc1818 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(188,24,24,.09) !important;
}
