/* ========================================
    RDV PAGE - CSS PRINCIPAL
======================================== */

/* Base de la page RDV */
body, html {
    margin: 0;
    padding: 0;
    font-family: var(--body-font-family);
    background-color: var(--light-bg);
}

.rdv-page {
    position: relative;
    overflow-x: hidden;
}

.highlight {
    color: var(--secondary-color);
    font-family: var(--annotation-font-family);
    font-size: 60px;
    font-weight: var(--annotation-font-weight);
}

/* ========================================
    HERO SECTION
======================================== */

.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color-light);
    padding: 60px 0 60px 8%;
    position: relative;
    min-height: 500px;
    
    background-image: url('../images/bg/AdobeStock_199096818.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    flex-basis: 60%;
    padding-right: 30px;
    z-index: 10;
}

.hero-content h1 {
    font-family: var(--h1-font-family);
    font-size: 28px;
    font-weight: var(--h1-font-weight);
    line-height: 1.2;
    color: var(--text-color-light);
    margin-bottom: 15px;
}

.hero-content p {
    font-family: var(--body-font-family);
    font-size: 15px;
    font-weight: var(--body-font-weight);
    line-height: 1.4;
    max-width: 450px;
    color: var(--text-color-light);
}

.hero-image {
    flex-basis: 40%;
    text-align: right;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.hero-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    box-shadow: var(--shadow);
    object-fit: cover;
}

/* ========================================
    LAYOUT CONTAINER
======================================== */

.form-contact-layout {
    background-color: var(--light-bg);
    padding: 0 8%;
}

.layout-inner {
    max-width: 1400px;
    margin: 0 auto;
}

/* ========================================
    FORM SECTION
======================================== */

.form-column {
    padding: 0;
}

.form-section {
    display: flex;
    justify-content: center;
    margin-top: -100px;
    padding-bottom: 80px;
}

.form-card {
    background: #FEF3E7;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 50px 40px;
    width: 100%;
    max-width: 800px;
    position: relative;
    z-index: 10;
    transform: translateY(-20vh);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-family: var(--h2-font-family);
    font-size: 50px;
    font-weight: var(--h2-font-weight);
    line-height: 1.2;
    color: var(--dark-bg);
    margin-bottom: 15px;
}

.form-header p {
    font-family: var(--body-font-family);
    font-size: 15px;
    font-weight: var(--body-font-weight);
    color: var(--text-light);
    line-height: 1.4;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
    FORM ELEMENTS
======================================== */

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 25px;
}

.form-row .form-group {
    flex: 1;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-nunito);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 16px;
}

.required::after {
    content: ' *';
    color: var(--primary-color);
}

.form-control, .form-select {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid var(--text-light, #ccc); 
    border-radius: 10px;
    background: #fff;
    color: var(--text-dark);
    font-size: 16px;
    transition: var(--transition);
    font-family: var(--body-font-family);
    box-sizing: border-box;
}

.form-control::placeholder {
    color: var(--text-light);
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--secondary-color); 
    box-shadow: 0 0 0 1px var(--secondary-color);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.form-select option:disabled {
    color: #ccc !important;
    background-color: #f8f9fa;
}

.form-select option[disabled] {
    font-style: italic;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-control[type="number"] {
    text-align: right;
}

.money-field {
    position: relative;
}

.money-field::after {
    content: "€";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
    font-size: 16px; 
}

.form-control[type="date"] {
    position: relative;
}

.form-control[type="date"]:invalid {
    border-color: var(--primary-color); 
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

/* ========================================
    CHECKBOX SECTION
======================================== */

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
    text-align: left;
}

.form-check-input {
    margin: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--secondary-color);
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 2px;
    appearance: none;
    position: relative;
    transition: var(--transition);
}

.form-check-input:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.form-check-input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.form-check-label {
    font-family: var(--body-font-family);
    font-size: 15px;
    font-weight: var(--body-font-weight);
    line-height: 1.4;
    color: var(--text-dark);
    cursor: pointer;
}

/* ========================================
    BUTTONS & NAVIGATION
======================================== */

.form-navigation {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.btn-custom-primary {
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    background: var(--accent-gradient);
    color: var(--text-color-light);
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
    font-family: var(--font-nunito);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.btn-custom-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

/* ========================================
    ALERTS & MESSAGES
======================================== */

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    border: 2px solid rgba(25, 135, 84, 0.3);
    color: #198754;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
    text-align: center;
    font-family: var(--body-font-family);
}

.date-help {
    font-family: var(--legal-font-family);
    font-size: 14px;
    font-weight: var(--legal-font-weight);
    font-style: var(--legal-font-style);
    color: var(--text-light);
    margin-top: 5px;
}

.date-help .unavailable {
    color: var(--primary-color);
    font-weight: 600;
}

/* ========================================
    CONTACT INFO SECTION
======================================== */

.contact-column {
    padding: 0;
}

.contact-info-section {
    background-color: var(--light-bg);
    padding: 60px 8%; 
    text-align: center;
}

.contact-info-section h2 {
    font-family: var(--h2-font-family);
    font-size: 24px;
    font-weight: var(--h2-font-weight);
    color: var(--text-dark);
    margin-bottom: 40px;
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--secondary-color);
    flex-basis: 280px;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.contact-title {
    font-family: var(--h3-font-family);
    font-size: 20px;
    font-weight: var(--h3-font-weight);
    color: var(--text-dark);
    margin-bottom: 12px;
}

.contact-text {
    font-family: var(--body-font-family);
    font-size: 15px;
    font-weight: var(--body-font-weight);
    color: var(--text-light);
    line-height: 1.4;
    margin: 0;
}

/* ========================================
    RESPONSIVE - TABLET (768px - 1199px)
======================================== */

@media (max-width: 1199px) and (min-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
        min-height: 400px;
    }
    
    .hero-content {
        flex-basis: 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .hero-content h1 {
        font-size: 26px;
    }
    
    .hero-content p {
        font-size: 14px;
        max-width: 100%;
    }
    
    .hero-image {
        position: relative;
        flex-basis: 100%;
        right: 0;
        transform: none;
        margin-top: 20px;
    }
    
    .hero-image img {
        border-radius: var(--border-radius);
        max-width: 90%;
    }
    
    .form-contact-layout {
        padding: 0 5%;
    }
    
    .form-section {
        margin-top: -80px;
        padding-bottom: 60px;
    }
    
    .form-card {
        padding: 40px 30px;
        transform: translateY(-10vh);
    }
    
    .form-header h2 {
        font-size: 40px;
    }
    
    .form-header p {
        font-size: 14px;
    }

    .contact-info-section {
        padding: 50px 5%;
    }
    
    .contact-info-section h2 {
        font-size: 22px;
        margin-bottom: 30px;
    }
    
    .contact-cards {
        gap: 15px;
        flex-direction: row;
        justify-content: center;
    }
    
    .contact-card {
        flex-basis: 220px;
        padding: 30px 20px;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .contact-title {
        font-size: 18px;
    }
    
    .contact-text {
        font-size: 14px;
    }
}

/* ========================================
    RESPONSIVE - MOBILE (max 767px)
======================================== */

@media (max-width: 767px) {
    /* Hero Section Mobile */
    .hero-section {
        min-height: 350px;
        padding: 30px 5%;
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        flex-basis: 100%;
        padding-right: 0;
        margin-bottom: 20px;
    }

    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-content p {
        font-size: 14px;
        max-width: 100%;
    }
    
    .hero-image {
        position: relative;
        flex-basis: 100%;
        right: 0;
        transform: none;
        margin-top: 15px;
    }
    
    .hero-image img {
        max-width: 100%;
        border-radius: var(--border-radius);
    }
    
    /* Layout Mobile - Ordre inversé */
    .form-contact-layout {
        padding: 0 5%;
    }
    
    .layout-inner .row {
        display: flex;
        flex-direction: column;
    }
    
    /* Formulaire en premier sur mobile */
    .form-column {
        order: 1;
    }
    
    /* Contact cards en second sur mobile */
    .contact-column {
        order: 2;
    }
    
    .form-section {
        margin-top: -60px;
        padding-bottom: 40px;
    }

    .form-card {
        padding: 30px 20px;
        transform: translateY(-30px);
    }
    
    .form-header h2 {
        font-size: 32px;
    }
    
    .form-header p {
        font-size: 14px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .highlight {
        font-size: 40px;
    }
    
    /* Contact Section Mobile - Cards horizontales */
    .contact-info-section {
        padding: 40px 5%;
    }
    
    .contact-info-section h2 {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .contact-cards {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .contact-card {
        flex: 0 0 auto;
        width: 180px;
        padding: 25px 15px;
        margin-bottom: 0;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .contact-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .contact-text {
        font-size: 13px;
        line-height: 1.3;
    }
}

/* ========================================
    RESPONSIVE - SMALL MOBILE (max 480px)
======================================== */

@media (max-width: 480px) {
    .hero-section {
        padding: 25px 4%;
        min-height: 300px;
    }
    
    .hero-content h1 {
        font-size: 22px;
    }
    
    .hero-content p {
        font-size: 13px;
    }
    
    .form-contact-layout {
        padding: 0 4%;
    }
    
    .form-section {
        margin-top: -40px;
        padding-bottom: 30px;
    }

    .form-card {
        padding: 25px 15px;
        transform: translateY(-20px);
    }
    
    .form-header h2 {
        font-size: 28px;
    }
    
    .form-header p {
        font-size: 13px;
    }
    
    .highlight {
        font-size: 35px;
    }
    
    .form-label {
        font-size: 15px;
    }
    
    .form-control, .form-select {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .btn-custom-primary {
        padding: 15px 30px;
        font-size: 16px;
        width: 100%;
    }
    
    /* Contact Section Small Mobile */
    .contact-info-section {
        padding: 30px 4%;
    }
    
    .contact-info-section h2 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .contact-cards {
        gap: 8px;
    }
    
    .contact-card {
        width: 160px;
        padding: 20px 12px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .contact-title {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .contact-text {
        font-size: 12px;
    }
}