/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');


.contract-wrapper {
    font-family: 'Open Sans', sans-serif !important;
}
.contract-inner .form-group {
    margin-bottom: 5px;
}
#formulaire {
    border:1px solid #EEE;
    padding:10px;
    font-size: 14px;
}
@media(min-width:767px) {
    padding:130px;
    box-shadow:1px 1px 5px rgba(0,0,0,0.25);
}
#formulaire p {
    font-size: 14px;
    line-height: 24px;
}
#formulaire .red-border {
    border:2px solid #cd1b28;
    border-radius:3px;
    padding:10px;
    margin-bottom: 10px;
}
#formulaire .red-border p:last-child {
    margin:0;
}
#formulaire .width-70 {
    width:70%;
    margin:0 auto;
    text-align: center;
}
@media(max-width: 420px) {

    #formulaire {
        padding:10px;
    }
    #formulaire .width-70 {
        width:100%;
    }

}
#formulaire h1,
#formulaire h2,
#formulaire h3,
#formulaire h4,
#formulaire h5,
#formulaire h6 {
    font-family: 'Open Sans', sans-serif !important;
}
#formulaire h1 {
    font-size:20px;
    color: #0a1377;
}
#formulaire h1 small {
    display:block;
    font-size:12px;
    line-height: 24px;
    font-style: italic;
}
#formulaire h3 {
    font-size:1.2em;
    color: #0a1377;
    margin-bottom: 30px;
    font-weight: bold;
}
#formulaire h4 {
    font-size:1.2em;
    margin:10px 0 30px 0;
    font-weight: bold;
}
#formulaire h5 {
    font-size:1em;
    margin:10px 0 30px 0;
    font-weight:bold;
}
#formulaire .blue {
    color: #0a1377;
}
#formulaire .to-remove select {
    --wp-admin--admin-bar--height: 32px;
    --wp--preset--font-size--normal: 16px;
    --wp--preset--font-size--huge: 42px;
    --bs-blue: #0d6efd;
    --bs-indigo: #6610f2;
    --bs-purple: #6f42c1;
    --bs-pink: #d63384;
    --bs-red: #dc3545;
    --bs-orange: #fd7e14;
    --bs-yellow: #ffc107;
    --bs-green: #198754;
    --bs-teal: #20c997;
    --bs-cyan: #0dcaf0;
    --bs-black: #000;
    --bs-white: #fff;
    --bs-gray: #6c757d;
    --bs-gray-dark: #343a40;
    --bs-gray-100: #f8f9fa;
    --bs-gray-200: #e9ecef;
    --bs-gray-300: #dee2e6;
    --bs-gray-400: #ced4da;
    --bs-gray-500: #adb5bd;
    --bs-gray-600: #6c757d;
    --bs-gray-700: #495057;
    --bs-gray-800: #343a40;
    --bs-gray-900: #212529;
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    --bs-primary-rgb: 13, 110, 253;
    --bs-secondary-rgb: 108, 117, 125;
    --bs-success-rgb: 25, 135, 84;
    --bs-info-rgb: 13, 202, 240;
    --bs-warning-rgb: 255, 193, 7;
    --bs-danger-rgb: 220, 53, 69;
    --bs-light-rgb: 248, 249, 250;
    --bs-dark-rgb: 33, 37, 41;
    --bs-white-rgb: 255, 255, 255;
    --bs-black-rgb: 0, 0, 0;
    --bs-body-color-rgb: 33, 37, 41;
    --bs-body-bg-rgb: 255, 255, 255;
    --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-font-size: 1rem;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.5;
    --bs-body-color: #212529;
    --bs-body-bg: #fff;
    --bs-border-width: 1px;
    --bs-border-style: solid;
    --bs-border-color: #dee2e6;
    --bs-border-color-translucent: rgba(0, 0, 0, 0.175);
    --bs-border-radius: 0.375rem;
    --bs-border-radius-sm: 0.25rem;
    --bs-border-radius-lg: 0.5rem;
    --bs-border-radius-xl: 1rem;
    --bs-border-radius-2xl: 2rem;
    --bs-border-radius-pill: 50rem;
    --bs-link-color: #0d6efd;
    --bs-link-hover-color: #0a58ca;
    --bs-code-color: #d63384;
    --bs-highlight-bg: #fff3cd;
    --fa-style-family-brands: "Font Awesome 6 Brands";
    --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
    --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
    --fa-style-family-classic: "Font Awesome 6 Free";
    --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
    --wp--preset--color--black: #000000;
    --wp--preset--color--cyan-bluish-gray: #abb8c3;
    --wp--preset--color--white: #ffffff;
    --wp--preset--color--pale-pink: #f78da7;
    --wp--preset--color--vivid-red: #cf2e2e;
    --wp--preset--color--luminous-vivid-orange: #ff6900;
    --wp--preset--color--luminous-vivid-amber: #fcb900;
    --wp--preset--color--light-green-cyan: #7bdcb5;
    --wp--preset--color--vivid-green-cyan: #00d084;
    --wp--preset--color--pale-cyan-blue: #8ed1fc;
    --wp--preset--color--vivid-cyan-blue: #0693e3;
    --wp--preset--color--vivid-purple: #9b51e0;
    --wp--preset--gradient--vivid-cyan-blue-to-vivid-purple: linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%);
    --wp--preset--gradient--light-green-cyan-to-vivid-green-cyan: linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%);
    --wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange: linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%);
    --wp--preset--gradient--luminous-vivid-orange-to-vivid-red: linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%);
    --wp--preset--gradient--very-light-gray-to-cyan-bluish-gray: linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%);
    --wp--preset--gradient--cool-to-warm-spectrum: linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%);
    --wp--preset--gradient--blush-light-purple: linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%);
    --wp--preset--gradient--blush-bordeaux: linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%);
    --wp--preset--gradient--luminous-dusk: linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%);
    --wp--preset--gradient--pale-ocean: linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%);
    --wp--preset--gradient--electric-grass: linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%);
    --wp--preset--gradient--midnight: linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%);
    --wp--preset--duotone--dark-grayscale: url('#wp-duotone-dark-grayscale');
    --wp--preset--duotone--grayscale: url('#wp-duotone-grayscale');
    --wp--preset--duotone--purple-yellow: url('#wp-duotone-purple-yellow');
    --wp--preset--duotone--blue-red: url('#wp-duotone-blue-red');
    --wp--preset--duotone--midnight: url('#wp-duotone-midnight');
    --wp--preset--duotone--magenta-yellow: url('#wp-duotone-magenta-yellow');
    --wp--preset--duotone--purple-green: url('#wp-duotone-purple-green');
    --wp--preset--duotone--blue-orange: url('#wp-duotone-blue-orange');
    --wp--preset--font-size--small: 13px;
    --wp--preset--font-size--medium: 20px;
    --wp--preset--font-size--large: 36px;
    --wp--preset--font-size--x-large: 42px;
    --wp--preset--spacing--20: 0.44rem;
    --wp--preset--spacing--30: 0.67rem;
    --wp--preset--spacing--40: 1rem;
    --wp--preset--spacing--50: 1.5rem;
    --wp--preset--spacing--60: 2.25rem;
    --wp--preset--spacing--70: 3.38rem;
    --wp--preset--spacing--80: 5.06rem;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    word-break: break-word;
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    box-sizing: border-box;
    margin: 0;
    font-family: inherit;
    text-transform: none;
    word-wrap: normal;
    display: block;
    width: 100%;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    -webkit-appearance: none;
}
#dep {
    font-size:12px;
    display:inline;
    width:auto;
}
.editable {
    background: #cc5338;
    color:#fff;
    padding: 3px 4px 2px 4px;
    cursor: pointer;
    position: relative;
    font-size:13px;
    white-space: nowrap;
    line-height: 1.1em;
    display: inline-block;
    vertical-align: text-top;
}
#formulaire p.editable {
    font-size:13px;
    padding: 2px 4px;
    line-height: 1.1em;
    display: inline-block;
}
#formulaire p.editable-locked {
    display: inline-block;
}
.form-success-message {
    margin:20px 0;
    padding: 10px;
}
.form-success-message p {
    margin:0;
}
.editable:hover {
    background: #6d2617;
    cursor: pointer;
}
.editable:after {
    content:"\f304";
    font-family: 'FontAwesome';
    margin-left:7px;
    font-size:10px;
}
.editable-locked {
    background: #EEE;
    color:#000;
    padding:2px 4px;
    cursor: not-allowed;
    position: relative;
    font-size:13px !important;
    white-space: nowrap;
}
.editable-locked:after {
    content:"\f023";
    font-family: 'FontAwesome';
    margin-left:7px;
    font-size:10px;
}
.editable.edited {
    background: #26811b;
}
.editable.edited:after {
    content:'\f00c';
    font-size:10px;
}

/* Champs optionnels - Fond orange */
.editable[data-optional="true"] {
    background: #fd7e14;
}

.editable[data-optional="true"]:hover {
    background: #e76b00;
}

/* Uniformisation des labels dans les info-block */
.info-block label {
    font-weight: 600 !important;
    font-size: 16px !important;
    margin-bottom: 8px !important;
    display: block !important;
    color: #000;
}

/* Style pour les text-muted dans les info-block */
.info-block .text-muted {
    font-style: normal !important;
    display: block !important;
    font-size: 12px !important;
}
.input-wrapper {
    position: absolute;
    top: 22px;
    background: white;
    color: #000;
    left: 0;
    border: 1px solid #CCC;
    border-width: 0 1px 1px 1px;
    padding: 10px;
    white-space: nowrap;
    min-width:200px;
    width: auto;
    z-index: 86;
    box-shadow:0 0 4px rgba(0,0,0,0.15);
}

/* Input-wrapper avec hint : plus large */
.editable[data-hint] .input-wrapper {
    width: 450px;
}

.text-input-wrapper {
    width:430px;
}

.input-wrapper a {
    margin-right:15px;
}
.validate-text,
.validate-time,
.validate-textarea,
.validate-date,
.validate-select {
    color: #26811b;
    margin-left: 5px;
    padding:5px;
    border:1px solid #CCC;
    border-radius:3px;
    vertical-align: top;
}
p.hint {
    margin:0;
    white-space: normal;
    max-width: 430px;
}
.hint .fa {
    margin-right: 5px;
    color:#0a4b78;
}
.hide {
    display: none;
}
.modal-body h5 {
    text-decoration: underline;
}
.modal p,
.modal ul li {
    font-size: 14px;
}
.contract-actions {
    position: fixed;
    left: 25px;
    bottom: 25px;
    z-index: 999;
}
.text-block.no-margin {
    margin-bottom:0;
}
.info-block {
    background-color: #fdfde7;
    border: 2px dashed #e0c97f;
    padding: 1rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    font-style: italic;
    color: #555;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* ============================================
   FORMULAIRE DE VALIDATION
   ============================================ */

/* Container du formulaire de validation */
#validate-contrat-sf1,
#validate-contrat-sf2 {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    margin: 3rem auto;
    max-width: 600px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

#validate-contrat-sf1::before,
#validate-contrat-sf2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    border-radius: 12px 12px 0 0;
}

/* Labels des champs */
#validate-contrat-sf1 label,
#validate-contrat-sf2 label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: block;
    text-align: left;
}

/* Groupes de champs */
#validate-contrat-sf1 .form-group,
#validate-contrat-sf2 .form-group {
    margin-bottom: 1.5rem;
    width: 100% !important;
    max-width: 100% !important;
}

/* Inputs */
#validate-contrat-sf1 .form-control,
#validate-contrat-sf2 .form-control {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

#validate-contrat-sf1 .form-control:focus,
#validate-contrat-sf2 .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    outline: none;
}

#validate-contrat-sf1 .form-control:hover,
#validate-contrat-sf2 .form-control:hover {
    border-color: #adb5bd;
}

/* Icônes pour les champs */
#sf1-email,
#sf2-email {
    padding-left: 3rem !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23999" viewBox="0 0 16 16"><path d="M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4Zm2-1a1 1 0 0 0-1 1v.217l7 4.2 7-4.2V4a1 1 0 0 0-1-1H2Zm13 2.383-4.708 2.825L15 11.105V5.383Zm-.034 6.876-5.64-3.471L8 9.583l-1.326-.795-5.64 3.47A1 1 0 0 0 2 13h12a1 1 0 0 0 .966-.741ZM1 11.105l4.708-2.897L1 5.383v5.722Z"/></svg>');
    background-repeat: no-repeat;
    background-position: 1rem center;
    background-size: 1.1rem;
}

#sf1-tel,
#sf2-tel {
    padding-left: 3rem !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23999" viewBox="0 0 16 16"><path d="M3.654 1.328a.678.678 0 0 0-1.015-.063L1.605 2.3c-.483.484-.661 1.169-.45 1.77a17.568 17.568 0 0 0 4.168 6.608 17.569 17.569 0 0 0 6.608 4.168c.601.211 1.286.033 1.77-.45l1.034-1.034a.678.678 0 0 0-.063-1.015l-2.307-1.794a.678.678 0 0 0-.58-.122l-2.19.547a1.745 1.745 0 0 1-1.657-.459L5.482 8.062a1.745 1.745 0 0 1-.46-1.657l.548-2.19a.678.678 0 0 0-.122-.58L3.654 1.328zM1.884.511a1.745 1.745 0 0 1 2.612.163L6.29 2.98c.329.423.445.974.315 1.494l-.547 2.19a.678.678 0 0 0 .178.643l2.457 2.457a.678.678 0 0 0 .644.178l2.189-.547a1.745 1.745 0 0 1 1.494.315l2.306 1.794c.829.645.905 1.87.163 2.611l-1.034 1.034c-.74.74-1.846 1.065-2.877.702a18.634 18.634 0 0 1-7.01-4.42 18.634 18.634 0 0 1-4.42-7.009c-.362-1.03-.037-2.137.703-2.877L1.885.511z"/></svg>');
    background-repeat: no-repeat;
    background-position: 1rem center;
    background-size: 1.1rem;
}

/* Bouton de validation */
#validate-contrat-sf1 .btn-primary,
#validate-contrat-sf2 .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 8px;
    padding: 0.85rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

#validate-contrat-sf1 .btn-primary::before,
#validate-contrat-sf2 .btn-primary::before {
    content: '✓';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    font-weight: bold;
}

#validate-contrat-sf1 .btn-primary:hover,
#validate-contrat-sf2 .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
}

#validate-contrat-sf1 .btn-primary:active,
#validate-contrat-sf2 .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}

/* Animation de chargement lors de la soumission */
#validate-contrat-sf1.submitting .btn-primary,
#validate-contrat-sf2.submitting .btn-primary {
    pointer-events: none;
    opacity: 0.7;
}

#validate-contrat-sf1.submitting .btn-primary::after,
#validate-contrat-sf2.submitting .btn-primary::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    right: 1.5rem;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Message d'aide sous le formulaire */
#validate-contrat-sf1 + p,
#validate-contrat-sf2 + p {
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 1rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    #validate-contrat-sf1,
    #validate-contrat-sf2 {
        padding: 2rem 1.5rem;
        margin: 2rem 1rem;
    }

    #validate-contrat-sf1::after,
    #validate-contrat-sf2::after {
        font-size: 1.2rem;
    }

    #validate-contrat-sf1 .btn-primary,
    #validate-contrat-sf2 .btn-primary {
        width: 100%;
        padding: 0.85rem 1rem;
        font-size: 1rem;
    }

    #validate-contrat-sf1 .btn-primary::before,
    #validate-contrat-sf2 .btn-primary::before {
        left: 1rem;
    }
}

