/*
Theme Name: Standard Virtuel
Theme URI: https://standardvirtuel.fr/
Author: Standard Virtuel Team
Author URI: https://standardvirtuel.fr/
Description: Thème WordPress sur-mesure - Clone exact du design de standardvirtuel.fr avec panneau d'options de thème, blocs de catégorie administrables, gabarits single/category et typographie adaptative.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: standardvirtuel
*/

/* WordPress Core Alignment & Utility Classes */
.alignnone {
    margin: 5px 20px 20px 0;
}
.aligncenter, div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}
.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}
.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}
a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}
a img.alignnone {
    margin: 5px 20px 20px 0;
}
a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}
a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}
.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}
.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}
.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}
.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}
.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Adjust sticky header when WordPress Admin Bar is present */
.admin-bar header.sticky {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar header.sticky {
        top: 46px;
    }
}

/* ==========================================================================
   Form Styling (Native, Shortcodes, Elementor Pro Forms, CF7, WPForms)
   ========================================================================== */

.sv-form-wrapper,
.elementor-widget-form,
.wpcf7,
.wpforms-container {
    font-family: var(--font-sans);
}

/* Form field labels */
.elementor-widget-form .elementor-field-label,
.wpcf7 form p label,
.wpcf7-form label,
.wpforms-field-label,
.sv-form-wrapper label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 400;
}

/* Text inputs and textareas */
.elementor-widget-form .elementor-field-textual,
.elementor-widget-form input[type="text"],
.elementor-widget-form input[type="email"],
.elementor-widget-form input[type="url"],
.elementor-widget-form input[type="password"],
.elementor-widget-form input[type="search"],
.elementor-widget-form input[type="number"],
.elementor-widget-form input[type="tel"],
.elementor-widget-form textarea,
.elementor-widget-form select,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 textarea,
.wpcf7 select,
.wpforms-field input[type="text"],
.wpforms-field input[type="email"],
.wpforms-field textarea,
.sv-form-wrapper input[type="text"],
.sv-form-wrapper input[type="email"],
.sv-form-wrapper input[type="tel"],
.sv-form-wrapper input[type="number"],
.sv-form-wrapper textarea,
.sv-form-wrapper select {
    width: 100% !important;
    min-height: 3rem;
    border-radius: 0.125rem !important;
    border: 1px solid var(--input) !important;
    background-color: var(--card) !important;
    padding: 0.5rem 1rem !important;
    font-size: 1rem !important;
    line-height: 1.5;
    color: var(--ink) !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.elementor-widget-form textarea,
.wpcf7 textarea,
.wpforms-field textarea,
.sv-form-wrapper textarea {
    min-height: 8rem;
    padding: 0.75rem 1rem !important;
}

.elementor-widget-form .elementor-field-textual:focus,
.elementor-widget-form input:focus,
.elementor-widget-form textarea:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpforms-field input:focus,
.wpforms-field textarea:focus,
.sv-form-wrapper input:focus,
.sv-form-wrapper textarea:focus {
    border-color: var(--aqua) !important;
}

/* Submit buttons */
.elementor-widget-form .elementor-button,
.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"],
.wpforms-submit-container button,
.sv-form-wrapper input[type="submit"],
.sv-form-wrapper button[type="submit"] {
    display: inline-flex !important;
    min-height: 3rem !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0.125rem !important;
    background-color: var(--aqua) !important;
    padding: 0.5rem 1.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: var(--ink) !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

.elementor-widget-form .elementor-button:hover,
.wpcf7 input[type="submit"]:hover,
.wpcf7 button[type="submit"]:hover,
.wpforms-submit-container button:hover,
.sv-form-wrapper input[type="submit"]:hover,
.sv-form-wrapper button[type="submit"]:hover {
    background-color: var(--magenta) !important;
    color: var(--card) !important;
}

/* Form validation and alert messages */
.elementor-message-success,
.wpcf7-response-output.wpcf7-mail-sent-ok,
.wpforms-confirmation-container {
    border-radius: 0.125rem !important;
    border: 1px solid var(--vert) !important;
    background-color: rgba(62, 207, 142, 0.1) !important;
    color: var(--vert) !important;
    padding: 1rem !important;
    font-size: 0.875rem !important;
    margin-top: 1rem !important;
}

.elementor-message-danger,
.wpcf7-response-output.wpcf7-validation-errors,
.wpcf7-response-output.wpcf7-mail-sent-ng,
.wpforms-error-container {
    border-radius: 0.125rem !important;
    border: 1px solid var(--destructive) !important;
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: var(--destructive) !important;
    padding: 1rem !important;
    font-size: 0.875rem !important;
    margin-top: 1rem !important;
}

/* -------------------------------------------------------------
 * Optical Fiber Rails (Left-side background cables)
 * Ensures 100% full height across the entire page body/main
 * ------------------------------------------------------------- */
.optical-rail-container {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 100% !important;
    min-height: 100% !important;
    width: 100% !important;
    pointer-events: none !important;
    z-index: 0 !important;
    overflow: hidden !important;
}

svg.optical-rail {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 100% !important;
    min-height: 100% !important;
    width: 400px !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

@media (max-width: 767px) {
    svg.optical-rail {
        max-width: 24px !important;
    }
}


