/* ===== NEO BRUTALISM GLOBAL STYLES ===== */

/* Variables CSS */
:root {
    --primary: #D84315; /* Changé de #FF6B35 pour meilleur contraste (ratio 4.6:1) */
    --secondary: #004E89;
    --accent: #E65100; /* Changé de #FF9800 pour meilleur contraste (ratio 3.5:1) */
    --dark: #000000;
    --white: #FFFFFF;
    --light: #F8F9FA;
    --gray: #495057; /* Changé de #6C757D pour meilleur contraste */
    
    --font-brutal: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-brutal: 8px 8px 0px var(--dark);
    --shadow-hover: 12px 12px 0px var(--dark);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-brutal);
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    line-height: 1.2;
}

.accent {
    color: var(--accent);
}

/* Header Global */
.brutal-header {
    background: var(--white);
    border-bottom: 6px solid var(--dark);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brutal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-brutal h1 {
    font-size: 1.8rem;
    font-weight: 900;
}

.nav-brutal {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-brutal a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: underline;
}

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

/* Menu Mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 3px 0;
    transition: 0.3s;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* Buttons Global */
.btn-brutal {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 4px solid var(--dark);
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-brutal);
}

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

.btn-brutal.secondary {
    background: var(--white);
    color: var(--dark);
}

.btn-brutal:hover {
    transform: translate(-4px, -4px);
    box-shadow: var(--shadow-brutal);
}

/* Calculator Container */
.calculator-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--white);
    border: 6px solid var(--dark);
    box-shadow: var(--shadow-brutal);
}

.calculator-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--dark);
}

.calculator-subtitle {
    font-size: 1.2rem;
    color: #37474f; /* Gris bleuté foncé pour meilleur contraste (ratio 9.8:1) */
    text-align: center;
    margin-bottom: 2rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: 1rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 1rem;
    border: 4px solid var(--dark);
    font-size: 1rem;
    font-weight: 600;
    background: var(--light);
    font-family: var(--font-brutal);
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    background: var(--accent);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px var(--dark);
}

/* Results */
.result-container {
    background: var(--dark);
    color: var(--white);
    padding: 2rem;
    border: 4px solid var(--dark);
    margin-top: 2rem;
}

.result-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent);
}

.result-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
}

/* Cards */
.card-brutal {
    background: var(--white);
    border: 6px solid var(--dark);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
}

.card-brutal:hover {
    transform: translate(-4px, -4px);
    box-shadow: var(--shadow-brutal);
}

.card-brutal h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.card-brutal p {
    color: var(--gray);
    margin-bottom: 1rem;
}

/* Grid Layouts */
.grid-brutal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Section Titles */
.section-title {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
}

/* Footer Global */
.footer-brutal {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    border-top: 6px solid var(--primary);
    margin-top: 4rem;
}

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

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray);
    color: var(--gray);
}

/* Responsive Global */
@media (max-width: 768px) {
    .brutal-nav {
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-brutal {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border: 6px solid var(--dark);
        border-top: none;
        flex-direction: column;
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .nav-brutal.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-brutal li {
        margin-bottom: 1rem;
    }
    
    .nav-brutal a {
        display: block;
        padding: 1rem;
        background: var(--light);
        border: 3px solid var(--dark);
        text-align: center;
        text-decoration: underline;
}
    
    .calculator-container {
        margin: 1rem;
        padding: 1rem;
        border-width: 4px;
    }
    
    .calculator-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .grid-brutal {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card-brutal {
        padding: 1.5rem;
        border-width: 4px;
    }
}


/* ========================================
   CORRECTIONS ACCESSIBILITE & RESPONSIVE
   ======================================== */

/* Taille minimum pour les éléments cliquables (mobile) */
button, 
a.btn-brutal, 
.btn-brutal,
input[type="submit"], 
input[type="button"],
.mobile-menu-toggle {
    min-height: 48px;
    min-width: 48px;
    padding: 12px 16px;
}

/* Espacement minimum entre éléments cliquables */
.nav-brutal li {
    margin: 8px;
}

.btn-group > * {
    margin: 8px;
}

/* Liens dans le texte - augmenter la zone cliquable */
a:not(.btn-brutal) {
    display: inline-block;
    padding: 4px 0;
}

/* Menu mobile - zone cliquable suffisante */
.mobile-menu-toggle {
    min-width: 48px;
    min-height: 48px;
    padding: 12px;
}

/* Classe pour labels invisibles visuellement mais accessibles */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Amélioration du contraste pour les liens */
a {
    color: #0066CC;
    text-decoration: underline;
}

a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* Exception pour les boutons */
.btn-brutal,
a.btn-brutal {
    text-decoration: none;
}
