/*
 * Offset5 custom styles.
 *
 * Naming:
 * - Prefix every custom class with o5-.
 * - Scope page-specific rules under a stable page root class.
 * - Example: .o5-contact .o5-contact-hero { ... }
 *
 * Use durable class names that describe real page sections or components.
 */

/* ============================================================
   1. TOKENS
   ============================================================ */

:root {
    --o5-color-blue-900: #003c68;
    --o5-color-blue-700: #004f9f;
    --o5-color-blue-600: #0b57d0;
    --o5-color-red-600: #bb2a2b;
    --o5-color-surface: #ffffff;
    --o5-color-surface-soft: #f3f7fb;
    --o5-color-text: #1f2933;
    --o5-color-muted: #5f6f7f;
    --o5-radius-sm: 6px;
    --o5-radius-md: 8px;
    --o5-radius-lg: 12px;
    --o5-shadow-soft: 0 10px 30px rgba(0, 60, 120, 0.12);
}


/* ============================================================
   2. REUSABLE COMPONENTS
   ============================================================ */

.o5-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.75rem 1.25rem;
    border-radius: var(--o5-radius-md);
    border: 1px solid transparent;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.o5-btn:hover,
.o5-btn:focus {
    transform: translateY(-1px);
}

.o5-btn--primary {
    background-color: var(--o5-color-blue-600);
    border-color: var(--o5-color-blue-600);
    color: #ffffff;
}

.o5-card {
    background: var(--o5-color-surface);
    border: 1px solid rgba(0, 60, 104, 0.12);
    border-radius: var(--o5-radius-md);
    box-shadow: var(--o5-shadow-soft);
}


/* ============================================================
   3. PAGE: CONTACT
   Add .o5-contact to the duplicated Contact page only.
   ============================================================ */

.o5-contact {
    color: var(--o5-color-text);
}

.o5-contact.et_pb_section,
.o5-contact {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 5vw, 5rem) clamp(1rem, 3vw, 2rem) !important;
    background:
        radial-gradient(circle at 12% 8%, rgba(87, 214, 199, 0.20), transparent 30rem),
        linear-gradient(135deg, #f7fbff 0%, #eef6fb 44%, #ffffff 100%) !important;
}

.o5-contact::before {
    content: "";
    position: absolute;
    inset: 1.25rem;
    pointer-events: none;
    border: 1px solid rgba(0, 79, 159, 0.08);
    border-radius: 22px;
}

.o5-contact > .et_pb_row {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%) !important;
    max-width: 1180px !important;
}

.o5-contact .o5-contact-form-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.4rem, 3vw, 2.4rem);
}

.o5-contact .et_pb_column {
    margin-right: 0 !important;
}

.o5-contact .o5-contact-form-row > .et_pb_column,
.o5-contact .o5-contact-form,
.o5-contact .gform_wrapper {
    min-width: 0;
}

.o5-contact .o5-contact-form-row > .et_pb_column,
.o5-contact .o5-contact-form {
    flex: none;
    width: min(760px, 100%) !important;
    max-width: 760px !important;
    padding: clamp(1.2rem, 2.5vw, 1.8rem);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 60, 104, 0.10);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 60, 104, 0.16);
    backdrop-filter: blur(10px);
}

.o5-contact .o5-contact-form-row > .et_pb_column::before,
.o5-contact .o5-contact-form::before {
    content: "Votre projet";
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(11, 87, 208, 0.10);
    color: var(--o5-color-blue-700);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.o5-contact .gform_wrapper.gravity-theme {
    font-family: inherit;
}

.o5-contact .gform_wrapper.gravity-theme .gform_fields {
    grid-row-gap: 1rem;
}

.o5-contact .gform_wrapper.gravity-theme .gfield_label,
.o5-contact .gform_wrapper.gravity-theme legend.gfield_label {
    margin-bottom: 0.45rem;
    color: var(--o5-color-blue-900);
    font-size: 0.92rem;
    font-weight: 800;
}

.o5-contact .gform_wrapper input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),
.o5-contact .gform_wrapper select,
.o5-contact .gform_wrapper textarea,
.o5-contact .gform_wrapper.gravity-theme input[type="text"],
.o5-contact .gform_wrapper.gravity-theme input[type="email"],
.o5-contact .gform_wrapper.gravity-theme input[type="tel"],
.o5-contact .gform_wrapper.gravity-theme input[type="url"],
.o5-contact .gform_wrapper.gravity-theme input[type="number"],
.o5-contact .gform_wrapper.gravity-theme select,
.o5-contact .gform_wrapper.gravity-theme textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.85rem 1rem !important;
    color: var(--o5-color-text);
    background: #f8fbfd;
    border: 1px solid rgba(0, 60, 104, 0.18);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.o5-contact .gform_wrapper textarea,
.o5-contact .gform_wrapper.gravity-theme textarea {
    min-height: 140px;
    resize: vertical;
}

.o5-contact .gform_wrapper input:focus,
.o5-contact .gform_wrapper select:focus,
.o5-contact .gform_wrapper textarea:focus,
.o5-contact .gform_wrapper.gravity-theme input:focus,
.o5-contact .gform_wrapper.gravity-theme select:focus,
.o5-contact .gform_wrapper.gravity-theme textarea:focus {
    background: #ffffff;
    border-color: rgba(11, 87, 208, 0.75);
    box-shadow: 0 0 0 4px rgba(11, 87, 208, 0.12);
    outline: none;
    transform: translateY(-1px);
}

.o5-contact .gform_wrapper.gravity-theme .gfield_description,
.o5-contact .gform_wrapper.gravity-theme .gform_fileupload_rules {
    color: var(--o5-color-muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.o5-contact .gform_wrapper.gravity-theme .gform_footer,
.o5-contact .gform_wrapper.gravity-theme .gform_page_footer {
    margin-top: 1.35rem;
    padding-top: 0;
}

.o5-contact .gform_wrapper .gform_button,
.o5-contact .gform_wrapper .gform_next_button,
.o5-contact .gform_wrapper .gform_previous_button,
.o5-contact .gform_wrapper.gravity-theme .gform_button,
.o5-contact .gform_wrapper.gravity-theme .gform_next_button,
.o5-contact .gform_wrapper.gravity-theme .gform_previous_button {
    min-height: 52px;
    padding: 0.95rem 1.45rem !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, var(--o5-color-blue-600), var(--o5-color-blue-900)) !important;
    color: #ffffff !important;
    box-shadow: 0 16px 34px rgba(0, 60, 104, 0.26);
    font-size: 1rem !important;
    font-weight: 800 !important;
    letter-spacing: 0;
    text-shadow: none !important;
    transition: box-shadow 0.18s ease, filter 0.18s ease, transform 0.18s ease;
}

.o5-contact .gform_wrapper .gform_button:hover,
.o5-contact .gform_wrapper .gform_next_button:hover,
.o5-contact .gform_wrapper .gform_previous_button:hover,
.o5-contact .gform_wrapper .gform_button:focus,
.o5-contact .gform_wrapper .gform_next_button:focus,
.o5-contact .gform_wrapper .gform_previous_button:focus,
.o5-contact .gform_wrapper.gravity-theme .gform_button:hover,
.o5-contact .gform_wrapper.gravity-theme .gform_next_button:hover,
.o5-contact .gform_wrapper.gravity-theme .gform_previous_button:hover,
.o5-contact .gform_wrapper.gravity-theme .gform_button:focus,
.o5-contact .gform_wrapper.gravity-theme .gform_next_button:focus,
.o5-contact .gform_wrapper.gravity-theme .gform_previous_button:focus {
    filter: brightness(1.04);
    box-shadow: 0 20px 44px rgba(0, 60, 104, 0.34);
    transform: translateY(-2px);
}

.o5-contact .gform_wrapper.gravity-theme .validation_message,
.o5-contact .gform_wrapper.gravity-theme .gfield_validation_message,
.o5-contact .gform_wrapper.gravity-theme .gform_validation_errors {
    border-radius: 12px;
}

.o5-contact .o5-contact-locations-row,
.o5-contact .o5-contact-locations {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(220px, 1fr)) !important;
    flex: none;
    width: min(1120px, 100%) !important;
    max-width: 1120px !important;
    margin: 0 auto !important;
    gap: 1.1rem;
}

.o5-contact .o5-contact-locations-row > .et_pb_column,
.o5-contact .o5-contact-locations > .et_pb_column {
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    margin-right: 0 !important;
}

.o5-contact .o5-contact-locations-row .et_pb_module,
.o5-contact .o5-contact-locations .et_pb_module {
    width: 100% !important;
    margin-bottom: 0 !important;
}

.o5-contact .o5-contact-locations-row .et_pb_accordion,
.o5-contact .o5-contact-locations .et_pb_accordion {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(220px, 1fr)) !important;
    grid-column: 1 / -1;
    width: 100% !important;
    gap: 1.1rem;
}

.o5-contact .o5-contact-locations-row .et_pb_toggle,
.o5-contact .o5-contact-locations-row .et_pb_text,
.o5-contact .o5-contact-locations-row .et_pb_blurb,
.o5-contact .o5-contact-locations-row .et_pb_code,
.o5-contact .o5-contact-locations .et_pb_toggle,
.o5-contact .o5-contact-locations .et_pb_text,
.o5-contact .o5-contact-locations .et_pb_blurb,
.o5-contact .o5-contact-locations .et_pb_code {
    overflow: hidden;
    min-height: 84px;
    width: 100% !important;
    min-width: 0 !important;
    margin-bottom: 0 !important;
    padding: 1.05rem 1.15rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 60, 104, 0.12);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 60, 104, 0.08);
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.o5-contact .o5-contact-locations-row .et_pb_toggle:hover,
.o5-contact .o5-contact-locations-row .et_pb_text:hover,
.o5-contact .o5-contact-locations-row .et_pb_blurb:hover,
.o5-contact .o5-contact-locations-row .et_pb_code:hover,
.o5-contact .o5-contact-locations-row .et_pb_toggle_open,
.o5-contact .o5-contact-locations .et_pb_toggle:hover,
.o5-contact .o5-contact-locations .et_pb_text:hover,
.o5-contact .o5-contact-locations .et_pb_blurb:hover,
.o5-contact .o5-contact-locations .et_pb_code:hover,
.o5-contact .o5-contact-locations .et_pb_toggle_open {
    background: #ffffff;
    border-color: rgba(11, 87, 208, 0.28);
    box-shadow: 0 18px 42px rgba(0, 60, 104, 0.13);
    transform: translateY(-2px);
}

.o5-contact .o5-contact-locations-row .et_pb_toggle_title,
.o5-contact .o5-contact-locations-row h3,
.o5-contact .o5-contact-locations-row h4,
.o5-contact .o5-contact-locations .et_pb_toggle_title,
.o5-contact .o5-contact-locations h3,
.o5-contact .o5-contact-locations h4 {
    color: var(--o5-color-blue-900);
    font-family: inherit;
    font-size: clamp(0.9rem, 0.95vw, 1rem);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.25;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.o5-contact .o5-contact-locations-row .et_pb_toggle_title,
.o5-contact .o5-contact-locations .et_pb_toggle_title {
    min-height: 2.5rem;
    padding-right: 1.45rem;
    display: flex;
    align-items: center;
}

.o5-contact .o5-contact-locations-row .et_pb_toggle_content,
.o5-contact .o5-contact-locations-row p,
.o5-contact .o5-contact-locations-row a,
.o5-contact .o5-contact-locations .et_pb_toggle_content,
.o5-contact .o5-contact-locations p,
.o5-contact .o5-contact-locations a {
    color: var(--o5-color-muted);
    font-size: 0.84rem;
    line-height: 1.55;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.o5-contact .o5-contact-locations-row .et_pb_toggle_content,
.o5-contact .o5-contact-locations .et_pb_toggle_content {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(0, 60, 104, 0.10);
}

.o5-contact .o5-contact-locations-row a,
.o5-contact .o5-contact-locations a {
    color: var(--o5-color-blue-700);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

@media (max-width: 980px) {
    .o5-contact .o5-contact-form-row {
        display: flex;
    }

    .o5-contact .o5-contact-form-row > .et_pb_column,
    .o5-contact .o5-contact-form {
        margin-bottom: 1.25rem !important;
    }

    .o5-contact .o5-contact-locations-row,
    .o5-contact .o5-contact-locations-row .et_pb_accordion,
    .o5-contact .o5-contact-locations,
    .o5-contact .o5-contact-locations .et_pb_accordion {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .o5-contact.et_pb_section,
    .o5-contact {
        padding: 2rem 1rem !important;
    }

    .o5-contact::before {
        inset: 0.6rem;
        border-radius: 16px;
    }

    .o5-contact .o5-contact-form-row > .et_pb_column,
    .o5-contact .o5-contact-form {
        padding: 1rem;
        border-radius: 14px;
    }

    .o5-contact .o5-contact-locations-row,
    .o5-contact .o5-contact-locations-row .et_pb_accordion,
    .o5-contact .o5-contact-locations,
    .o5-contact .o5-contact-locations .et_pb_accordion {
        grid-template-columns: 1fr;
    }

    .o5-contact .gform_wrapper .gform_button,
    .o5-contact .gform_wrapper .gform_next_button,
    .o5-contact .gform_wrapper .gform_previous_button,
    .o5-contact .gform_wrapper.gravity-theme .gform_button,
    .o5-contact .gform_wrapper.gravity-theme .gform_next_button,
    .o5-contact .gform_wrapper.gravity-theme .gform_previous_button {
        width: 100%;
    }
}
