/*
Theme Name: WebLand
Theme URI: https://www.webcod.me/
Author: Alexandre Lemelle
Description: Thème WordPress ultra léger pour landing pages WPBakery avec moteur local Google Fonts par page avec interface branding simplifiée, duplication, noindex et modèles réutilisables.
Version: 1.102
Text Domain: webland
*/

html, body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    font-family: 'Lato', sans-serif;
}

body {
    color: #111111;
    line-height: 1.5;
}

* {
    box-sizing: border-box;
}

main.webland-page {
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
}

/* Largeur desktop propre sans casser les colonnes WPBakery */
main.webland-page > .wpb-content-wrapper,
main.webland-page > .entry-content,
main.webland-page > .vc_section > .vc_row,
main.webland-page > .vc_row {
    width: 100%;
}

main.webland-page > .wpb-content-wrapper > .vc_row:not([data-vc-full-width="true"]):not(.vc_row-no-padding):not(.vc_row-full-width):not(.vc_row-stretch),
main.webland-page > .vc_row:not([data-vc-full-width="true"]):not(.vc_row-no-padding):not(.vc_row-full-width):not(.vc_row-stretch),
main.webland-page > .vc_section > .vc_row:not([data-vc-full-width="true"]):not(.vc_row-no-padding):not(.vc_row-full-width):not(.vc_row-stretch) {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

main.webland-page > .wpb-content-wrapper > .vc_row[data-vc-full-width="true"],
main.webland-page > .wpb-content-wrapper > .vc_row.vc_row-full-width,
main.webland-page > .wpb-content-wrapper > .vc_row.vc_row-stretch,
main.webland-page > .vc_row[data-vc-full-width="true"],
main.webland-page > .vc_row.vc_row-full-width,
main.webland-page > .vc_row.vc_row-stretch,
main.webland-page > .vc_section[data-vc-full-width="true"],
main.webland-page > .vc_section .vc_row[data-vc-full-width="true"] {
    max-width: none !important;
    margin-left: 0;
    margin-right: 0;
}

.webland-container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 991px) {
    main.webland-page > .wpb-content-wrapper > .vc_row,
    main.webland-page > .vc_row,
    main.webland-page > .vc_section > .vc_row,
    .webland-container {
        max-width: 100% !important;
    }
}

/* Contact Form 7 landing */
#webland-cf7-landing { width: 100%; }
#webland-cf7-landing .webland-cf7-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
#webland-cf7-landing .webland-cf7-field p,
#webland-cf7-landing .webland-cf7-consent p,
#webland-cf7-landing .webland-cf7-submit-wrap p { margin: 0; }
#webland-cf7-landing input[type="text"],
#webland-cf7-landing input[type="email"],
#webland-cf7-landing input[type="tel"] {
    width: 100%; height: 46px; padding: 0 14px; border: 1px solid #d8d8d8; border-radius: 6px;
    background: #ffffff; color: #111111; font-size: 15px; box-shadow: none; outline: none;
}
#webland-cf7-landing input[type="text"]:focus,
#webland-cf7-landing input[type="email"]:focus,
#webland-cf7-landing input[type="tel"]:focus { border-color: #111111; }
#webland-cf7-landing .webland-cf7-consent { margin: 4px 0 14px; font-size: 14px; line-height: 1.4; }
#webland-cf7-landing .wpcf7-list-item { margin: 0; }
#webland-cf7-landing .wpcf7-list-item label { display: flex; align-items: flex-start; gap: 10px; margin: 0; }
#webland-cf7-landing .wpcf7-list-item input[type="checkbox"] { margin: 3px 0 0; flex: 0 0 auto; }
#webland-cf7-landing .webland-cf7-consent a { color: #111111; text-decoration: underline; }
#webland-cf7-landing .webland-cf7-submit-wrap { width: 100%; }
#webland-cf7-landing .webland-cf7-submit {
    width: 100%; height: 48px; border: 0; border-radius: 6px; background: #111111; color: #ffffff;
    font-size: 15px; font-weight: 700; cursor: pointer; transition: opacity 0.2s ease;
}
#webland-cf7-landing .webland-cf7-submit:hover { opacity: 0.9; }
#webland-cf7-landing .wpcf7-spinner { margin: 10px 0 0; }
#webland-cf7-landing .wpcf7-not-valid-tip { font-size: 12px; margin-top: 6px; }
#webland-cf7-landing .wpcf7 form .wpcf7-response-output { margin: 12px 0 0; padding: 10px 12px; font-size: 14px; }

@media (max-width: 767px) {
    #webland-cf7-landing .webland-cf7-grid { grid-template-columns: 1fr; gap: 10px; }
    #webland-cf7-landing input[type="text"],
    #webland-cf7-landing input[type="email"],
    #webland-cf7-landing input[type="tel"] { height: 44px; font-size: 14px; }
    #webland-cf7-landing .webland-cf7-submit { height: 46px; font-size: 14px; }
}

/* Admin */
.webland-admin-card { background: #ffffff; border: 1px solid #dcdcde; border-radius: 8px; padding: 18px; margin-bottom: 18px; }
.webland-admin-card h3 { margin-top: 0; margin-bottom: 12px; }
.webland-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.webland-admin-grid-full { grid-column: 1 / -1; }
.webland-admin-help { background: #f6f7f7; border-left: 4px solid #2271b1; padding: 12px 14px; margin-top: 10px; }
.webland-template-list { margin: 0; padding-left: 18px; }
.webland-template-list li { margin-bottom: 6px; }
.webland-branding-table { width: 100%; border-collapse: collapse; }
.webland-branding-table td { padding: 6px 8px 6px 0; vertical-align: top; }
.webland-branding-table input[type="text"],
.webland-branding-table input[type="number"],
.webland-branding-table input[type="color"] { width: 100%; max-width: 100%; }

.webland-font-picker { position: relative; width: 100%; }
.webland-font-search { width: 100%; }
.webland-font-hidden { display: none; }
.webland-font-results {
    position: absolute; left: 0; right: 0; top: calc(100% + 2px); z-index: 9999; background: #fff;
    border: 1px solid #dcdcde; max-height: 220px; overflow: auto; border-radius: 6px;
    box-shadow: 0 8px 18px rgba(0,0,0,.08); display: none;
}
.webland-font-results.is-open { display: block; }
.webland-font-option { padding: 8px 10px; cursor: pointer; border-bottom: 1px solid #f0f0f1; }
.webland-font-option:last-child { border-bottom: 0; }
.webland-font-option:hover { background: #f6f7f7; }
.webland-font-preview { margin-top: 6px; font-size: 12px; color: #666; }

@media (max-width: 900px) {
    .webland-admin-grid { grid-template-columns: 1fr; }
}


/* Interface branding V9.1 */
.webland-branding-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.webland-branding-section {
    background: #fafafa;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    padding: 14px;
}

.webland-branding-section h4 {
    margin: 0 0 12px;
    font-size: 15px;
    color: #111111;
}

.webland-branding-row {
    display: flex;
    gap: 14px;
    align-items: end;
}

.webland-branding-grow {
    flex: 1 1 auto;
}

.webland-branding-small {
    flex: 0 0 150px;
}

.webland-branding-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.webland-branding-three-cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

.webland-branding-section label {
    display: block;
    margin-bottom: 6px;
}

@media (max-width: 900px) {
    .webland-branding-row,
    .webland-branding-two-cols,
    .webland-branding-three-cols {
        display: grid;
        grid-template-columns: 1fr;
    }

    .webland-branding-small {
        flex: 1 1 auto;
    }
}


/* Admin UI refresh V9.2 */
.webland-admin-grid {
    gap: 22px;
}

.webland-admin-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.webland-admin-card h3 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 18px;
    line-height: 1.3;
    color: #111827;
}

.webland-admin-card p {
    margin-top: 0;
}

.webland-admin-card strong {
    color: #111827;
}

.webland-admin-card textarea,
.webland-admin-card input[type="text"],
.webland-admin-card input[type="number"],
.webland-admin-card select {
    width: 100%;
    border: 1px solid #d0d7de;
    border-radius: 10px;
    background: #ffffff;
    min-height: 44px;
    padding: 10px 14px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.webland-admin-card textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.45;
}

.webland-admin-card textarea:focus,
.webland-admin-card input[type="text"]:focus,
.webland-admin-card input[type="number"]:focus,
.webland-admin-card select:focus,
.webland-font-search:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    outline: none;
}

.webland-admin-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
}

.webland-admin-help {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);
    border: 1px solid #dbeafe;
    border-left: 4px solid #2563eb;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 14px;
    color: #1f2937;
}

.webland-font-picker {
    position: relative;
}

.webland-font-search {
    border: 1px solid #d0d7de;
    border-radius: 10px;
    background: #ffffff;
    min-height: 44px;
    padding: 10px 14px;
}

.webland-font-results {
    top: calc(100% + 6px);
    border: 1px solid #dbe1e8;
    border-radius: 12px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.14);
}

.webland-font-option {
    padding: 10px 12px;
}

.webland-font-option:hover {
    background: #eff6ff;
}

.webland-font-preview {
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
    background: #f9fafb;
    border: 1px solid #eceff3;
    border-radius: 8px;
    padding: 8px 10px;
}

.webland-branding-section {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid #e8ebf0;
    border-radius: 14px;
    padding: 18px;
}

.webland-branding-section h4 {
    margin: 0 0 14px;
    font-size: 15px;
    color: #111827;
}

.webland-branding-small input[type="number"],
.webland-branding-three-cols input[type="number"] {
    text-align: center;
    font-weight: 600;
}

.webland-branding-section input[type="color"] {
    width: 100%;
    min-width: 100%;
    height: 46px;
    padding: 4px;
    border: 1px solid #d0d7de;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.webland-branding-section input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 8px;
}

.webland-branding-section input[type="color"]::-webkit-color-swatch {
    border: 0;
    border-radius: 8px;
}

.webland-branding-section input[type="color"]::-moz-color-swatch {
    border: 0;
    border-radius: 8px;
}

.webland-admin-card .button.button-secondary,
.webland-admin-card .button.button-primary {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    box-shadow: none;
}

.webland-admin-card .button.button-secondary {
    border-color: #c7ced6;
}

.webland-admin-card .button.button-primary {
    background: #2563eb;
    border-color: #2563eb;
}

.webland-admin-card .button.button-primary:hover,
.webland-admin-card .button.button-primary:focus {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.webland-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 10px;
}

.webland-admin-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(148,163,184,0) 0%, rgba(148,163,184,.45) 50%, rgba(148,163,184,0) 100%);
    margin: 12px 0 18px;
}
