/* Styles spécifiques pour la page Expertises Retraite */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
    position: relative;
}

/* Solution améliorée pour le fond fixe sur tous les appareils */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, 
        #4a90e2 0%, 
        #357abd 40%, 
        #2c7cc4 65%, 
        #f8faff 65%, 
        #f8faff 100%);
    z-index: -1;
    pointer-events: none;
}

/* Floating elements animation */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: floating 20s infinite ease-in-out;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: -7s;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 70%;
    animation-delay: -14s;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

/* Classes pour les couleurs adaptatives */
.adaptive-title {
    transition: color 0.3s ease;
}

.force-white { 
    color: white !important; 
}

.force-blue { 
    color: #4a90e2 !important; 
}

/* Amélioration des transitions pour les éléments de prix */
.price-box .price,
.price-box .price-detail {
    transition: color 0.3s ease;
}

/* Gestion des couleurs pour la box avantages */
.advantages-box h2 {
    color: white;
    transition: color 0.3s ease;
}

.advantages-box li {
    color: white;
    transition: color 0.3s ease;
}

/* Navigation */
.nav-header {
    background: white;
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #4a90e2;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.back-button {
    color: #4a90e2;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
    margin-left: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #4a90e2;
    position: relative;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Tooltips */
.back-button[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
    padding: 6px 12px;
    background: white;
    color: #4a90e2;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    pointer-events: none;
    opacity: 0;
    animation: tooltipFadeIn 0.2s ease-in-out forwards;
}

.back-button[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 2px;
    border: 6px solid transparent;
    border-bottom-color: white;
    z-index: 1001;
    pointer-events: none;
    opacity: 0;
    animation: tooltipFadeIn 0.2s ease-in-out forwards;
    filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.1));
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.container {
    margin: 0;
    padding: 0;
}

/* Header Section */
.hero-section {
    color: white;
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-left h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 15px;
}

.hero-left .subtitle {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 25px;
    opacity: 0.95;
}

.form-group input[type="radio"] {
    width: auto;
}

.hero-left .description {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Gestion des couleurs pour les éléments du hero */
.hero-section h1,
.hero-section .subtitle,
.hero-section .description {
    transition: color 0.3s ease;
}

.discover-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    bottom: 20px;
    width: calc(100% - 20px);
    left: 10px;
}

.discover-btn:hover {
    background: #357abd;
    transform: translateY(-2px);
}

.price-box {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 1.5rem;
    padding: 20px 25px;
    display: inline-block;
}

.price-box h2 {
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 2rem;
}

.full {
    width: 100%;
}

.price {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -1px;
    transition: color 0.3s ease;
}

.price-detail {
    font-size: 1rem;
    opacity: 0.9;
    transition: color 0.3s ease;
}

.hero-right h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: white;
}

.advantages-list {
    list-style: none;
}

.advantages-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Target Audience Section */
.target-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.target-card {
    background: #f0f4f8;
    border-radius: 15px;
    padding: 40px 30px 30px;
    text-align: left;
    position: relative;
}

.target-icon {
    width: 50px;
    height: 50px;
    background: #4a90e2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 24px;
    color: white;
}

.target-card h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.3;
}

.target-list {
    list-style: none;
}

.target-list li {
    margin-bottom: 15px;
    padding-left: 35px;
    position: relative;
    color: #495057;
    font-size: 1rem;
    line-height: 1.5;
}

.target-list li::before {
    content: "i";
    background: rgb(37 99 235);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 14px;
    font-weight: bold;
    font-style: italic;
}

.px-6 {
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

/* Main Content */
.main-content {
    padding: 30px 0;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.section {
    margin-bottom: 50px;
}

.section h2 {
    color:#4a90e2;
    font-weight: 700;
    font-size: 2.25rem;
    line-height: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
    transition: color 0.3s ease;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.benefit-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    text-align: left;
    position: relative;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: #4a90e2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 24px;
    color: white;
}

.benefit-card h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.benefit-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.benefit-list {
    list-style: none;
    margin-bottom:80px;
}

.benefit-list li {
    margin-bottom: 12px;
    position: relative;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Contact Form */
.contact-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
    margin: 40px 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.form-group select,
.form-group textarea,
.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group select:focus,
.form-group textarea:focus,
.form-group input:focus {
    outline: none;
    border-color: #4a90e2;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
    margin: 30px auto 0;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 30px;
    border: none;
    border-radius: 20px;
    width: 95%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.modal h2 {
    color: #1a237e;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.modal-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.modal-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.modal-features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.modal-features li .icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.modal-features li .icon.check {
    background: #2ecc71;
    color: white;
    border-radius: 50%;
}

.modal-features li .icon.cross {
    color: #e74c3c;
    font-size: 20px;
}

.modal-features li .icon.clock {
    color: #8e44ad;
    font-size: 18px;
}

.modal-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    color: #856404;
    font-weight: bold;
}

.modal-warning .lock-icon {
    margin-right: 8px;
}

/* Calendar Styles */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav button {
    background: #4285f4;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.calendar-nav button:hover {
    background: #3367d6;
}

.calendar-nav button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.month-year {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.calendar {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.calendar th,
.calendar td {
    width: 14.28%;
    height: 40px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #e0e0e0;
}

.calendar th {
    background: #f5f5f5;
    font-weight: bold;
    color: #666;
    font-size: 14px;
}

.calendar td {
    cursor: pointer;
    position: relative;
    font-size: 14px;
}

.calendar .other-month {
    color: #ccc;
    background: #fafafa;
}

.calendar .past-date {
    color: #ccc;
    background: #f9f9f9;
    cursor: not-allowed;
}

.calendar .available-day {
    background: #e8f5e8;
    color: #2e7d32;
    font-weight: bold;
}

.calendar .available-day:hover {
    background: #c8e6c9;
}

.calendar .selected-day {
    background: #4285f4 !important;
    color: white !important;
}

.time-slots {
    display: none;
    margin-top: 20px;
}

.time-slots.active {
    display: block;
}

.time-slots h4 {
    margin-bottom: 15px;
    color: #1a237e;
    text-align: center;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.time-slot {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.time-slot:hover {
    border-color: #4285f4;
    background: #f0f7ff;
}

.time-slot.selected {
    background: #4285f4;
    color: white;
    border-color: #4285f4;
}

.time-slot.unavailable {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #ddd;
}

.selected-appointment {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    display: none;
}

.selected-appointment.show {
    display: block;
}

.selected-appointment h4 {
    color: #2e7d32;
    margin-bottom: 10px;
}

.modal-pay-btn {
    background: #4285f4;
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: block;
    margin: 30px auto 20px;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.modal-pay-btn:hover {
    background: #3367d6;
}

.modal-pay-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.modal-footer {
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* Utility Classes */
.gradient-bg {
    background:#4a90e2;
    padding-top: 4em;
    padding-bottom: 4em;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.p-8 {
    padding: 2rem;
}

.bg-white\/10 {
    background-color: rgb(255 255 255 / 0.1);
}

.bg-white {
    background-color: rgb(255 255 255);
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-blue-200 {
    color: rgb(191 219 254);
}

.text-blue-100 {
    color: rgb(219 234 254);
}

.text-blue-600 {
    color: rgb(37 99 235);
}

.bg-blue-50 {
    background-color: rgb(239 246 255);
}

.combined-section h2 {
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 3rem;
    line-height: 3.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .price {
        font-size: 1.7rem;
    }
    
    .hero-section {
        padding: 20px 0;
    }
    
    .hero-left h1 {
        margin-bottom: 20px;
        font-size: 2.5rem;
    }
    
    .hero-left .subtitle {
        font-size: 1.5rem;
    }
    
    .hero-left .description {
        margin-bottom: 20px;
    }

    .logo {
        font-size: 1.1rem;
    }

    .back-button {
        padding: 8px;
        margin-left: 8px;
    }

    /* Masquer les tooltips sur mobile */
    .back-button[data-tooltip]:hover::after,
    .back-button[data-tooltip]:hover::before {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .target-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Responsive pour la section 3 colonnes */
    .combined-section div[style*="grid-template-columns: 1fr 1fr 1fr"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Responsive pour le calendrier */
    .modal-content {
        margin: 2% auto;
        width: 95%;
        max-width: 600px;
        padding: 20px;
    }
    
    .calendar-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .calendar th, .calendar td {
        height: 35px;
        font-size: 12px;
    }
    
    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-content {
        padding: 20px;
    }
    
    .section h2 {
        color: #2c3e50;
        font-weight: 700;
        font-size: 2rem;
        line-height: 2.5rem;
        margin-bottom: 2.5rem;
        text-align: center;
    }
	
	.section .px-6 {
		padding-left: 0 !important;
		padding-right: 0 !important;
	  }
}

/* Animation pour le message de confirmation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}