/* Styles spécifiques pour la page Jobs */

/* ======================== */
/* SECTION HERO JOBS - CENTRÉE */
/* ======================== */

.jobs-hero-section {
    background-color: #FFFBE5 !important;
    padding-top: 6rem !important;
    padding-bottom: 3rem !important;
}

.jobs-hero-section.jobs-hero-centered {
    padding-top: 8rem !important;
}

/* Conteneur centré */
.jobs-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

/* Container de l'image - taille réduite centrée */
.jobs-hero-image-container {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

/* Image wrapper - RATIO ORIGINAL CONSERVÉ (sans square-img-wrap) */
.jobs-team-img-wrap {
    position: relative;
    width: 100%;
    display: block;
    overflow: visible;
}

/* Image - ratio naturel conservé */
.jobs-team-img {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Masques positionnés sur l'image */
.jobs-team-img-wrap .img-mask-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

/* S'assurer que les masques SVG sont bien positionnés */
.jobs-team-img-wrap .img-mask-wrap .mask-svg {
    position: absolute;
}

.jobs-team-img-wrap .img-mask-wrap .mask-svg.is-botton {
    bottom: 0;
    left: 0;
    width: 5rem;
    height: auto;
    aspect-ratio: 80 / 92;
}

.jobs-team-img-wrap .img-mask-wrap .mask-svg:not(.is-botton) {
    top: 0;
    right: 0;
    width: 5rem;
    height: auto;
    aspect-ratio: 71 / 86;
}

/* Titre principal - MAJUSCULES centré */
.jobs-hero-title {
    font-family: var(--font-display-family, 'Martin'), sans-serif;
    font-size: 3.5rem;
    font-weight: 500;
    color: #131313;
    margin: 0;
    line-height: 1.05;
    text-transform: uppercase;
}

/* Boutons côte à côte */
.jobs-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.jobs-hero-btn {
    margin: 0;
}

/* Responsive Tablet */
@media (max-width: 991px) {
    .jobs-hero-section {
        padding-top: 4rem !important;
    }

    .jobs-hero-section.jobs-hero-centered {
        padding-top: 5rem !important;
    }

    .jobs-hero-image-container {
        max-width: 400px;
    }

    .jobs-hero-title {
        font-size: 3rem;
    }
}

/* Responsive Mobile */
@media (max-width: 767px) {
    .jobs-hero-section.jobs-hero-centered {
        padding-top: 4rem !important;
        padding-bottom: 2rem !important;
    }

    .jobs-hero-content {
        gap: 1.25rem;
    }

    .jobs-hero-image-container {
        max-width: 100%;
    }

    .jobs-hero-title {
        font-size: 2.25rem;
    }
}

/* Responsive Petit Mobile */
@media (max-width: 479px) {
    .jobs-hero-section.jobs-hero-centered {
        padding-top: 3rem !important;
    }

    .jobs-hero-content {
        gap: 1rem;
    }

    .jobs-hero-title {
        font-size: 1.75rem;
    }

    .jobs-hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .jobs-hero-btn {
        width: 100%;
    }

    .jobs-hero-btn .btn-primarytxt,
    .jobs-hero-btn .btn-hovercolor {
        width: 100%;
        justify-content: center;
    }
}

/* SVG corners in cream color */
.img-mask-wrap.is-beige {
    color: #FFFBE5;
}

/* Jobs marquee styling - Turquoise */
.marquee-wrap.jobs-marquee {
    background-color: #329B98;
}

.marquee-wrap.jobs-marquee .marquee-element div {
    color: #FFFBE5;
}

/* Remove blue focus/selection on inputs - AGGRESSIVE */
.typeform-input,
.typeform-input:focus,
.typeform-input:active,
.typeform-input:hover {
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* Override browser autofill styles */
.typeform-input:-webkit-autofill,
.typeform-input:-webkit-autofill:hover,
.typeform-input:-webkit-autofill:focus,
.typeform-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #329B98 inset !important;
    -webkit-text-fill-color: #FFFBE5 !important;
    background-color: transparent !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Firefox autofill */
.typeform-input:-moz-autofill,
.typeform-input:-moz-autofill:hover,
.typeform-input:-moz-autofill:focus {
    background-color: transparent !important;
}

/* Remove default browser selection/highlight */
.typeform-container input,
.typeform-container select,
.typeform-container textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent !important;
    outline: none !important;
}

.typeform-container input:focus,
.typeform-container select:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Remove highlight on all input states */
.typeform-container input::selection {
    background: rgba(255, 251, 228, 0.3);
    color: #FFFBE5;
}

/* Button styling for beige background */
.jobs-hero-section .button[btn-style="1"] .btn-primarytxt {
    background-color: #FF4A16;
}

.jobs-hero-section .button[btn-style="1"] .btn-primarytxt .fss {
    color: #FFFBE5;
}

.jobs-hero-section .button[btn-style="1"] .btn-hovercolor {
    background-color: #74245B;
}

/* ======================== */
/* Masquer le popup newsletter/réservation sur la page Jobs */
[data-barba-namespace="jobs"] .infolettre-popup-wrap {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ======================== */
/* Masquer les sections de la page d'accueil sur la page Jobs */
[data-barba-namespace="jobs"] .marquee-wrap:not(.jobs-marquee):not(.is-waves),
[data-barba-namespace="jobs"] section.is-02,
[data-barba-namespace="jobs"] section[bk="turquoise"]:not(.jobs-section),
[data-barba-namespace="jobs"] section[bk="lightblue"]:not(.jobs-section),
[data-barba-namespace="jobs"] .marquee-wrap.is-turquoise,
[data-barba-namespace="jobs"] section#products,
[data-barba-namespace="jobs"] .spoon-section,
[data-barba-namespace="jobs"] section#find-us,
[data-barba-namespace="jobs"] .loader-wrap,
[data-barba-namespace="jobs"] .floating-illu-wrap,
[data-barba-namespace="jobs"] section[bk="beige"]:not(.jobs-hero-section):not(.jobs-offers-carousel-section) {
    display: none !important;
}

/* Ensure jobs hero section is always visible */
[data-barba-namespace="jobs"] .jobs-hero-section {
    display: block !important;
}

/* Image hero - Centrage vertical */
.jobs-hero-section .split-grid-gd1-cd12 {
    align-items: center !important;
}

.jobs-hero-section .split-content-cd6 {
    display: flex !important;
    align-items: center !important;
}

/* Container de l'image team - ratio original conservé */
/* Les styles principaux sont définis plus haut dans le fichier */

/* Transition fluide entre section formulaire et footer */
/* Étendre le fond turquoise de la section formulaire pour couvrir l'espace */
[data-barba-namespace="jobs"] .jobs-form-section {
    padding-bottom: 12rem !important;
    margin-bottom: -8rem !important;
}

/* Ajuster le z-index pour que le footer passe au-dessus */
[data-barba-namespace="jobs"] .section.is-footer {
    position: relative;
    z-index: 10;
}

/* Masquer la signature sur la page jobs */
.jobs-hero-section .sign-wrap {
    display: none !important;
}

/* Tablette */
@media (max-width: 991px) {
    .jobs-hero-section .split-grid-gd1-cd12 {
        gap: 2rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .jobs-hero-section .split-content-cd6 {
        width: 100% !important;
    }
}

/* ======================== */
/* SECTION OFFRES D'EMPLOI */
/* ======================== */

.jobs-offers-section {
    padding: 4rem 0;
}

.jobs-category-title {
    font-family: var(--font-display-family, 'Martin'), sans-serif;
    font-weight: var(--font-display-weight, 500);
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: #FFFBE5;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.job-card {
    background: rgba(255, 251, 228, 0.1);
    border: 1px solid rgba(255, 251, 228, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.job-card:hover {
    background: rgba(255, 251, 228, 0.2);
    transform: translateY(-4px);
}

.job-card-title {
    font-family: var(--font-display-family, 'Martin'), sans-serif;
    font-weight: var(--font-display-weight, 500);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #FFFBE5;
}

.job-card-type {
    display: inline-block;
    background: #FFFBE5;
    color: #FF4A16;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
}

/* ======================== */
/* SECTION REJOINDRE */
/* ======================== */

.jobs-join-section {
    padding: 3rem 0 4rem 0;
}

/* Ensure hidden sections don't take space */
[data-barba-namespace="jobs"] section#find-us {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.jobs-join-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 991px) {
    .jobs-join-grid {
        grid-template-columns: 1fr;
    }
}

.jobs-join-card {
    background: #FFFBE5;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.jobs-join-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: #329B98;
}

.jobs-join-card-title {
    font-family: var(--font-display-family, 'Martin'), sans-serif;
    font-weight: 500;
    font-size: 1.4rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #131313;
}

.jobs-join-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jobs-join-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.jobs-join-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #FF4A16;
}

/* ======================== */
/* SECTION FORMULAIRE */
/* ======================== */

.jobs-form-section {
    padding: 4rem 0;
}

.jobs-form {
    max-width: 700px;
    margin: 0 auto;
}

.jobs-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    .jobs-form-row {
        grid-template-columns: 1fr;
    }
}

.jobs-form-group {
    margin-bottom: 1rem;
}

.jobs-form-label {
    display: block;
    font-family: var(--font-display-family, 'Martin'), sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: #FFFBE5;
}

.jobs-form-input,
.jobs-form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(255, 251, 228, 0.3);
    border-radius: 8px;
    background: rgba(255, 251, 228, 0.1);
    color: #FFFBE5;
    font-family: var(--font-body-family, 'Martin'), sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.jobs-form-input:focus,
.jobs-form-select:focus {
    outline: none;
    border-color: #FFFBE5;
    background: rgba(255, 251, 228, 0.2);
}

.jobs-form-input::placeholder {
    color: rgba(255, 251, 228, 0.6);
}

.jobs-form-select option {
    background: #329B98;
    color: #FFFBE5;
}

.jobs-form-file {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px dashed rgba(255, 251, 228, 0.4);
    border-radius: 8px;
    background: rgba(255, 251, 228, 0.05);
    color: #FFFBE5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jobs-form-file:hover {
    border-color: #FFFBE5;
    background: rgba(255, 251, 228, 0.1);
}

.jobs-form-submit {
    width: 100%;
    padding: 1rem 2rem;
    margin-top: 1rem;
    background: #FFFBE5;
    color: #FF4A16;
    border: none;
    border-radius: 30px;
    font-family: var(--font-display-family, 'Martin'), sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jobs-form-submit:hover {
    background: #FFFBE5;
    transform: translateY(-2px);
}

/* Messages */
.jobs-success-message,
.jobs-error-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.jobs-success-message {
    background: rgba(50, 155, 152, 0.3);
    border: 1px solid #329B98;
    color: #FFFBE5;
}

.jobs-error-message {
    background: rgba(255, 74, 22, 0.3);
    border: 1px solid #FF4A16;
    color: #FFFBE5;
}

/* Job selection highlight */
.job-card.selected {
    background: rgba(255, 251, 228, 0.3);
    border-color: #FFFBE5;
}

/* ======================== */
/* TYPEFORM STYLE FORM */
/* ======================== */

.typeform-container {
    max-width: 800px;
    margin: 0 auto;
    min-height: 500px;
    position: relative;
    padding-bottom: 150px;
}

/* Progress bar */
.typeform-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 251, 228, 0.2);
    border-radius: 3px;
    margin-bottom: 3rem;
    overflow: hidden;
}

.typeform-progress-bar {
    height: 100%;
    background: #FFFBE5;
    border-radius: 3px;
    transition: width 0.4s ease;
    width: 12.5%;
}

/* Steps */
.typeform-step {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.typeform-step.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Question styling - Grande taille */
.typeform-question {
    font-family: var(--font-display-family, 'Martin'), sans-serif;
    font-weight: 500;
    font-size: 2.5rem;
    line-height: 1.3;
    color: #FFFBE5;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

.typeform-question span {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    text-transform: none;
    opacity: 0.7;
    margin-top: 0.75rem;
}

@media (max-width: 767px) {
    .typeform-question {
        font-size: 1.75rem;
    }
}

/* Options (radio buttons styled as cards) */
.typeform-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.typeform-option {
    display: block;
}

.typeform-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.typeform-option-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 251, 228, 0.1);
    border: 2px solid rgba(255, 251, 228, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #FFFBE5;
    font-family: var(--font-body-family, 'Martin'), sans-serif;
    font-size: 1.15rem;
}

.typeform-option-box:hover {
    background: #FFFBE5;
    border-color: #FFFBE5;
    color: #FF4A16;
    transform: translateX(8px);
}

.typeform-option-box:hover .typeform-option-letter {
    background: #FF4A16;
    color: #FFFBE5;
    border-color: #FF4A16;
}

.typeform-option input[type="radio"]:checked + .typeform-option-box {
    background: #FFFBE5;
    border-color: #FFFBE5;
    color: #FF4A16;
    transform: translateX(8px);
}

.typeform-option input[type="radio"]:checked + .typeform-option-box .typeform-option-text {
    color: #FF4A16;
    font-weight: 600;
}

.typeform-option-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 251, 228, 0.15);
    border: 1px solid rgba(255, 251, 228, 0.4);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.typeform-option input[type="radio"]:checked + .typeform-option-box .typeform-option-letter {
    background: #FF4A16;
    color: #FFFBE5;
    border-color: #FF4A16;
}

/* Input fields */
.typeform-input-wrap {
    margin-bottom: 2rem;
}

.typeform-input {
    width: 100%;
    padding: 1.25rem 0;
    background: transparent;
    border: none;
    border-bottom: 3px solid rgba(255, 251, 228, 0.4);
    color: #FFFBE5;
    font-family: var(--font-body-family, 'Martin'), sans-serif;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.typeform-input:focus {
    outline: none;
    border-bottom-color: #FFFBE5;
}

.typeform-input::placeholder {
    color: rgba(255, 251, 228, 0.5);
}

@media (max-width: 767px) {
    .typeform-input {
        font-size: 1.25rem;
    }
}

/* File upload dropzone */
.typeform-file-group {
    margin-bottom: 2rem;
}

.typeform-file-label {
    display: block;
    font-family: var(--font-display-family, 'Martin'), sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
    color: #FFFBE5;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.typeform-file-label span {
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: none;
    opacity: 0.7;
}

.typeform-file-dropzone {
    position: relative;
    padding: 2.5rem 2rem;
    border: 3px dashed rgba(255, 251, 228, 0.4);
    border-radius: 12px;
    background: rgba(255, 251, 228, 0.05);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.typeform-file-dropzone:hover {
    border-color: rgba(255, 251, 228, 0.7);
    background: rgba(255, 251, 228, 0.1);
}

.typeform-file-dropzone.has-file {
    border-color: #FFFBE5;
    background: rgba(255, 251, 228, 0.15);
}

.typeform-file-dropzone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.typeform-file-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.typeform-file-text {
    color: #FFFBE5;
    font-size: 1.1rem;
}

.typeform-file-text span {
    display: block;
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 0.5rem;
}

.typeform-filename {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: #FFFBE5;
    opacity: 0.8;
}

/* Navigation buttons */
.typeform-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 3rem;
}

.typeform-next,
.typeform-prev {
    font-family: var(--font-display-family, 'Martin'), sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.typeform-next {
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
    background: #FFFBE5;
    color: #FF4A16;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.typeform-next:hover {
    background: #FFFBE5;
    transform: translateY(-2px);
}

.typeform-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Discrete back link */
.typeform-prev {
    background: transparent;
    color: rgba(255, 251, 228, 0.7);
    font-size: 0.95rem;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.typeform-prev:hover {
    color: #FFFBE5;
}

/* Submit button */
.typeform-submit {
    width: 100%;
    padding: 1.25rem 2.5rem;
    margin-top: 2rem;
    background: #FFFBE5;
    color: #FF4A16;
    border: none;
    border-radius: 30px;
    font-family: var(--font-display-family, 'Martin'), sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.typeform-submit:hover {
    background: #FFFBE5;
    transform: translateY(-2px);
}

.typeform-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Final step - Success/Questionnaire */
.typeform-final {
    text-align: center;
    padding: 2rem 0;
}

/* Force display final step when active */
.typeform-final.active,
.typeform-step.typeform-final.active {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.typeform-final-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.typeform-final h3 {
    font-family: var(--font-display-family, 'Martin'), sans-serif;
    font-weight: 500;
    font-size: 2rem;
    color: #FFFBE5;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.typeform-final p {
    color: #FFFBE5;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.typeform-questionnaire-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: #FFFBE5;
    color: #FF4A16;
    border: none;
    border-radius: 30px;
    font-family: var(--font-display-family, 'Martin'), sans-serif;
    font-weight: 500;
    font-size: 1.15rem;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.typeform-questionnaire-btn:hover {
    background: #FFFBE5;
    transform: translateY(-2px);
}

/* Keyboard hint */
.typeform-hint {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 251, 228, 0.6);
}

.typeform-hint kbd {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 251, 228, 0.15);
    border: 1px solid rgba(255, 251, 228, 0.3);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.85rem;
}

/* Step indicator */
.typeform-step-indicator {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.9rem;
    color: rgba(255, 251, 228, 0.6);
}

/* Animations for options */
.typeform-options .typeform-option-box {
    opacity: 0;
    transform: translateY(20px);
    animation: optionFadeIn 0.3s ease forwards;
}

.typeform-options label:nth-child(1) .typeform-option-box { animation-delay: 0.05s; }
.typeform-options label:nth-child(2) .typeform-option-box { animation-delay: 0.1s; }
.typeform-options label:nth-child(3) .typeform-option-box { animation-delay: 0.15s; }
.typeform-options label:nth-child(4) .typeform-option-box { animation-delay: 0.2s; }
.typeform-options label:nth-child(5) .typeform-option-box { animation-delay: 0.25s; }
.typeform-options label:nth-child(6) .typeform-option-box { animation-delay: 0.3s; }

@keyframes optionFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success icon */
.typeform-success-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    color: #FFFBE5;
}

/* File name display */
.typeform-file-name {
    display: none;
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: #FFFBE5;
    font-weight: 500;
}

/* Error message */
.typeform-error-message {
    background: rgba(255, 74, 22, 0.3);
    border: 1px solid #FF4A16;
    color: #FFFBE5;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
}

/* Final step flex layout - hidden by default */
.typeform-final {
    display: none !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* Override: show final step ONLY when active class is present */
.typeform-final.active {
    display: flex !important;
}

/* Success text */
.typeform-success-text {
    color: #FFFBE5;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 500px;
}

/* Step display as flex */
.typeform-step {
    flex-direction: column;
}

/* Arrow animation */
.typeform-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.typeform-next:hover .typeform-arrow {
    transform: translateX(4px);
}

/* ======================== */
/* NOUVEAUX STYLES QUESTIONNAIRE INTÉGRÉ */
/* ======================== */

/* Groupe de champs */
.typeform-fields-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.typeform-field-row {
    display: flex;
    gap: 1rem;
}

/* Ligne double (Nom + Prénom) - reste en ligne jusqu'au petit mobile */
.typeform-field-row-double {
    flex-direction: row !important;
}

.typeform-field-row-double .typeform-field {
    flex: 1;
    min-width: 0;
}

@media (max-width: 767px) {
    .typeform-field-row {
        flex-direction: column;
    }

    /* Nom + Prénom restent côte à côte sur tablette */
    .typeform-field-row-double {
        flex-direction: row !important;
    }
}

@media (max-width: 479px) {
    /* Sur très petit mobile, passer en colonne */
    .typeform-field-row-double {
        flex-direction: column !important;
    }
}

.typeform-field {
    flex: 1;
    margin-bottom: 0.5rem;
}

/* Labels */
.typeform-label {
    display: block;
    font-family: var(--font-display-family, 'Martin'), sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #FFFBE5;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

/* Textareas */
.typeform-textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    background: rgba(255, 251, 228, 0.1);
    border: 2px solid rgba(255, 251, 228, 0.3);
    border-radius: 8px;
    color: #FFFBE5;
    font-family: var(--font-body-family, 'Martin'), sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.3s ease;
}

.typeform-textarea:focus {
    outline: none;
    border-color: #FFFBE5;
    background: rgba(255, 251, 228, 0.15);
}

.typeform-textarea::placeholder {
    color: rgba(255, 251, 228, 0.5);
}

/* Options compactes (pour plusieurs questions sur une page) */
.typeform-options-compact {
    gap: 0.75rem;
}

.typeform-options-compact .typeform-option-box {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
}

.typeform-option-small .typeform-option-box {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.typeform-option-small .typeform-option-letter {
    display: none;
}

/* Options inline (pour oui/non) */
.typeform-options-inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.typeform-options-inline .typeform-option {
    flex: 0 0 auto;
}

.typeform-options-inline .typeform-option-box {
    min-width: 5rem;
    justify-content: center;
}

/* Checkboxes */
.typeform-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.typeform-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.typeform-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.typeform-checkbox-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 251, 228, 0.1);
    border: 2px solid rgba(255, 251, 228, 0.3);
    border-radius: 8px;
    color: #FFFBE5;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
}

.typeform-checkbox-box::before {
    content: '';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: rgba(255, 251, 228, 0.15);
    border: 2px solid rgba(255, 251, 228, 0.4);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.typeform-checkbox:hover .typeform-checkbox-box {
    background: rgba(255, 251, 228, 0.15);
    border-color: rgba(255, 251, 228, 0.5);
}

.typeform-checkbox input[type="checkbox"]:checked + .typeform-checkbox-box {
    background: #FFFBE5;
    border-color: #FFFBE5;
    color: #FF4A16;
    font-weight: 600;
}

.typeform-checkbox input[type="checkbox"]:checked + .typeform-checkbox-box::before {
    content: '✓';
    background: #FFFBE5;
    border-color: #FFFBE5;
    color: #FF4A16;
    font-weight: bold;
    font-size: 14px;
}

/* Champs conditionnels */
.conditional-field {
    transition: all 0.3s ease;
}

.conditional-field[style*="display: none"] {
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Question avec sous-titre */
.typeform-question span {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: none;
    opacity: 0.7;
    margin-top: 0.5rem;
    letter-spacing: 0.5px;
}

/* Style amélioré pour l'étape finale */
.typeform-final .typeform-success-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

/* Responsive pour le questionnaire */
@media (max-width: 767px) {
    .typeform-fields-group {
        gap: 1.25rem;
    }

    .typeform-label {
        font-size: 0.95rem;
    }

    .typeform-textarea {
        min-height: 80px;
        font-size: 0.95rem;
    }

    .typeform-option-small .typeform-option-box {
        padding: 0.65rem 0.875rem;
        font-size: 0.85rem;
    }

    .typeform-checkbox-box {
        padding: 0.65rem 0.875rem;
        font-size: 0.85rem;
    }

    .typeform-options-inline {
        flex-direction: row;
    }
}

/* Animation pour les étapes conditionnelles */
.conditional-step {
    animation: fadeInUp 0.4s ease;
}

/* Scrollbar stylisée pour les textareas */
.typeform-textarea::-webkit-scrollbar {
    width: 8px;
}

.typeform-textarea::-webkit-scrollbar-track {
    background: rgba(255, 251, 228, 0.1);
    border-radius: 4px;
}

.typeform-textarea::-webkit-scrollbar-thumb {
    background: rgba(255, 251, 228, 0.3);
    border-radius: 4px;
}

.typeform-textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 251, 228, 0.5);
}

/* File title styling */
.typeform-file-title {
    display: block;
    font-family: var(--font-display-family, 'Martin'), sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: #FFFBE5;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

/* ======================== */
/* CAROUSEL DES OFFRES D'EMPLOI */
/* ======================== */

.jobs-offers-carousel-section {
    background-color: #329B98 !important;
    padding: 4rem 0 5rem 0;
}

.jobs-section-title {
    font-family: var(--font-display-family, 'Martin'), sans-serif;
    font-weight: 500;
    font-size: 3rem;
    text-transform: uppercase;
    color: #131313;
    text-align: center;
    margin-bottom: 0.75rem;
}

.jobs-offers-carousel-section .jobs-section-title {
    color: #FFFBE5 !important;
}

.jobs-section-subtitle {
    font-size: 1.1rem;
    color: #555;
    text-align: center;
    margin-bottom: 3rem;
}

.jobs-offers-carousel-section .jobs-section-subtitle {
    color: #FFFBE5 !important;
}

.jobs-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 100%;
}

.jobs-carousel {
    overflow: hidden;
    flex: 1;
    padding: 1rem 0;
}

.jobs-carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.4s ease;
}

.jobs-carousel-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 280px;
    background: #FFFBE5;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.jobs-carousel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: #329B98;
}

.jobs-card-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.jobs-card-badge-cuisine {
    background: #FF4A16;
    color: white;
}

.jobs-card-badge-salle {
    background: #329B98;
    color: white;
}

.jobs-card-badge-plonge {
    background: #74245B;
    color: white;
}

.jobs-card-title {
    font-family: var(--font-display-family, 'Martin'), sans-serif;
    font-weight: 500;
    font-size: 1.4rem;
    color: #131313;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.jobs-card-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jobs-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    gap: 0.75rem;
}

.jobs-card-types {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    flex: 1;
}

.jobs-card-type {
    background: #f0f0f0;
    color: #333;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.jobs-card-btn {
    background: #329B98;
    color: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 25px;
    font-family: var(--font-display-family, 'Martin'), sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jobs-card-btn:hover {
    background: #2a8481;
    transform: scale(1.05);
}

/* Carousel Navigation Buttons */
.jobs-carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 251, 228, 0.2) !important;
    border: 2px solid #FFFBE5 !important;
    color: #FFFBE5 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.jobs-carousel-btn:hover {
    background: #FFFBE5;
    color: #329B98;
}

.jobs-carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Carousel Dots */
.jobs-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.jobs-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 251, 228, 0.5) !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jobs-carousel-dot.active {
    background: #FFFBE5 !important;
    transform: scale(1.2);
}

/* Responsive Carousel */
@media (max-width: 1024px) {
    .jobs-carousel-card {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media (max-width: 767px) {
    .jobs-carousel-card {
        flex: 0 0 100%;
    }

    .jobs-carousel-btn {
        display: none;
    }

    .jobs-carousel-wrapper {
        padding: 0;
    }

    .jobs-section-title {
        font-size: 2rem;
    }
}

/* ======================== */
/* MODAL POPUP OFFRE */
/* ======================== */

/* Classe pour bloquer le scroll du body quand le modal est ouvert */
/* Solution basée sur https://css-tricks.com/prevent-page-scrolling-when-a-modal-is-open/ */
body.modal-open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* iOS Safari specific fixes */
    touch-action: none;
    -webkit-overflow-scrolling: none;
    overscroll-behavior: none;
}

/* Empêcher le saut de page quand la scrollbar disparaît */
html {
    scrollbar-gutter: stable;
}

.job-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
    /* Ne pas capturer les events de scroll sur le container */
    overscroll-behavior: contain;
}

.job-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 1;
    /* Block all touch/scroll events on overlay */
    touch-action: none;
    overscroll-behavior: none;
}

/* Flèches de navigation entre les offres */
.job-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #329B98;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.job-modal-nav:hover {
    background: #329B98;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.job-modal-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.job-modal-prev {
    left: 1.5rem;
}

.job-modal-next {
    right: 1.5rem;
}

@media (max-width: 767px) {
    .job-modal-nav {
        width: 40px;
        height: 40px;
    }

    .job-modal-prev {
        left: 0.5rem;
    }

    .job-modal-next {
        right: 0.5rem;
    }
}

.job-modal-content {
    position: relative;
    background: #FFFBE5;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    /* Forcer le scroll vertical - ne pas utiliser 'auto' qui peut échouer sur certains browsers */
    overflow-x: hidden;
    overflow-y: scroll;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 2; /* Above overlay */
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.job-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #333;
}

.job-modal-close:hover {
    background: rgba(0,0,0,0.1);
    transform: rotate(90deg);
}

.job-modal-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.job-modal-badge.cuisine { background: #FF4A16; color: white; }
.job-modal-badge.salle { background: #329B98; color: white; }
.job-modal-badge.plonge { background: #74245B; color: white; }

.job-modal-title {
    font-family: var(--font-display-family, 'Martin'), sans-serif;
    font-weight: 500;
    font-size: 2rem;
    color: #131313;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    line-height: 1.2;
}

.job-modal-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.job-modal-types {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.job-modal-type {
    background: #e3f2fd;
    color: #1976D2;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.job-modal-position {
    background: #f0f0f0;
    color: #555;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.job-modal-description {
    color: #333;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #FFFBE5;
    border-radius: 12px;
    border: 1px solid #eee;
}

.job-modal-description h3 {
    font-family: var(--font-display-family, 'Martin'), sans-serif;
    font-size: 1.1rem;
    color: #329B98;
    margin: 1.25rem 0 0.75rem 0;
    text-transform: uppercase;
}

.job-modal-description h3:first-child {
    margin-top: 0;
}

.job-modal-description p {
    margin: 0.75rem 0;
}

.job-modal-description ul {
    margin: 0.75rem 0;
    padding-left: 1.25rem;
}

.job-modal-description li {
    margin: 0.4rem 0;
}

.job-modal-description b,
.job-modal-description strong {
    color: #131313;
}

.job-modal-actions {
    text-align: center;
}

.job-modal-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: #FF4A16;
    color: white;
    border: none;
    border-radius: 30px;
    font-family: var(--font-display-family, 'Martin'), sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.job-modal-cta:hover {
    background: #e04010;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 74, 22, 0.4);
}

/* Modal Responsive */
@media (max-width: 767px) {
    .job-modal-content {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .job-modal-title {
        font-size: 1.5rem;
    }

    .job-modal-description {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .job-modal-cta {
        width: 100%;
        justify-content: center;
    }
}

/* Scrollbar stylisée pour le modal - visible mais discrète */
.job-modal-content {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(0,0,0,0.2) transparent;
}

.job-modal-content::-webkit-scrollbar {
    width: 6px;
}

.job-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.job-modal-content::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.job-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.3);
}

/* ======================== */
/* HISTORIQUE DES CHOIX FORMULAIRE */
/* ======================== */

.typeform-history {
    background: rgba(255, 251, 228, 0.15);
    border: 1px solid rgba(255, 251, 228, 0.3);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    animation: fadeIn 0.3s ease;
}

.typeform-history-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 251, 228, 0.6);
    margin-bottom: 0.5rem;
}

.typeform-history-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.typeform-history-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 251, 228, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.typeform-history-label {
    color: rgba(255, 251, 228, 0.6);
}

.typeform-history-value {
    color: #FFFBE5;
    font-weight: 600;
}

.typeform-history-job {
    background: rgba(255, 74, 22, 0.25);
    border: 1px solid rgba(255, 74, 22, 0.4);
    padding-right: 0.5rem;
}

.typeform-history-job .typeform-history-value {
    color: #FFA66C;
}

.typeform-history-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 0.5rem;
    padding: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #FFA66C;
    transition: all 0.2s ease;
}

.typeform-history-remove:hover {
    background: rgba(255, 74, 22, 0.5);
    color: white;
}

.typeform-history-remove svg {
    width: 12px;
    height: 12px;
}

@media (max-width: 767px) {
    .typeform-history {
        padding: 0.75rem 1rem;
    }

    .typeform-history-items {
        flex-direction: column;
        gap: 0.5rem;
    }

    .typeform-history-item {
        width: fit-content;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ======================== */
/* MESSAGES D'ERREUR FORMULAIRE */
/* ======================== */

.typeform-errors {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.4);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    animation: shakeError 0.5s ease-in-out;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.typeform-errors-icon {
    flex-shrink: 0;
    color: #ff6b6b;
    margin-top: 2px;
}

.typeform-errors-content {
    flex: 1;
}

.typeform-errors-title {
    font-weight: 600;
    color: #ff6b6b;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.typeform-errors-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.typeform-errors-list li {
    color: rgba(255, 251, 228, 0.9);
    font-size: 0.875rem;
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.typeform-errors-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ff6b6b;
}

.typeform-errors-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: rgba(255, 251, 228, 0.6);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.typeform-errors-close:hover {
    color: #FFFBE5;
}

/* État d'erreur sur les champs */
.typeform-field.has-error .typeform-input,
.typeform-field.has-error .typeform-textarea {
    border-color: #ff6b6b !important;
    background: rgba(220, 53, 69, 0.1) !important;
}

.typeform-field.has-error .typeform-label {
    color: #ff6b6b !important;
}

/* État d'erreur sur les options radio */
.typeform-options.has-error .typeform-option-box {
    border-color: #ff6b6b !important;
}

.typeform-options.has-error::after {
    content: "Veuillez sélectionner une option";
    display: block;
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Animation de mise en évidence */
@keyframes highlightError {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.4); }
}

.typeform-field.has-error .typeform-input,
.typeform-field.has-error .typeform-textarea,
.typeform-options.has-error {
    animation: highlightError 1s ease-in-out;
}

@media (max-width: 767px) {
    .typeform-errors {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }

    .typeform-errors-title {
        font-size: 0.875rem;
    }

    .typeform-errors-list li {
        font-size: 0.8rem;
    }
}


/* Responsive masques equipe Jobs - identiques au Hero */
@media (max-width: 991px) {
    .jobs-team-img-wrap .img-mask-wrap .mask-svg.is-botton,
    .jobs-team-img-wrap .img-mask-wrap .mask-svg:not(.is-botton) {
        width: 4rem;
    }
}

@media (max-width: 767px) {
    .jobs-team-img-wrap .img-mask-wrap .mask-svg.is-botton,
    .jobs-team-img-wrap .img-mask-wrap .mask-svg:not(.is-botton) {
        width: 3rem;
    }
}

@media (max-width: 479px) {
    .jobs-team-img-wrap .img-mask-wrap .mask-svg.is-botton,
    .jobs-team-img-wrap .img-mask-wrap .mask-svg:not(.is-botton) {
        width: 2rem;
    }
}


/* ================================================ */
/* SAFARI COMPATIBILITY FIXES */
/* ================================================ */

/* Carousel dots - cercles parfaits Safari */
.jobs-carousel-dot {
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    min-width: 12px;
    min-height: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    flex-shrink: 0;
}

/* Modal close button - Safari fix */
.job-modal-close {
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    z-index: 1000;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.job-modal-close svg {
    display: block;
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    pointer-events: none;
}

/* Modal navigation buttons - Safari fix */
.job-modal-nav {
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    z-index: 1000;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.job-modal-nav svg {
    display: block;
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    pointer-events: none;
}

/* iOS Safari - agrandir les zones tactiles */
@supports (-webkit-touch-callout: none) {
    .job-modal-close {
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
        background: rgba(255,255,255,0.95);
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    
    .job-modal-nav {
        min-width: 48px;
        min-height: 48px;
        width: 48px;
        height: 48px;
        background: rgba(255,255,255,0.95);
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    
    .jobs-carousel-dot {
        min-width: 14px;
        min-height: 14px;
        width: 14px;
        height: 14px;
    }
}

/* Mobile Safari - boutons plus visibles */
@media (max-width: 767px) {
    .job-modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 44px;
        height: 44px;
        background: rgba(255,255,255,0.98);
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        border: 1px solid rgba(0,0,0,0.1);
    }
    
    .job-modal-nav {
        width: 44px;
        height: 44px;
        background: rgba(255,255,255,0.98);
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        border: 1px solid rgba(0,0,0,0.1);
    }
    
    .job-modal-prev {
        left: 0.5rem;
    }
    
    .job-modal-next {
        right: 0.5rem;
    }
}
