/* Global Styles - Beauté Naturelle & Bien-être */
/* Palette: #194d2f (vert foncé), #80cbc4 (turquoise), #8d8d8d (gris) */

/* Reset et base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: #194d2f;
    margin-top: 0;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: #194d2f;
    text-decoration: underline;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: #80cbc4;
}

/* Images and media */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Tables */
table {
    max-width: 100%;
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.table-responsive,
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #194d2f;
}

tr:hover {
    background-color: #f9f9f9;
}

/* Forms */
input, textarea, select, button {
    font-family: inherit;
    font-size: 16px;
}

input, textarea, select {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

button {
    cursor: pointer;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #80cbc4;
    outline-offset: 2px;
}

/* Skip to content */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #194d2f;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-to-content:focus {
    top: 0;
}

/* Selection */
::selection {
    background-color: #80cbc4;
    color: #194d2f;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #80cbc4;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #194d2f;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-0 {
    margin-top: 0;
}

/* Responsive typography */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
}

/* Anti-overflow mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .grid, [class*='grid'] {
        grid-template-columns: 1fr !important;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px;
    }
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .newsletter-section,
    .tools-section {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
}