:root {
    --primary-color: #0056b3;
    /* Deep Medical Blue */
    --secondary-color: #00a8cc;
    /* Cyan/Tech Blue */
    --accent-color: #28a745;
    /* Safety Green */
    --dark-color: #1a1a1a;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --text-color: #333333;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    /* Adjust based on logo aspect ratio */
}

.nav-links a {
    margin-left: 30px;
    font-weight: 500;
    color: var(--dark-color);
}

.nav-links .btn {
    margin-left: 20px;
    padding: 10px 25px;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(to right, #f0f8ff, #ffffff);
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.badge {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--accent-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.trust-indicators {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #555;
}

.trust-indicators i {
    color: var(--accent-color);
    margin-right: 5px;
}

/* Partners */
.partners {
    padding: 40px 0;
    text-align: center;
    background-color: var(--white);
    border-bottom: 1px solid #eee;
}

.partners p {
    margin-bottom: 20px;
    color: #888;
    font-weight: 500;
}

.partners img {
    max-width: 100%;
    height: auto;
    opacity: 0.8;
    filter: grayscale(100%);
    transition: all 0.3s;
}

.partners img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Features */
.features {
    padding: 100px 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    border-radius: 15px;
    background-color: var(--white);
    border: 1px solid #eee;
    transition: all 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.feature-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
}

/* Comparison */
.comparison {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.comparison-wrapper {
    display: flex;
    gap: 50px;
    align-items: center;
}

.comparison-text {
    flex: 1;
}

.comparison-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.benefits-list {
    list-style: none;
    margin: 30px 0;
}

.benefits-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.benefits-list i {
    color: var(--accent-color);
    margin-right: 10px;
}

.comparison-table-container {
    flex: 1;
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    font-weight: 600;
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.comparison-table .highlight-col {
    background-color: rgba(0, 86, 179, 0.05);
    color: var(--primary-color);
}

/* Proof */
.proof {
    padding: 100px 0;
}

.proof-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-direction: row-reverse;
}

.proof-image {
    flex: 1;
}

.proof-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 5px solid var(--white);
}

.proof-text {
    flex: 1;
}

.proof-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.proof-text blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    margin: 20px 0;
}

.citation {
    font-weight: 600;
    color: var(--dark-color);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.cta-card {
    display: flex;
    gap: 50px;
    align-items: center;
}

.cta-text {
    flex: 1;
}

.cta-text h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.cta-form {
    flex: 1;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 50px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: #aaa;
    margin-left: 20px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copy {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {

    .hero-content,
    .comparison-wrapper,
    .proof-content,
    .cta-card {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .trust-indicators {
        justify-content: center;
    }

    .proof-content {
        flex-direction: column;
    }

    .navbar .nav-links {
        display: none;
        /* Simple mobile hide for now */
    }
}

/* Optional Image Slots */
.optional-image-slot {
    margin-top: 20px;
    min-height: 10px;
    transition: all 0.3s;
}

.optional-image-slot img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

/* Admin Mode Styles for Slots */
body.admin-mode .optional-image-slot {
    border: 2px dashed #ccc;
    padding: 20px;
    background: rgba(0, 0, 0, 0.02);
    cursor: pointer;
    position: relative;
    min-height: 60px;
}

body.admin-mode .optional-image-slot:hover {
    border-color: var(--primary-color);
    background: rgba(0, 86, 179, 0.05);
}

body.admin-mode .optional-image-slot::after {
    content: "📸 Ajouter/Changer Photo";
    display: block;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

body.admin-mode .optional-image-slot:has(img)::after {
    content: "📸 Changer Photo";
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
}
/* Exit Intent Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.popup-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: slideUp 0.4s ease-out;
    border: 4px solid var(--primary-color);
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s;
}

.close-popup:hover {
    color: #333;
}

.popup-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.popup-body h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.guide-title {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 25px;
    background: #f0f8ff;
    padding: 10px;
    border-radius: 10px;
    border: 1px dashed var(--primary-color);
}

.btn-link {
    background: none;
    border: none;
    color: #888;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 15px;
    font-size: 0.9rem;
}

.btn-link:hover {
    color: #555;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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