/* ==========================================
   CONTACT PAGE — OCEANE MAQUIGNON
   ========================================== */

@import url('https://use.typekit.net/iqg8vxu.css');

/* Force thin font rendering globally for contact form */
.contact-form-oceane,
.contact-form-oceane *,
.contact-form-oceane input,
.contact-form-oceane textarea,
.contact-form-oceane select {
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    font-synthesis: none !important;
    text-rendering: optimizeLegibility !important;
}

/* Contact Hero with Background */
.contact-hero-bg {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.contact-hero-bg .hero-overlay {
    background: rgba(0, 0, 0, 0.4);
}

/* Nouveau style spécifique pour le wrapper du formulaire de contact */
.contact-form-wrapper {
    position: relative;
    z-index: 10;
    width: 70%;
    max-width: 1200px;
    background: transparent;
    padding: 40px;
    text-align: center;
    max-height: 100vh;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.contact-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Message d'erreur global */
.form-error-global {
    margin-bottom: 30px;
    text-transform: uppercase;
    text-align: center;
    font-family: "orpheuspro", serif;
    font-style: normal;
    font-weight: 400;
    font-size: 40px;
    color: #111111;
    line-height: 1.1;
}

/* Form Style - Inline Text with Inputs */
.contact-form-oceane {
    font-family: "orpheuspro", serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: 24px;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0;
}

/* Centrer le formulaire au milieu de l'écran sans positionnement absolu */
.form-part#formPart1 {
    width: 100%;
    max-width: 800px;
    margin: 140px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.form-sentence {
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}

/* Wrapper pour les inputs avec erreurs */
.input-wrapper {
    display: inline-block;
    position: relative;
}

/* Message d'erreur sous les champs */
.field-error {
    font-family: "din-2014", sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #a95d4f;
    text-transform: uppercase;
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    margin-top: 4px;
}

/* Champ en erreur */
.form-input.error {
    border-bottom-color: #a95d4f !important;
}

.textarea-input.error {
    border-color: #a95d4f !important;
}

.form-text {
    font-family: "orpheuspro", serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: 28px !important;
    color: #fff !important;
    line-height: 1.1 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

/* Inline Inputs */
.form-input {
    font-family: "din-2014", sans-serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: 18px !important;
    color: #a95d4f !important;
    text-align: center;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    padding: 4px 8px;
    outline: none;
    transition: all 0.3s ease;
    line-height: 1.1 !important;
    text-transform: none !important;
    letter-spacing: 0.5px;
}

.inline-input {
    display: inline-block;
    min-width: 150px;
    max-width: 250px;
    position: relative;
}

.wide-input {
    min-width: 280px;
    max-width: 350px;
    position: relative;
}

.full-width-input {
    min-width: 300px;
    max-width: 600px;
    width: 100%;
    position: relative;
}

.form-input:focus {
    border-bottom-color: #fff;
    background: transparent;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-style: normal;
    font-size: 15px;
    text-transform: none;
}

/* Select Styling */
select.form-input {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 16px;
    padding-right: 30px;
    background-color: rgba(255, 255, 255, 0.1);
}

select.form-input option {
    background: #333;
    color: #fff;
}

/* Date Input */
input[type="date"].form-input {
    min-width: 180px;
}

/* Textarea */
.textarea-input {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    resize: vertical;
    min-height: 80px;
    max-height: 80px;
    line-height: 1.2;
    background: transparent;
    color: #fff !important;
    font-family: "din-2014", sans-serif !important;
    font-size: 20px !important;
    font-weight: 300 !important;
    text-transform: none !important;
    letter-spacing: 0.5px;
}

.textarea-input::placeholder {
    font-size: 20px;
    font-style: normal;
    text-transform: none;
}

.textarea-input:focus {
    border-color: #fff;
    background: transparent;
}

/* Submit Button */
.form-submit {
    margin-top: 40px;
    text-align: center;
}

/* Lien "Suivant" avec flèche */
.next-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.next-link:hover {
    transform: translateY(3px);
}

.arrow-down {
    font-size: 32px;
    color: #a95d4f;
    animation: bounce-arrow 2s infinite;
    line-height: 1;
}

.next-text {
    font-family: "din-2014", sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a95d4f;
    transition: color 0.3s ease;
}

.next-link:hover .next-text {
    color: #8a4a3f;
}

.next-link:hover .arrow-down {
    color: #8a4a3f;
}

@keyframes bounce-arrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

.form-submit-multi {
    display: flex;
    gap: 60px;
    justify-content: center;
    align-items: center;
}

/* Lien "Précédent" avec flèche vers le haut */
.prev-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-link:hover {
    transform: translateY(-3px);
}

.arrow-up {
    font-size: 32px;
    color: #a95d4f;
    animation: bounce-arrow-up 2s infinite;
    line-height: 1;
}

.prev-text {
    font-family: "din-2014", sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a95d4f;
    transition: color 0.3s ease;
}

.prev-link:hover .prev-text {
    color: #8a4a3f;
}

.prev-link:hover .arrow-up {
    color: #8a4a3f;
}

@keyframes bounce-arrow-up {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(8px);
    }
    60% {
        transform: translateY(4px);
    }
}

/* Lien "Envoyer" avec flèche vers le bas */
.submit-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-link:hover {
    transform: translateY(3px);
}

.submit-text {
    font-family: "din-2014", sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a95d4f;
    transition: color 0.3s ease;
}

.submit-link:hover .submit-text {
    color: #8a4a3f;
}

.submit-link:hover .arrow-down {
    color: #8a4a3f;
}

/* CTA Buttons - Style from index page */
.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #a95d4f;
    color: #fff;
    text-decoration: none;
    font-family: "din-2014", sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background-color: #8b4a3d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(169, 93, 79, 0.4);
}

.cta-button-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
}

.cta-button-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Success Message */
.success-message {
    display: none;
    padding: 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    margin-top: 20px;
    font-family: "din-2014", sans-serif;
    font-size: 16px;
}

.success-message.show {
    display: block;
}

/* Image de fond spécifique pour la page contact */
.hero-bg-contact {
    object-position: center 40% !important;
}

/* Responsive Tablette */
@media (max-width: 1024px) {
    .contact-form-wrapper {
        width: 85%;
    }
}

/* Responsive Mobile et petites tablettes - Fond noir */
@media (max-width: 768px) {
    .contact-hero-bg {
        padding: 80px 15px 15px;
        background: #000 !important;
    }
    
    .contact-hero-bg .hero-background {
        display: none !important;
    }
    
    .contact-hero-bg .hero-overlay {
        display: none !important;
    }

    .contact-form-wrapper {
        width: 90%;
        padding: 30px 20px;
        max-height: calc(100vh - 110px);
        background: #000;
        overflow-y: auto;
    }

    .contact-container {
        padding: 0;
    }

    .contact-form-oceane {
        font-size: 18px;
        line-height: 1.3;
    }

    .form-text {
        font-size: 18px;
        line-height: 1.3;
    }

    .form-input {
        font-size: 18px;
        line-height: 1.3;
    }
    
    .form-input::placeholder {
        font-size: 14px;
    }
    
    .textarea-input {
        font-size: 16px;
        min-height: 60px;
        max-height: 60px;
    }
    
    .textarea-input::placeholder {
        font-size: 14px;
    }

    .form-sentence {
        margin-bottom: 12px;
        gap: 6px;
    }
    
    .form-submit {
        margin-top: 25px;
    }
    
    .form-error-global {
        font-size: 24px;
        padding: 15px;
    }
    
    .arrow-down {
        font-size: 28px;
    }
    
    .next-text {
        font-size: 14px;
    }
    
    .form-submit-multi {
        flex-direction: column;
        gap: 30px;
    }
    
    .prev-text,
    .submit-text {
        font-size: 14px;
    }
    
    .arrow-up {
        font-size: 28px;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 12px;
        width: 100%;
        max-width: 250px;
    }

    .inline-input {
        min-width: 120px;
        max-width: 200px;
    }

    .wide-input {
        min-width: 240px;
        max-width: 100%;
        width: 100%;
    }
    
    .full-width-input {
        min-width: 200px;
        max-width: 100%;
        width: 100%;
    }

    input[type="date"].form-input {
        min-width: 140px;
    }
}

/* Responsive Mobile moyen - 600px à 480px */
@media (max-width: 600px) {
    .contact-hero-bg {
        padding: 70px 12px 12px;
    }

    .contact-form-wrapper {
        padding: 25px 15px;
        max-height: calc(100vh - 95px);
    }

    .contact-form-oceane {
        font-size: 16px;
        line-height: 1.2;
        margin-bottom: 18px;
    }

    .form-text {
        font-size: 16px;
        line-height: 1.2;
    }

    .form-input {
        font-size: 16px;
        line-height: 1.2;
        padding: 2px 4px;
    }
    
    .form-input::placeholder {
        font-size: 12px;
    }
    
    .textarea-input {
        font-size: 14px;
        min-height: 50px;
        max-height: 50px;
        padding: 5px;
    }
    
    .textarea-input::placeholder {
        font-size: 12px;
    }

    .inline-input {
        min-width: 100px;
        max-width: 160px;
    }

    .wide-input {
        min-width: 120px;
        max-width: 180px;
    }
    
    .form-sentence {
        margin-bottom: 8px;
        gap: 4px;
    }
    
    .form-submit {
        margin-top: 15px;
    }
    
    .form-submit-multi {
        gap: 20px;
    }
    
    .cta-button {
        padding: 10px 25px;
        font-size: 11px;
    }
    
    .arrow-down, .arrow-up {
        font-size: 24px;
    }
    
    .next-text, .prev-text, .submit-text {
        font-size: 12px;
    }
}

/* Responsive Petit mobile - 480px à 360px */
@media (max-width: 480px) {
    .contact-hero-bg {
        padding: 60px 10px 10px;
    }

    .contact-form-wrapper {
        padding: 20px 10px;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .contact-form-oceane {
        font-size: 14px;
        line-height: 1.1;
        margin-bottom: 15px;
    }

    .form-text {
        font-size: 14px;
        line-height: 1.1;
    }

    .form-input {
        font-size: 14px;
        line-height: 1.1;
        padding: 2px 3px;
    }
    
    .form-input::placeholder {
        font-size: 11px;
    }
    
    .textarea-input {
        font-size: 13px;
        min-height: 45px;
        max-height: 45px;
        padding: 4px;
    }
    
    .textarea-input::placeholder {
        font-size: 11px;
    }

    .inline-input {
        min-width: 85px;
        max-width: 140px;
    }

    .wide-input {
        min-width: 95px;
        max-width: 130px;
    }
    
    .form-sentence {
        margin-bottom: 7px;
        gap: 3px;
        flex-wrap: wrap;
    }
    
    .form-submit {
        margin-top: 10px;
    }
    
    .form-submit-multi {
        gap: 15px;
        flex-direction: column;
    }
    
    .cta-button {
        padding: 9px 22px;
        font-size: 10px;
    }
    
    .arrow-down, .arrow-up {
        font-size: 22px;
    }
    
    .next-text, .prev-text, .submit-text {
        font-size: 11px;
    }
}

/* Custom Select - Menu déroulant personnalisé */
.custom-select-wrapper {
    display: inline-block;
    position: relative;
    min-width: 200px;
    max-width: 280px;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 32px;
}

.custom-select-trigger:hover {
    border-bottom-color: #fff;
}

.custom-select-trigger.active {
    border-bottom-color: #fff;
}

.custom-select-value {
    font-family: "din-2014", sans-serif !important;
    font-size: 18px !important;
    color: #a95d4f !important;
    text-align: left;
    flex: 1;
    line-height: 1.1 !important;
    text-transform: none !important;
    letter-spacing: 0.5px;
}

.custom-select-value.placeholder {
    color: #D9D8D8 !important;
    font-style: normal;
    font-size: 15px !important;
}

.custom-select-arrow {
    font-family: "din-2014", sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.custom-select-trigger.active .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.custom-select-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.select-group:last-child {
    border-bottom: none;
}

.select-group-title {
    font-family: "orpheuspro", serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 16px 8px;
    background: rgba(169, 93, 79, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.select-option {
    font-family: "din-2014", sans-serif !important;
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    line-height: 1.3;
}

.select-option:hover {
    background: rgba(169, 93, 79, 0.3);
    color: #fff !important;
    border-left-color: #a95d4f;
}

.select-option.selected {
    background: rgba(169, 93, 79, 0.4);
    color: #a95d4f !important;
    border-left-color: #a95d4f;
    font-weight: 500;
}

/* Scrollbar personnalisée pour le menu */
.custom-select-options::-webkit-scrollbar {
    width: 6px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: rgba(169, 93, 79, 0.6);
    border-radius: 3px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
    background: rgba(169, 93, 79, 0.8);
}

/* Responsive pour le menu déroulant */
@media (max-width: 768px) {
    .custom-select-wrapper {
        min-width: 240px;
        max-width: 100%;
    }
    
    .custom-select-value {
        font-size: 18px !important;
    }
    
    .custom-select-value.placeholder {
        font-size: 14px !important;
    }
    
    .select-group-title {
        font-size: 13px !important;
        padding: 10px 12px 6px;
    }
    
    .select-option {
        font-size: 15px !important;
        padding: 8px 12px;
    }
    
    .custom-select-options {
        max-height: 250px;
    }
}

@media (max-width: 600px) {
    .custom-select-wrapper {
        min-width: 120px;
        max-width: 180px;
    }
    
    .custom-select-value {
        font-size: 16px !important;
    }
    
    .custom-select-value.placeholder {
        font-size: 12px !important;
    }
    
    .select-group-title {
        font-size: 12px !important;
        padding: 8px 10px 5px;
    }
    
    .select-option {
        font-size: 14px !important;
        padding: 6px 10px;
    }
    
    .custom-select-options {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .custom-select-wrapper {
        min-width: 85px;
        max-width: 140px;
    }
    
    .custom-select-value {
        font-size: 14px !important;
    }
    
    .custom-select-value.placeholder {
        font-size: 11px !important;
    }
    
    .select-group-title {
        font-size: 11px !important;
        padding: 6px 8px 4px;
    }
    
    .select-option {
        font-size: 13px !important;
        padding: 5px 8px;
    }
    
    .custom-select-options {
        max-height: 180px;
    }
}

@media (max-width: 360px) {
    .custom-select-wrapper {
        min-width: 70px;
        max-width: 110px;
    }
    
    .custom-select-value {
        font-size: 12px !important;
    }
    
    .custom-select-value.placeholder {
        font-size: 9px !important;
    }
    
    .select-group-title {
        font-size: 10px !important;
        padding: 5px 6px 3px;
    }
    
    .select-option {
        font-size: 12px !important;
        padding: 4px 6px;
    }
    
    .custom-select-options {
        max-height: 150px;
    }
}

/* Responsive Très petit mobile - 360px et moins */
@media (max-width: 360px) {
    .contact-hero-bg {
        padding: 50px 8px 8px;
    }

    .contact-form-wrapper {
        padding: 15px 8px;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .contact-form-oceane {
        font-size: 12px;
        line-height: 1.0;
        margin-bottom: 12px;
    }

    .form-text {
        font-size: 12px;
        line-height: 1.0;
    }

    .form-input {
        font-size: 12px;
        line-height: 1.0;
        padding: 1px 2px;
    }
    
    .form-input::placeholder {
        font-size: 9px;
    }
    
    .textarea-input {
        font-size: 11px;
        min-height: 35px;
        max-height: 35px;
        padding: 3px;
    }
    
    .textarea-input::placeholder {
        font-size: 9px;
    }

    .inline-input {
        min-width: 70px;
        max-width: 110px;
    }

    .wide-input {
        min-width: 80px;
        max-width: 110px;
    }
    
    .form-sentence {
        margin-bottom: 5px;
        gap: 2px;
        flex-wrap: wrap;
    }
    
    .form-submit {
        margin-top: 8px;
    }
    
    .form-submit-multi {
        gap: 10px;
        flex-direction: column;
    }
    
    .cta-button {
        padding: 7px 18px;
        font-size: 9px;
    }
    
    .arrow-down, .arrow-up {
        font-size: 18px;
    }
    
    .next-text, .prev-text, .submit-text {
        font-size: 10px;
    }
}
