/* Variables CSS - Couleurs extraites du logo docteur-it.ch */
:root {
    --primary-color: #1e3a5f;        /* Bleu marine du logo */
    --primary-dark: #152d47;         /* Bleu marine plus foncé */
    --secondary-color: #7ed321;      /* Vert vif du logo */
    --accent-blue: #2196F3;          /* Bleu clair du logo */
    --text-dark: #1e3a5f;            /* Même que primary pour cohérence */
    --text-light: #5a6c7d;
    --bg-light: #f5f8fa;
    --bg-white: #ffffff;
    --border-color: #e1e8ed;
    --success-color: #7ed321;        /* Vert du logo */
    --shadow-sm: 0 1px 2px 0 rgb(30 58 95 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(30 58 95 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(30 58 95 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(30 58 95 / 0.1);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 60px;
    width: auto;
    background: transparent;
    mix-blend-mode: multiply;
}

/* Force transparent background for all SVG images */
img[src$=".svg"] {
    background: transparent;
}

.site-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-link {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: transparent;
    transition: all 0.3s ease;
}

.lang-link:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.lang-link.active {
    background: var(--primary-color);
    color: white !important;
    border-color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 15px rgba(126, 211, 33, 0.3);
}

.btn:hover {
    background: #6bc01a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(126, 211, 33, 0.4);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: none;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
}

.btn-primary:hover {
    background: #6bc01a;
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-blue) 100%);
    color: white;
    padding: 4rem 0 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(126, 211, 33, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-logo {
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
}

.hero-logo-img {
    max-width: 450px;
    width: 90%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

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

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.35rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.feature-badge {
    background: rgba(126, 211, 33, 0.25);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.95rem;
    border: 1px solid rgba(126, 211, 33, 0.4);
    font-weight: 500;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--accent-blue) 100%);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 1rem 1.5rem 2.5rem 1.5rem;
    min-height: 410px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, #2e7d32 0%, #66bb6a 50%, #81c784 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 0rem;
}

.service-icon img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.75rem;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.service-click-hint {
    font-size: 0.875rem;
    color: white !important;
    font-weight: 600;
    margin-top: auto;
    margin-bottom: 0;
    text-align: center;
    background: var(--primary-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
}

.service-card p:last-of-type:not(.service-click-hint) {
    margin-bottom: 1.5rem;
}

.service-card:hover .service-click-hint {
    background: var(--secondary-color);
}

/* Zone d'intervention */
.zone-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.zone-principale {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.zone-principale h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.zone-ville {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.zone-autres {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.zone-autres h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.communes-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.communes-list li {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: 6px;
    border-left: 3px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.communes-list li:hover {
    background: rgba(126, 211, 33, 0.1);
    border-left-color: var(--accent-blue);
    transform: translateX(5px);
}

.zone-note {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    font-style: italic;
}

/* Tarifs */
.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.tarif-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border-top: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.tarif-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(126, 211, 33, 0.2);
    border-top-color: var(--accent-blue);
}

.tarif-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.prix {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tarifs-note {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

.brochure-download {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    transition: all 0.3s ease;
}

.brochure-download:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

/* Contact Section */
.section-contact {
    background: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.contact-icon {
    font-size: 2rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-item p {
    color: var(--text-light);
}

/* Formulaire */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-links p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 0rem 0;
    }

    .logo {
        height: 55px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 45px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 400px;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 0.75rem;
    }

    .lang-switcher {
        justify-content: center;
        width: 100%;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .services-grid,
    .tarifs-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(30, 58, 95, 0.9);
    animation: fadeIn 0.3s ease;
}

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

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

.modal-content {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    max-width: 600px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideIn 0.4s ease;
    overflow: hidden;
}

.modal-close {
    color: var(--text-light);
    float: right;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    right: 20px;
    top: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1000;
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
    background: var(--bg-white);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    position: relative;
}

.modal-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.modal-logo {
    height: 60px;
    width: auto;
}

.modal-site-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: white;
}

.modal-body {
    padding: 2rem;
}

.modal-body h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
}

.modal-offers {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.modal-offers li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.modal-offers li:hover {
    background: var(--bg-light);
    padding-left: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-right: 1rem;
    border-radius: 8px;
}

.modal-offers li:last-child {
    border-bottom: none;
}

.modal-offers li strong {
    color: var(--text-dark);
    font-weight: 600;
    flex: 1;
}

.modal-note {
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.1) 0%, rgba(126, 211, 33, 0.05) 100%);
    border-left: 4px solid var(--secondary-color);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Service cards hover effect */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% 15px;
        max-width: calc(100% - 30px);
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.modal-logo {
    height: 60px;
    width: auto;
}

.modal-site-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}
    
    .modal-header h2 {
        font-size: 1.4rem;
    }
    
    .modal-offers li {
        flex-direction: column;
        gap: 0.25rem;
    }
}
