﻿/* =================== BASE STYLES =================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.1);
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9ff;
}

img {
    height: auto;
    max-width: 100%;
    display: block;
}

/* =================== HEADER =================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* =================== DROPDOWN NAVIGATION =================== */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    min-width: 200px;
    max-width: 280px;
    width: max-content;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    top: 100%;
    margin-top: 5px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
    z-index: 999;
}

.dropdown-content a {
    color: #333;
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content a:hover {
    background: #f8f9ff;
    color: #667eea;
    transform: translateX(5px);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content:hover {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.login-btn {
    background: white;
    color: #667eea;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* =================== HERO SECTION =================== */

.hero {
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    padding: 0 50px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="200" cy="200" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="800" cy="400" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="600" cy="700" r="4" fill="rgba(255,255,255,0.1)"/><circle cx="100" cy="800" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s infinite linear;
}

.hero-content h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideInLeft 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    animation: slideInLeft 1s ease 0.2s both;
}

/* =================== PAGE LAYOUTS =================== */

.banner {
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    padding: 0 50px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.page-title {
    padding: 30px 50px 0;
    text-align: right;
}

.page-title h2 {
    font-size: 2rem;
    color: #667eea;
    font-weight: bold;
}

.main-content {
    min-height: calc(100vh - 80px);
}

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 50px 60px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.content-section {
    padding: 80px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* =================== SECTION CARDS =================== */

.section-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e6ff;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease;
    will-change: transform, opacity;
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.section-title {
    font-size: 2.2rem;
    color: #667eea;
    margin-bottom: 25px;
    font-weight: bold;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
    display: inline-block;
}

/* =================== REVIEWS SECTION =================== */

.reviews {
    padding: 100px 50px;
    background: #f8f9ff;
}

.reviews h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 60px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e6ff;
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.reviewer-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.profile-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    margin-right: 15px;
}

.reviewer-details h4 {
    color: #333;
    margin-bottom: 5px;
}

.stars {
    color: #ffd700;
    font-size: 1.2rem;
}

.review-text {
    color: #666;
    font-style: italic;
    line-height: 1.6;
}

/* =================== EDITABLE CONTENT =================== */

.editable-content {
    background: #f8f9ff;
    border: 2px dashed #bdc3c7;
    border-radius: 10px;
    padding: 30px;
    margin: 20px 0;
    min-height: 150px;
    position: relative;
    transition: all 0.3s ease;
}

.editable-content:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.placeholder-text {
    color: #7f8c8d;
    font-style: italic;
    line-height: 1.8;
}

.edit-hint {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #667eea;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* =================== STATS AND VALUES =================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.stat-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.value-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #e0e6ff;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
}

.value-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.value-title {
    font-size: 1.4rem;
    color: #667eea;
    margin-bottom: 15px;
    font-weight: bold;
}

/* =================== TEAM SECTION =================== */

.team-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #e0e6ff 100%);
    padding: 80px 50px;
    margin: 60px 0;
    border-radius: 20px;
}

/* =================== PROFESSORS SECTION =================== */

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.intro-text p {
    margin-bottom: 20px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.filter-btn {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.filter-btn.active {
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.profs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.prof-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    border: 2px solid #e0e6ff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.prof-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.prof-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.prof-photo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.prof-initial {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.prof-info {
    text-align: center;
}

.prof-name {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: bold;
}

.prof-subject {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.prof-level {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.prof-rating {
    margin-bottom: 15px;
}

.rating-text {
    color: #666;
    font-size: 0.9rem;
}

.prof-description {
    color: #666;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.prof-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 25px;
}

.badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.contact-prof-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-prof-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* =================== RECRUITMENT SECTION =================== */

.recruitment-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    max-width: 1200px;
    width: 100%;
    margin: 40px auto;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.recruitment-section h2,
.recruitment-section h3,
.recruitment-section h4,
.recruitment-section p,
.recruitment-section li,
.recruitment-section span,
.recruitment-section .section-title {
    color: white !important;
}

.recruitment-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.recruitment-text h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.recruitment-text p {
    line-height: 1.7;
    margin-bottom: 20px;
}

.requirements-list {
    list-style: none;
    padding: 0;
}

.requirements-list li {
    margin-bottom: 10px;
    font-size: 1rem;
}

.recruitment-cta {
    text-align: center;
}

.recruitment-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.recruitment-btn:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3);
}

.recruitment-note {
    font-weight: 600;
    font-size: 0.9rem;
}

/* =================== CONTACT FORMS =================== */

.contact-quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.quick-info-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e6ff;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.quick-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.quick-info-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    flex-shrink: 0;
}

.quick-info-details h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.quick-info-details p {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.quick-info-details a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.quick-info-details a:hover {
    text-decoration: underline;
}

.availability {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
}

.form-description {
    color: #666;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-form,
.candidature-form {
    max-width: none;
}

.form-section {
    background: #f8f9ff;
    border: 2px solid #e0e6ff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.form-section-title {
    color: #667eea;
    font-size: 1.4rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
    font-weight: bold;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.form-group input:valid {
    border-color: #27ae60;
}

.form-group input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #e74c3c;
}

.form-group input:required:invalid {
    border-color: #e74c3c;
}

.form-group input:required:valid {
    border-color: #27ae60;
}

.form-group select:required:invalid {
    border-color: #e74c3c;
}

.form-group select:required:valid {
    border-color: #27ae60;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
    font-style: italic;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23667eea" d="M2 0L0 2h4zM2 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
}

.form-group input:hover:not(:focus),
.form-group select:hover:not(:focus),
.form-group textarea:hover:not(:focus) {
    border-color: #bbb;
}

.field-help {
    display: block;
    color: #888;
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 8px;
    line-height: 1.4;
}

.form-group select[multiple] {
    min-height: 120px;
    padding: 8px;
}

.form-group select[multiple] option {
    padding: 5px;
    border-radius: 3px;
    margin: 1px 0;
}

.form-group select[multiple] option:checked {
    background: #667eea;
    color: white;
}

/* =================== CHECKBOX GROUPS =================== */

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.checkbox-label:hover {
    background: rgba(102, 126, 234, 0.1);
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #667eea;
}

.checkbox-text {
    font-size: 0.95rem;
    color: #555;
}

.days-grid,
.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.day-checkbox,
.hour-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.day-checkbox:hover,
.hour-checkbox:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.day-checkbox input:checked+.checkbox-text,
.hour-checkbox input:checked+.checkbox-text {
    color: #667eea;
    font-weight: 600;
}

.day-checkbox input[type="checkbox"],
.hour-checkbox input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #667eea;
}

/* =================== BUTTONS =================== */

.back-btn {
    display: inline-flex;
    align-items: center;
    background: #667eea;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.back-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-submit {
    text-align: center;
    margin-top: 40px;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    will-change: transform, opacity;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-btn:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.form-note {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
}

/* =================== OTHER CONTACT OPTIONS =================== */

.other-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.other-contact-card {
    background: white;
    border: 2px solid #e0e6ff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.other-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.other-contact-card h3 {
    color: #667eea;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.other-contact-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.other-contact-card small {
    display: block;
    color: #888;
    font-size: 0.8rem;
    margin-top: 10px;
}

.contact-link {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* =================== FAQ SECTIONS =================== */

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.faq-item {
    background: white;
    border: 2px solid #e0e6ff;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.faq-item h4 {
    color: #667eea;
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: bold;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* =================== PRICING SECTION =================== */

.pricing-main {
    position: relative;
    overflow: hidden;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    border: 3px solid #e0e6ff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
    will-change: transform, opacity;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.pricing-card.standard {
    border-color: #667eea;
}

.pricing-card.urgence {
    border-color: #764ba2;
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
}

.pricing-card.urgence:hover {
    background: linear-gradient(135deg, #fff 0%, #f0f4ff 100%);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: -10px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 8px 25px;
    font-size: 0.9rem;
    font-weight: bold;
    transform: rotate(10deg);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
}

.pricing-header h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 15px;
}

.price-amount {
    font-size: 4rem;
    font-weight: bold;
    color: #667eea;
    line-height: 1;
    animation: pulse 2s infinite;
}

.price-currency {
    font-size: 1.5rem;
    color: #667eea;
    font-weight: bold;
    margin: 0 8px;
}

.price-period {
    font-size: 1.2rem;
    color: #888;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.pricing-features li {
    padding: 12px 0;
    color: #555;
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s ease;
}

.pricing-features li:hover {
    color: #667eea;
}

.pricing-note {
    text-align: center;
    padding: 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    margin-top: 20px;
}

.pricing-note p {
    color: #667eea;
    font-weight: 600;
    margin: 0;
    font-style: italic;
}

/* =================== PAYMENT OPTIONS =================== */

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.payment-card {
    background: white;
    border: 2px solid #e0e6ff;
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.payment-card.recommended {
    border-color: #27ae60;
    background: linear-gradient(135deg, #fff 0%, #f8fff8 100%);
}

.payment-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.payment-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-card h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.payment-description {
    color: #666;
    font-style: italic;
    margin-bottom: 25px;
}

.payment-details p {
    color: #555;
    margin-bottom: 10px;
    line-height: 1.6;
}

.payment-example,
.payment-examples {
    background: rgba(102, 126, 234, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.payment-examples p,
.payment-example p {
    color: #667eea;
    font-weight: 600;
    margin: 5px 0;
}

/* =================== CONDITIONS =================== */

.conditions-card {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3c4 100%);
    border: 2px solid #ffc107;
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.condition-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
}

.condition-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
}

.condition-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.condition-item h4 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.condition-item p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* =================== COST SIMULATOR =================== */

.cost-simulator {
    background: linear-gradient(135deg, #f8f9ff 0%, #e0e6ff 100%);
    border-radius: 20px;
    padding: 40px;
    margin-top: 30px;
}

.simulator-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.input-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.input-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.simulator-result {
    text-align: center;
    background: white;
    border-radius: 15px;
    padding: 30px;
    border: 3px solid #667eea;
}

.result-display {
    margin-bottom: 15px;
}

.result-label {
    display: block;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.result-amount {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
}

.result-details {
    color: #888;
    font-style: italic;
}

/* =================== FAQ TARIFS =================== */

.faq-tarifs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.faq-item-tarif {
    background: white;
    border: 2px solid #e0e6ff;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.faq-item-tarif:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.faq-item-tarif h4 {
    color: #667eea;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.faq-item-tarif p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* =================== CTA SECTIONS =================== */

.cta-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-card .section-title {
    color: white;
    border-bottom-color: white;
}

.cta-content p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-btn.primary {
    background: white;
    color: #667eea;
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3);
}

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

.cta-btn.secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
}

.cta-guarantee {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    font-size: 0.95rem;
    margin: 0;
}

/* =================== CONTACT QUICK =================== */

.contact-quick {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    text-align: center;
}

.contact-quick .section-title {
    color: white;
    border-bottom-color: white;
}

.contact-quick p {
    opacity: 0.95;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.contact-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-btn:hover {
    background: white;
    color: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.contact-note {
    opacity: 0.9;
    font-style: italic;
    font-size: 0.9rem;
    margin: 0;
}

/* =================== MODAL =================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px 20px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.booking-summary {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid #e0e6ff;
}

.booking-summary p {
    margin: 8px 0;
    color: #555;
}

.booking-summary strong {
    color: #667eea;
}

.booking-form .form-group {
    margin-bottom: 20px;
}

.booking-form label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    background: #f8f9ff;
    border-radius: 0 0 20px 20px;
}

.btn-cancel,
.btn-confirm {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: #95a5a6;
    color: white;
}

.btn-cancel:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.btn-confirm {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* =================== FILTERS =================== */

.filters-container {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    align-items: end;
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9ff;
    border-radius: 15px;
    border: 2px solid #e0e6ff;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.filter-select {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.apply-filters-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.apply-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.professors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.professor-card {
    background: white;
    border: 2px solid #e0e6ff;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.professor-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.professor-card.selected {
    border-color: #667eea;
    background: #f8f9ff;
}

/* =================== CANDIDATURE SECTION =================== */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.benefit-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #e0e6ff;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-item h3 {
    color: #667eea;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.benefit-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.candidature-form .form-section {
    background: #f8f9ff;
    border: 2px solid #e0e6ff;
    border-radius: 15px;
    padding: 35px;
    margin-bottom: 35px;
}

.candidature-form .form-section-title {
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
    font-weight: bold;
}

.candidature-form .checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.candidature-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: white;
}

.candidature-form .checkbox-label:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.candidature-form .checkbox-label:has(input:checked) {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.candidature-form .checkbox-label input[type="checkbox"]:checked+.checkbox-text {
    color: #667eea;
    font-weight: 600;
}

.candidature-form .checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 2px;
    transform: scale(1.3);
    accent-color: #667eea;
    flex-shrink: 0;
    background-color: #667eea;
}

.candidature-form .checkbox-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
}

.candidature-form .form-group input,
.candidature-form .form-group select,
.candidature-form .form-group textarea {
    padding: 15px 18px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.candidature-form .form-group input:focus,
.candidature-form .form-group select:focus,
.candidature-form .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.candidature-form .form-group label {
    color: #333;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.candidature-form textarea {
    min-height: 120px;
    resize: vertical;
}

.candidature-form .form-group label:after {
    content: " *";
    color: #e74c3c;
    font-weight: bold;
}

.candidature-form .form-group label:not([for*="nom"]):not([for*="prenom"]):not([for*="email"]):not([for*="telephone"]):not([for*="ville"]):not([for*="niveau-etudes"]):not([for*="domaine-etudes"]):not([for*="experience-enseignement"]):not([for*="motivation"]):after {
    content: "";
}

.candidature-form .form-group input:required:valid,
.candidature-form .form-group select:required:valid {
    border-color: #27ae60;
}

.candidature-form .form-group input:required:invalid:not(:placeholder-shown),
.candidature-form .form-group select:required:invalid {
    border-color: #e74c3c;
}

.candidature-form .form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23667eea" d="M2 0L0 2h4zM2 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 45px;
}

.candidature-form .submit-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 20px 60px;
    border-radius: 35px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.candidature-form .submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(39, 174, 96, 0.4);
}

/* =================== NEXT STEPS =================== */

.next-steps {
    background: linear-gradient(135deg, #f8f9ff 0%, #e0e6ff 100%);
    border: 2px solid #667eea;
}

.steps-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px 15px 0 0;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 25px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.step-content h4 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.step-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* =================== SUBJECTS SELECTION =================== */

.subjects-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.subjects-selection .checkbox-label {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.subjects-selection .checkbox-label:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.subjects-selection .checkbox-label:has(input:checked) {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.15);
}

.subjects-selection .checkbox-text {
    font-weight: 500;
    color: #555;
}

.subjects-selection .checkbox-label:has(input:checked) .checkbox-text {
    color: #667eea;
    font-weight: 600;
}

.subjects-selection-inline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.subjects-selection-inline .checkbox-label {
    padding: 8px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.subjects-selection-inline .checkbox-label:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.subjects-selection-inline .checkbox-label:has(input:checked) {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.15);
}

.subjects-selection-inline .checkbox-text {
    font-weight: 500;
    color: #555;
    font-size: 0.85rem;
}

.subjects-selection-inline .checkbox-label:has(input:checked) .checkbox-text {
    color: #667eea;
    font-weight: 600;
}

.subjects-selection-inline input[type="checkbox"] {
    margin-right: 6px;
    transform: scale(0.9);
}

/* =================== DIRECTOR PRESENTATION =================== */

.director-presentation {
    padding: 100px 50px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e0e6ff 100%);
}

.director-container {
    max-width: 1200px;
    margin: 0 auto;
}

.director-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
}

.director-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.director-initial {
    font-size: 4rem;
    color: white;
    font-weight: bold;
}

.director-info h2 {
    color: #667eea;
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 300;
}

.director-info h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.director-title {
    color: #667eea;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.director-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.director-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: scale(1.05);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* =================== FOOTER =================== */

.footer {
    background: #2c3e50;
    color: white;
    padding: 50px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    color: #95a5a6;
}

/* =================== ANIMATIONS =================== */

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

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

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    from {
        transform: translateY(0px);
    }

    to {
        transform: translateY(-100px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes blockFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }

    to {
        opacity: 0.8;
        transform: translateY(0) scale(1);
    }
}

/* =================== FOCUS STATES FOR ACCESSIBILITY =================== */

button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* =================== RESPONSIVE DESIGN =================== */

@media (max-width: 1200px) {
    .calendar-grid {
        grid-template-columns: 70px repeat(7, 1fr);
        font-size: 0.9rem;
    }

    .time-slot {
        font-size: 0.8rem;
    }

    .day-header {
        font-size: 0.8rem;
    }
}

@media (max-width: 968px) {
    .calendar-grid {
        grid-template-columns: 60px repeat(7, 1fr);
        font-size: 0.8rem;
    }

    .availability-block {
        font-size: 10px;
    }

    .instructions-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-btn {
        width: 250px;
        text-align: center;
    }
}

@media (max-width: 768px) {

    /* Header */
    .header {
        padding: 0 15px;
        height: 70px;
    }

    .logo {
        font-size: 24px;
    }

    .dropdown-content {
        right: -10px;
        left: 10px;
        width: calc(100vw - 40px);
        max-width: 280px;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
        opacity: 1;
        transform: translateY(0);
        animation: fadeInDown 0.3s ease;
    }

    .dropdown-btn {
        padding: 15px 25px;
        font-size: 18px;
    }

    /* Hero */
    .hero {
        padding: 0 15px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Page layout */
    .banner {
        padding: 0 20px;
    }

    .page-title {
        padding: 20px 20px 0;
        text-align: center;
    }

    .page-title h2 {
        font-size: 1.5rem;
    }

    .page-header {
        padding: 60px 20px 40px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .content-section {
        padding: 40px 15px;
    }

    .section-card {
        padding: 25px 20px;
        margin-bottom: 25px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    /* Forms */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 15px 12px;
        font-size: 16px;
        border-radius: 8px;
        box-sizing: border-box;
        -webkit-appearance: none;
        appearance: none;
    }

    .form-section {
        padding: 20px 15px !important;
        margin-bottom: 20px;
    }

    .form-section-title {
        font-size: 1.3rem !important;
        margin-bottom: 20px;
    }

    /* Checkboxes */
    .days-grid,
    .hours-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px;
    }

    .day-checkbox,
    .hour-checkbox {
        padding: 10px 8px !important;
        font-size: 0.9rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        background: white;
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.1);
        cursor: pointer;
        position: relative;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }

    .day-checkbox:active,
    .hour-checkbox:active {
        background: rgba(102, 126, 234, 0.1);
        border-color: #667eea;
        transform: scale(0.98);
    }

    .day-checkbox:has(input:checked),
    .hour-checkbox:has(input:checked) {
        background: rgba(102, 126, 234, 0.15);
        border-color: #667eea;
        color: #667eea;
        font-weight: 600;
    }

    .day-checkbox input[type="checkbox"],
    .hour-checkbox input[type="checkbox"] {
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        width: 20px !important;
        height: 20px !important;
        border: 2px solid #667eea !important;
        border-radius: 4px !important;
        background: white !important;
        position: relative !important;
        margin-right: 10px !important;
        flex-shrink: 0 !important;
        cursor: pointer !important;
        min-width: 20px !important;
        min-height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
    }

    .day-checkbox input[type="checkbox"]:checked,
    .hour-checkbox input[type="checkbox"]:checked {
        background: #667eea !important;
        border-color: #667eea !important;
    }

    .day-checkbox input[type="checkbox"]:checked::after,
    .hour-checkbox input[type="checkbox"]:checked::after {
        content: "✓" !important;
        position: absolute !important;
        top: -2px !important;
        left: 2px !important;
        color: white !important;
        font-size: 14px !important;
        font-weight: bold !important;
        line-height: 1 !important;
    }

    .day-checkbox .checkbox-text,
    .hour-checkbox .checkbox-text {
        font-size: 0.9rem;
        line-height: 1.2;
        color: inherit;
        user-select: none;
        -webkit-user-select: none;
        pointer-events: none;
    }

    /* Buttons */
    .submit-btn {
        width: 100%;
        padding: 18px 20px;
        font-size: 1.1rem;
        margin-top: 20px;
        min-height: 56px;
    }

    .contact-btn {
        width: 100%;
        min-height: 48px;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    button,
    input[type="submit"],
    input[type="checkbox"],
    input[type="radio"],
    select,
    .checkbox-label,
    .contact-btn,
    .back-btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* Grids */
    .checkbox-group {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .checkbox-label {
        padding: 12px 10px !important;
    }

    .other-contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .profs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .prof-card {
        padding: 25px 20px;
    }

    .filter-buttons {
        justify-content: center;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .recruitment-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .prof-initial {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    /* Reviews */
    .reviews {
        padding: 50px 15px;
    }

    .footer {
        padding: 30px 15px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    /* Specific pages */
    .quick-info-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .quick-info-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .pricing-card {
        padding: 30px 25px;
    }

    .price-amount {
        font-size: 3rem;
    }

    .payment-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .conditions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .simulator-inputs {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cost-simulator {
        padding: 30px 25px;
    }

    .faq-tarifs {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 250px;
        text-align: center;
    }

    /* Calendar */
    .calendar-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .week-nav {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .calendar-grid {
        grid-template-columns: 50px repeat(7, 1fr);
        font-size: 0.7rem;
    }

    .time-slot,
    .day-header {
        font-size: 0.7rem;
        padding: 5px;
    }

    .hour-slot {
        height: 50px;
    }

    .time-slots {
        height: 400px;
    }

    .availability-block {
        font-size: 9px;
    }

    .legend-item {
        font-size: 0.8rem;
    }


    /* Modal */
    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }

    .btn-cancel,
    .btn-confirm {
        width: 100%;
    }

    /* Filters */
    .filters-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .professors-grid {
        grid-template-columns: 1fr;
    }

    /* Benefits and candidature */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefit-item {
        padding: 25px 20px;
    }

    .candidature-form .form-section {
        padding: 25px 20px;
    }

    .candidature-form .checkbox-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .candidature-form .checkbox-label {
        display: flex !important;
        align-items: center !important;
        padding: 12px 10px !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 8px !important;
        background: white !important;
        cursor: pointer !important;
        min-height: 44px !important;
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.1) !important;
    }

    .candidature-form .checkbox-label:active {
        background: rgba(102, 126, 234, 0.1) !important;
        border-color: #667eea !important;
    }

    .candidature-form .checkbox-label input[type="checkbox"] {
        -webkit-appearance: none !important;
        appearance: none !important;
        width: 20px !important;
        height: 20px !important;
        border: 2px solid #667eea !important;
        border-radius: 4px !important;
        background: white !important;
        margin-right: 10px !important;
        flex-shrink: 0 !important;
        position: relative !important;
    }

    .candidature-form .checkbox-label input[type="checkbox"]:checked {
        background: #667eea !important;
        border-color: #667eea !important;
    }

    .candidature-form .checkbox-label input[type="checkbox"]:checked::after {
        content: "✓" !important;
        position: absolute !important;
        top: -2px !important;
        left: 2px !important;
        color: white !important;
        font-size: 14px !important;
        font-weight: bold !important;
    }

    .candidature-form .checkbox-text {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
        color: #555 !important;
        flex: 1 !important;
    }

    .candidature-form .checkbox-label:has(input:checked) {
        background: rgba(102, 126, 234, 0.1) !important;
        border-color: #667eea !important;
    }

    .candidature-form .checkbox-label:has(input:checked) .checkbox-text {
        color: #667eea !important;
        font-weight: 600 !important;
    }

    .candidature-form .form-group input,
    .candidature-form .form-group select,
    .candidature-form .form-group textarea {
        width: 100% !important;
        padding: 15px 12px !important;
        font-size: 16px !important;
        border: 2px solid #ddd !important;
        border-radius: 8px !important;
        background: white !important;
        -webkit-appearance: none;
        -moz-appearance: textfield;
        appearance: none;
    }

    .candidature-form textarea {
        min-height: 100px !important;
        resize: vertical !important;
    }

    .candidature-form select {
        background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23667eea" d="M2 0L0 2h4zM2 5L0 3h4z"/></svg>') !important;
        background-repeat: no-repeat !important;
        background-position: right 12px center !important;
        background-size: 12px !important;
        padding-right: 35px !important;
    }

    .candidature-form .submit-btn {
        width: 100% !important;
        min-height: 52px !important;
        padding: 16px 20px !important;
        font-size: 1.1rem !important;
        border-radius: 26px !important;
    }

    .steps-timeline {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .step-item {
        padding: 25px 20px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    /* Director */
    .director-presentation {
        padding: 60px 20px;
    }

    .director-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .director-photo {
        width: 150px;
        height: 150px;
    }

    .director-initial {
        font-size: 3rem;
    }

    .director-stats {
        justify-content: center;
        gap: 30px;
    }

    /* Subject selections */
    .subjects-selection {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .subjects-selection .checkbox-label {
        padding: 12px 10px;
        font-size: 0.9rem;
    }

    .subjects-selection-inline {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .subjects-selection-inline .checkbox-label {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {

    /* Header iPhone specific */
    .dropdown-content {
        right: 0 !important;
        left: auto !important;
        width: 200px !important;
        max-width: 200px !important;
        margin-top: 8px !important;
    }

    .header {
        padding: 0 10px !important;
    }

    .logo {
        font-size: 20px !important;
    }

    /* Hero iPhone specific */
    .hero-content h1 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }

    .page-header h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .section-card {
        padding: 20px 15px !important;
        margin-bottom: 20px !important;
    }

    /* Forms iPhone specific */
    .hours-grid {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }

    .hour-checkbox {
        padding: 12px 10px !important;
        font-size: 0.9rem;
        min-height: 48px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        background: white;
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.1);
    }

    .hour-checkbox .checkbox-text {
        font-size: 0.9rem;
        line-height: 1.2;
    }

    .days-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px;
    }

    .day-checkbox {
        min-height: 44px;
        padding: 10px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        background: white;
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.1);
    }

    .form-section {
        padding: 15px 12px !important;
        margin-bottom: 15px !important;
        border-radius: 12px;
    }

    .form-section-title {
        font-size: 1.2rem !important;
        margin-bottom: 15px;
    }

    .form-group textarea {
        min-height: 100px;
        resize: vertical;
        font-size: 16px;
    }

    .form-group select {
        background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23667eea" d="M2 0L0 2h4zM2 5L0 3h4z"/></svg>');
        background-repeat: no-repeat;
        background-position: right 15px center;
        background-size: 12px;
        padding-right: 40px;
    }

    /* Candidature iPhone specific */
    .candidature-form .form-section {
        padding: 15px 12px !important;
        margin-bottom: 15px !important;
    }

    .candidature-form .checkbox-label {
        padding: 10px 8px !important;
        min-height: 42px !important;
    }

    .candidature-form .checkbox-text {
        font-size: 0.85rem !important;
    }

    .benefits-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .benefit-item {
        padding: 20px 15px !important;
    }

    .benefit-icon {
        font-size: 2.5rem !important;
        height: 60px !important;
    }

    .steps-timeline {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .step-item {
        padding: 20px 15px !important;
    }

    .step-number {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.3rem !important;
    }

    /* Other iPhone specific */
    .pricing-card {
        padding: 25px 20px;
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .payment-card {
        padding: 25px 20px;
    }

    .condition-item {
        padding: 20px;
    }

    .result-amount {
        font-size: 2.5rem;
    }

    .prof-selector {
        font-size: 1rem;
        padding: 12px 15px;
    }

    .instructions-grid {
        grid-template-columns: 1fr;
    }

    .calendar-grid {
        font-size: 0.6rem;
    }

    .availability-block {
        font-size: 8px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .subjects-selection {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .subjects-selection-inline {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* =================== ACCESSIBILITY & PERFORMANCE =================== */

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    font-size: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 8px;
}

@supports not selector(:has(input)) {

    .day-checkbox input[type="checkbox"]:checked+.checkbox-text,
    .hour-checkbox input[type="checkbox"]:checked+.checkbox-text {
        color: #667eea !important;
        font-weight: 600 !important;
    }
}

@supports (-webkit-touch-callout: none) {

    .day-checkbox,
    .hour-checkbox {
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }

    .day-checkbox input[type="checkbox"],
    .hour-checkbox input[type="checkbox"] {
        transform: scale(1) !important;
        zoom: 1 !important;
    }

    .candidature-form .checkbox-label {
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }
}

@media (hover: none) {

    .section-card:hover,
    .pricing-card:hover,
    .prof-card:hover {
        transform: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .submit-btn:hover {
        transform: none;
    }

    button:active {
        transform: scale(0.98);
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {

    .section-card,
    .prof-card,
    .review-card {
        animation: none;
        opacity: 1;
        transform: none;
    }

    * {
        transition-duration: 0.2s !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    /* Optimizations for Retina displays if needed */
}

/* =================== AGENDA RESPONSIVE =================== */

@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .calendar-grid {
        grid-template-columns: 80px repeat(3, 1fr);
        font-size: 12px;
    }

    .time-slot {
        height: 60px;
        font-size: 11px;
    }

    .week-nav {
        flex-direction: column;
        gap: 15px;
    }

    .professors-grid {
        grid-template-columns: 1fr;
    }

    .agenda-container {
        padding: 15px;
    }

    .filter-section,
    .calendar-section,
    .instructions {
        padding: 20px;
        margin-bottom: 20px;
    }
}

/* =================== PAGE CONTACT GÉNÉRAL - SPÉCIFIQUE =================== */
.quick-actions {
    background: linear-gradient(135deg, #f8f9ff 0%, #e0e6ff 100%);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.action-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: all 0.3s ease;
}

.action-card.primary::before {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.action-card.secondary::before {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.action-card.tertiary::before {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
}

.action-card.primary .action-btn {
    background: #667eea;
    color: white;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: #f8f9ff;
    border-radius: 15px;
    border: 2px solid #e0e6ff;
}

.contact-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.emergency-card {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3c4 100%);
    border: 2px solid #ffc107;
}

.emergency-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: center;
    margin-top: 30px;
}

/* =================== PAGE DEMANDE COURS - SPÉCIFIQUE =================== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.process-step {
    text-align: center;
    padding: 25px;
    background: #f8f9ff;
    border-radius: 15px;
    border: 2px solid #e0e6ff;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.quick-contact {
    text-align: center;
    background: #f0f8f0;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #27ae60;
}

.guarantee {
    color: #27ae60;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 10px 0 0 0;
}

/* =================== PAGE PROFESSEURS - SPÉCIFIQUE =================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-photo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.modal-name {
    font-size: 2rem;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

.modal-section {
    margin-bottom: 25px;
}

.details-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

/* =================== AGENDA PAGE STYLES - VERSION NETTOYÉE =================== */

/* Container principal agenda */
.agenda-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Section filtres */
.filter-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    align-items: end;
    max-width: 800px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 16px;
}

.filter-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23667eea" d="M2 0L0 2h4zM2 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
}

.filter-select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Section professeurs */
.professors-section {
    margin-bottom: 30px;
}

.professors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.prof-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    text-align: center;
}

.prof-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.prof-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: white;
    margin: 0 auto 20px;
}

.prof-name {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 10px;
    color: #2c3e50;
}

.prof-subjects {
    font-size: 16px;
    color: #7f8c8d;
    text-align: center;
    margin: 0 0 15px;
    line-height: 1.5;
}

.prof-rating {
    text-align: center;
    font-size: 14px;
    color: #f39c12;
    margin-bottom: 20px;
}

.prof-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}

.prof-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Section calendrier */
.calendar-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* Navigation semaine */
.week-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

.week-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}

.week-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.week-display {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    flex: 1;
}

/* Grille calendrier */
.calendar-grid {
    display: grid;
    grid-template-columns: 100px repeat(6, 1fr);
    gap: 2px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.calendar-header {
    background: #2c3e50;
    color: white;
    padding: 20px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.day-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.day-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
}

.day-date {
    font-size: 24px;
    font-weight: 800;
}

.time-label {
    background: #34495e;
    color: white;
    padding: 25px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-slot {
    background: #f8f9fa;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.time-slot.available {
    cursor: pointer;
    color: white;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.time-slot.available:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.time-slot.available:active {
    transform: scale(0.95);
    opacity: 0.8;
}

/* Légende */
.legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
}

.legend-color {
    width: 25px;
    height: 25px;
    border-radius: 6px;
    flex-shrink: 0;
}

.legend-available {
    background: #28a745;
}

.legend-unavailable {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
}

/* Instructions */
.instructions {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.instruction-card {
    text-align: center;
    padding: 25px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s ease;
}

.instruction-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.instruction-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 15px;
}

.instruction-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px;
}

.instruction-text {
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 14px;
}

/* États cachés */
.hidden {
    display: none !important;
}

/* =================== RESPONSIVE DESIGN =================== */

@media (max-width: 768px) {
    .agenda-container {
        padding: 15px;
    }

    .filter-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .filter-section,
    .calendar-section,
    .instructions {
        padding: 20px;
        margin-bottom: 20px;
    }

    .calendar-grid {
        grid-template-columns: 80px repeat(3, 1fr);
        font-size: 12px;
    }

    .time-slot {
        height: 60px;
        font-size: 11px;
    }

    .week-nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .week-display {
        font-size: 16px;
        order: -1;
    }

    .professors-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .instructions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .legend {
        flex-direction: column;
        gap: 15px;
        text-align: left;
    }

    .legend-item {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .agenda-container {
        padding: 10px 5px;
    }

    .filter-section {
        padding: 15px 10px;
    }

    .filter-btn {
        width: 100%;
        margin-top: 10px;
    }

    .calendar-section {
        padding: 15px 10px;
        overflow-x: auto;
    }

    .calendar-grid {
        grid-template-columns: 60px repeat(3, 1fr);
        font-size: 10px;
        min-width: 320px;
    }

    .time-slot {
        height: 50px;
        font-size: 9px;
        padding: 2px;
    }

    .time-label {
        padding: 8px 4px;
        font-size: 10px;
    }

    .day-header {
        padding: 8px 4px;
        font-size: 11px;
    }

    .day-name {
        font-size: 10px;
        margin-bottom: 2px;
    }

    .day-date {
        font-size: 14px;
    }

    .week-nav {
        padding: 15px;
        margin-bottom: 15px;
    }

    .week-btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .week-display {
        font-size: 14px;
    }

    .prof-avatar {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .prof-name {
        font-size: 18px;
    }

    .prof-subjects {
        font-size: 14px;
    }

    .instruction-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .instruction-title {
        font-size: 16px;
    }

    .instruction-text {
        font-size: 13px;
    }

    .legend-item {
        font-size: 14px;
    }

    .legend-color {
        width: 20px;
        height: 20px;
    }

    /* Améliorations tactiles */
    .prof-btn,
    .filter-btn,
    .week-btn,
    .time-slot.available {
        min-height: 44px;
        min-width: 44px;
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }

    .prof-btn:active,
    .filter-btn:active,
    .week-btn:active {
        transform: scale(0.98);
        opacity: 0.8;
    }
}
