/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

main {
    flex: 1;
}

section {
    padding: 5rem 0;
}



/* ============================================
   TYPOGRAPHY & COMPONENTS
   ============================================ */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a5276;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #27ae60;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 1.5rem auto 0;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #1a5276 0%, #27ae60 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(26, 82, 118, 0.3);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 82, 118, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

.btn i {
    margin-right: 8px;
}

/* ============================================
   HEADER & NAVIGATION - AMÉLIORÉ
   ============================================ */
header {
    background-color: #1a5276;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Logo amélioré */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo-link:hover {
    text-decoration: none;
    opacity: 0.9;
}

.logo {
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.logo-text h1 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Contact info header */
.header-contact {
    margin-right: auto;
    margin-left: 2rem;
    display: none;
}

.header-contact .phone-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.header-contact .phone-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: #aed6f1;
}

/* Main Navigation */
nav {
    flex: 1;
}

#mainNav ul {
    display: flex;
    list-style: none;
    justify-content: center;
}

#mainNav ul li {
    margin: 0 0.8rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 4px;
    position: relative;
}

.nav-link:hover {
    color: #aed6f1;
    background-color: rgba(255,255,255,0.1);
}

.nav-link.active {
    color: #27ae60 !important;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

/* Language Switcher amélioré */
.language-switcher {
    position: relative;
    margin-left: 1.5rem;
}

.lang-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.2);
}

.lang-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: none;
    min-width: 120px;
    z-index: 1001;
    margin-top: 5px;
}

.lang-options.show {
    display: block;
}

.lang-options a {
    display: block;
    padding: 0.8rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background 0.3s;
    border-bottom: 1px solid #eee;
}

.lang-options a:last-child {
    border-bottom: none;
}

.lang-options a:hover {
    background: #f5f5f5;
    color: #1a5276;
}

/* Client Access amélioré */
.client-access {
    margin-left: 1.5rem;
    display: flex;
    align-items: center;
}

.client-space-btn {
    background: rgba(39, 174, 96, 0.8);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.client-space-btn:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

.client-space-btn.mobile-only {
    display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.menu-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(rgba(26, 82, 118, 0.85), rgba(26, 82, 118, 0.85)), 
                url('https://images.unsplash.com/photo-1586023492125-27b2c045efd7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 5rem 0;
    position: relative;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    border-top: 4px solid #27ae60;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.service-icon {
    font-size: 2.5rem;
    color: #1a5276;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: #1a5276;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.service-card ul {
    list-style-type: none;
    text-align: left;
}

.service-card ul li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-card ul li:before {
    content: "✓";
    color: #27ae60;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery {
    background-color: #f0f7ff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    height: 250px;
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* ============================================
   APPOINTMENT SECTION
   ============================================ */
.appointment {
    background: linear-gradient(135deg, #1a5276 0%, #2c7fb8 100%);
    color: white;
}

.appointment .section-title h2,
.appointment .section-title p {
    color: white;
}

.appointment-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.appointment-form {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.appointment-info {
    padding-right: 1rem;
}

.appointment-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.appointment-info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1a5276;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 2rem;
    color: #1a5276;
    margin-bottom: 1.2rem;
}

.contact-card h3 {
    color: #1a5276;
    margin-bottom: 1rem;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page {
    min-height: 60vh;
    padding: 4rem 0;
}

.legal-content {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-top: 2rem;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    color: #1a5276;
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eaeaea;
}

.legal-section h3 {
    color: #1a5276;
    margin: 1.5rem 0 0.8rem;
    font-size: 1.2rem;
}

.legal-section p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.legal-section ul {
    margin: 1rem 0 1rem 2rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-section address {
    font-style: normal;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.legal-section address p {
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: #1a5276;
    text-decoration: none;
    transition: color 0.3s;
}

.legal-section a:hover {
    color: #27ae60;
    text-decoration: underline;
}

/* Cookie Policy Table */
.table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

th {
    background-color: #f0f7ff;
    font-weight: 600;
    color: #1a5276;
    border-bottom: 2px solid #1a5276;
}

tr:hover {
    background-color: #f8f9fa;
}

tr:last-child td {
    border-bottom: none;
}

/* ============================================
   FOOTER - AMÉLIORÉ AVEC ICÔNES
   ============================================ */
/* ========== FOOTER STYLES ========== */
footer {
    background-color: #0d3a5c;
    color: white;
    padding: 4rem 0 1.5rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.7rem;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #27ae60;
}

.footer-section p {
    margin-bottom: 1.2rem;
    color: #aed6f1;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-section p i {
    width: 20px;
    text-align: center;
    margin-top: 2px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #aed6f1;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0;
}

.footer-section ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-section ul li a i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: #27ae60;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #aed6f1;
}

.copyright-links {
    margin-top: 0.5rem;
}

.copyright-links a {
    color: #aed6f1;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s;
    font-size: 0.85rem;
}

.copyright-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Back to Top */
.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
}

.back-to-top:hover {
    background: #3498db;
    transform: translateY(-2px);
    color: white;
}

/* ============================================
   RESPONSIVE DESIGN - AMÉLIORÉ
   ============================================ */

/* Tablet and smaller desktop */
@media (min-width: 993px) {
    .header-contact {
        display: block;
    }
}

@media (max-width: 992px) {
    .header-content {
        justify-content: center;
        padding: 0.5rem 0;
    }
    
    .logo-container {
        flex: 1;
    }
    
    #mainNav {
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }
    
    #mainNav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    #mainNav ul li {
        margin: 0.3rem 0.5rem;
    }
    
    .language-switcher,
    .client-access {
        margin-left: 0.5rem;
        order: 2;
    }
    
    .client-access .client-space-btn:not(.mobile-only) span {
        display: none;
    }
    
    .appointment-container {
        grid-template-columns: 1fr;
    }
    
    .appointment-info {
        padding-right: 0;
        text-align: center;
    }
    
    .footer-section h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        flex-wrap: wrap;
        position: relative;
        min-height: 70px;
    }
    
    .logo-container {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .header-contact {
        display: none !important;
    }
    
    nav {
        width: 100%;
        margin-top: 0;
    }
    
    #mainNav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #1a5276;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    #mainNav ul.show {
        display: flex;
    }
    
    #mainNav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 0.8rem 1rem;
    }
    
    .nav-link.active::after {
        bottom: 0;
        left: 0;
        transform: none;
        width: 4px;
        height: 100%;
        background: linear-gradient(to bottom, #27ae60, #2ecc71);
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1002;
    }

    .language-switcher,
    .client-access {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }
    
    .language-switcher {
        right: 60px;
    }
    
    .client-access {
        right: 120px;
    }
    
    .client-space-btn:not(.mobile-only) {
        display: none;
    }
    
    .client-space-btn.mobile-only {
        display: flex;
        padding: 0.5rem;
        font-size: 1.2rem;
        background: rgba(39, 174, 96, 0.6);
    }
    
    .client-space-btn.mobile-only:hover {
        background: #27ae60;
    }
    
    .lang-options {
        left: auto;
        right: 0;
        margin: 5px 0 0;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .legal-content,
    .appointment-form {
        padding: 2rem 1.5rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section ul li a {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .logo-text p {
        font-size: 0.8rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .service-card,
    .contact-card {
        padding: 2rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .legal-content {
        padding: 1.5rem 1rem;
    }
    
    .legal-section ul {
        margin-left: 1.5rem;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    th, td {
        padding: 0.8rem;
    }
    
    .language-switcher {
        right: 50px;
    }
    
    .client-access {
        right: 90px;
    }
}

/* Large desktop */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Print styles */
@media print {
    header,
    footer,
    .btn,
    .social-links,
    .menu-toggle,
    .language-switcher,
    .client-access {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .legal-content {
        box-shadow: none;
        padding: 0;
    }
}

