/* Global Styles - Portfolio Rémi Sarro */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
    --primary-color: #012665;
    --primary-light: #1a3a7a;
    --primary-dark: #001a4d;
    --accent-color: #0066cc;
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --background-white: #ffffff;
    --background-light: #f8f9fa;
    --border-light: #e9ecef;
    --shadow-light: rgba(1, 38, 101, 0.1);
    --shadow-medium: rgba(1, 38, 101, 0.15);
    --shadow-dark: rgba(1, 38, 101, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 2rem;
    font-weight: 600;
}

h4 {
    font-size: 1.5rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px var(--shadow-light);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

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

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-color);
    color: white;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
    position: relative;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    margin-left: 1rem;
    display: inline-flex;
    align-items: center;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    color: var(--primary-color);
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    transition: all 0.2s ease;
}

.lang-toggle .lang-code {
    line-height: 1;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 18px var(--shadow-light);
    transform: translateY(-1px);
}

.lang-flag {
    font-size: 1.05rem;
    line-height: 1;
}

.lang-code {
    font-size: 0.9rem;
    letter-spacing: 0.4px;
}

.lang-chevron {
    font-size: 0.9rem;
    opacity: 0.8;
}

.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 170px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    padding: 0.4rem;
    z-index: 1002;
    display: none;
}

.lang-switcher.is-open .lang-menu {
    display: block;
}

.lang-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.65rem;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
}

.lang-option:hover {
    background: var(--background-light);
}

.lang-option[aria-selected="true"] {
    background: rgba(1, 38, 101, 0.08);
    color: var(--primary-color);
}

/* Main Content */
main {
    margin-top: 80px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--shadow-dark);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Card Styles */
.card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

/* Footer Styles */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

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

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-block;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Footer Navigation Columns */
.footer-nav-columns {
    display: flex;
    gap: 2rem;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-bottom: 0.5rem;
}

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

@media (max-width: 770px) {
    .footer-nav-columns {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .footer-nav-col {
        text-align: center;
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-nav-columns {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Footer title link styling */
.footer-section h3 a {
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
}

.footer-section h3 a:hover {
    transform: translateY(-2px);
}

/* Popup link styling */
.popup-link {
    margin-top: 1rem;
}

.popup-link a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.popup-link a:hover {
    color: var(--accent-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        position: absolute;
        top: 60px;
        right: 0;
        left: auto;
        width: 200px;
        height: auto;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 1rem;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 8px 25px var(--shadow-medium);
        border-radius: 12px;
        border: 1px solid var(--border-light);
        z-index: 1001;
    }
    
    .nav-menu.show-menu {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        width: 100%;
        margin-bottom: 0.1rem;
    }
    
    .nav-menu .nav-link {
        width: 100%;
        text-align: left;
        padding: 0.25rem 0.75rem;
        border-radius: 8px;
        font-size: 0.9rem;
        display: block;
    }
    
    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background: var(--primary-color);
        color: white;
    }
    
    .nav-toggle {
        display: flex;
        position: relative;
    }
    
    .nav-toggle.show-menu span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.show-menu span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.show-menu span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .card {
        padding: 1.5rem;
    }
}
