/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Lato', 'Quicksand', sans-serif;
    color: #2c2c2c;
    background: #ffffff;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Logo-based Color Palette - Simple and Clear */
:root {
    --primary-brown: #A47044;           /* Brun doux du logo */
    --secondary-blue: #8DB4D8;          /* Bleu doux complémentaire */
    --text-dark: #2c2c2c;              /* Texte très sombre */
    --text-white: #ffffff;             /* Blanc pur */
    --bg-white: #ffffff;               /* Fond blanc */
    --bg-light: #fafafa;               /* Fond très clair */
    --bg-warm: #f8f6f4;                /* Fond chaud très léger */
    --border-light: #e8e8e8;          /* Bordure claire */
    --shadow: rgba(164, 112, 68, 0.1); /* Ombre douce */
}

/* Typography - Clean and Readable */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-brown);
    font-family: 'Segoe UI', 'Roboto', 'Lato', sans-serif;
}

h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.875rem; border-bottom: 2px solid var(--primary-brown); padding-bottom: 0.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Links - High Contrast */
a {
    color: var(--primary-brown);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

a:hover, a:focus {
    color: var(--secondary-blue);
    text-decoration: underline;
}

/* Focus indicators for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary-brown);
    outline-offset: 2px;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header - Clean and Simple */
.header {
    background: var(--bg-white);
    box-shadow: 0 2px 8px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

.logo {
    text-align: center;
    padding: 1.5rem 0;
    background: var(--bg-warm);
}

.logo img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
}

/* Navigation - Simple Brown Background with White Text */
.nav {
    background: var(--primary-brown);
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: capitalize;
    transition: background-color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    background: var(--secondary-blue);
    color: var(--text-white);
    text-decoration: none;
}

/* Breadcrumb - White Background, Dark Text */
.breadcrumb {
    background: var(--bg-white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.breadcrumb li:not(:last-child)::after {
    content: "→";
    margin: 0 0.75rem;
    color: var(--primary-brown);
    font-weight: bold;
}

.breadcrumb a {
    color: var(--primary-brown);
    font-weight: 600;
}

.breadcrumb a:hover {
    color: var(--secondary-blue);
}

.breadcrumb li[aria-current="page"] {
    color: var(--text-dark);
    font-weight: 600;
}

/* Main Content - White Background */
.main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    background: var(--bg-white);
}

.content {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px var(--shadow);
    border: 1px solid var(--border-light);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.img-center {
    display: block;
    margin: 1.5rem auto;
}

.img-responsive {
    width: 100%;
    height: auto;
}

/* Cards - White with Brown Headers */
.card {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 3px 10px var(--shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.card-header {
    padding: 1.5rem;
    background: var(--primary-brown);
    color: var(--text-white);
}

.card-header h3 {
    color: var(--text-white);
    margin-bottom: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
    color: var(--text-dark);
}

.card-footer {
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
    color: var(--text-dark);
}

/* Contact Information - Light Background, Dark Text */
.contact-info {
    background: var(--bg-warm);
    color: var(--text-dark);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border: 2px solid var(--primary-brown);
    text-align: center;
}

.contact-info h3 {
    color: var(--primary-brown);
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-dark);
    font-weight: 500;
}

.contact-info a {
    color: var(--primary-brown);
    font-weight: 600;
}

.phone-link {
    display: inline-block;
    background: var(--primary-brown) !important;
    color: var(--text-white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    margin: 0.5rem;
    transition: background-color 0.2s ease;
    text-decoration: none !important;
    border-bottom: none !important;
}

.phone-link:hover,
.phone-link:focus {
    background: var(--secondary-blue) !important;
    color: var(--text-white) !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Quote - Light Background with Brown Accent */
.quote {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--primary-brown);
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--bg-warm);
    border-left: 4px solid var(--primary-brown);
    border-radius: 0 8px 8px 0;
}

.quote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
    font-style: normal;
}

/* Footer - Brown Background, White Text */
.footer {
    background: var(--primary-brown);
    color: var(--text-white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer p {
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--text-white);
    font-weight: 500;
}

.footer a:hover {
    color: var(--text-white);
    text-decoration: underline;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.25rem;
    padding: 1rem;
    cursor: pointer;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-brown);
    color: var(--text-white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
    font-weight: 600;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-brown: #8B4513;
        --text-dark: #000000;
        --bg-white: #ffffff;
        --border-light: #000000;
    }
    
    .content {
        border: 2px solid #000000;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .nav-link {
        padding: 0.875rem 1rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .content {
        padding: 1.5rem;
    }
    
    .logo img {
        max-height: 70px;
    }
    
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    
    .breadcrumb li:not(:last-child)::after {
        margin: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .content {
        padding: 1.25rem;
    }
    
    .nav-link {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .logo img {
        max-height: 60px;
    }
}

/* Print Styles */
@media print {
    .nav,
    .mobile-menu-toggle,
    .breadcrumb {
        display: none !important;
    }
    
    .content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .footer {
        background: none;
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}