/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1161a3;
    --secondary-color: #0d4d7e;
    --accent-color: #e67e22;
    --accent-light: #f39c12;
    --white-color: #FFFFFF;
    --text-color: #2c3e50;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --gradient-start: #0d4d7e;
    --gradient-end: #1161a3;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--white-color);
    padding: 1.2rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 0.3rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.lang-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    background-color: transparent;
    border-radius: 8px;
    text-decoration: none;
    color: var(--white-color);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.lang-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.lang-link.active {
    background-color: var(--white-color);
    color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    font-weight: 600;
}

.lang-link .flag {
    font-size: 1.4rem;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.lang-link .lang-text {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

header .logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

header .logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--white-color);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
    width: 100%;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero .tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    opacity: 0.95;
}

/* About Section */
.about {
    padding: 4rem 0;
    background-color: var(--white);
}

.about h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    position: relative;
    display: inline-block;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.about h2:first-of-type {
    margin-top: 0;
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
}

/* Values Grid */
.values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0 3rem 0;
}

.value-item {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid rgba(17, 97, 163, 0.1);
    position: relative;
    overflow: hidden;
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px var(--shadow-medium);
    border-color: var(--primary-color);
}

.value-item:hover::before {
    transform: scaleY(1);
}

.value-item h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-left: 0;
    position: relative;
}

.value-item p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 0;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--white-color);
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--white-color);
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-section a {
    color: var(--white-color);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    opacity: 0.8;
}

/* Responsive Design - Mobile First Optimized */
@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    header .logo-img {
        height: 40px;
    }
    
    header .logo h1 {
        font-size: 1.2rem;
    }
    
    .language-selector {
        gap: 0.3rem;
    }
    
    .lang-link {
        padding: 0.4rem 0.6rem;
    }
    
    .lang-link .flag {
        font-size: 1.3rem;
    }
    
    .lang-link .lang-text {
        font-size: 0.8rem;
    }
    
    .hero {
        min-height: 50vh;
        padding: 3rem 1rem;
    }
    
    .about h2 {
        font-size: 1.6rem;
    }
    
    .values {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about p {
        text-align: left;
        font-size: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.8rem 0;
    }
    
    header .logo {
        gap: 0.5rem;
    }
    
    header .logo-img {
        height: 35px;
    }
    
    header .logo h1 {
        font-size: 1rem;
    }
    
    .language-selector {
        gap: 0.2rem;
    }
    
    .lang-link {
        padding: 0.3rem 0.5rem;
    }
    
    .lang-link .flag {
        font-size: 1.2rem;
    }
    
    .lang-link .lang-text {
        display: none;
    }
    
    .hero {
        min-height: 45vh;
        padding: 2rem 1rem;
    }
    
    .about {
        padding: 2rem 0;
    }
    
    .about h2 {
        font-size: 1.4rem;
        margin-top: 2rem;
    }
    
    .value-item {
        padding: 1.5rem;
    }
    
    .value-item h3 {
        font-size: 1.2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Performance et accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
