/* =================================
   STYLES COMMUNS USPN INNOVATION
   Fichier CSS partagé par FR/EN/ES
   ================================= */

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

:root {
--cobalt: #293358;
--ceruleen: #354878;
--ocre: #8b7d6d;
--sable: #ad947e;
--blanc: #ffffff;
}

body {
font-family: 'Work Sans', sans-serif;
color: #333;
overflow-x: hidden;
}

/* Header avec couleurs USPN */
header {
background: linear-gradient(135deg, var(--cobalt) 0%, var(--ceruleen) 100%);
color: white;
padding: 100px 20px 80px;
text-align: center;
position: relative;
overflow: hidden;
}

header::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: repeating-linear-gradient(
45deg,
transparent,
transparent 10px,
rgba(255,255,255,0.03) 10px,
rgba(255,255,255,0.03) 20px
);
}

header h1 {
font-family: 'Montserrat', sans-serif;
font-size: 3em;
margin-bottom: 20px;
position: relative;
z-index: 1;
animation: fadeInDown 1s ease;
font-weight: 700;
letter-spacing: 1px;
}

header p {
font-size: 1.4em;
position: relative;
z-index: 1;
animation: fadeInUp 1s ease 0.3s backwards;
font-weight: 300;
}

.tagline {
margin-top: 30px;
font-family: 'Montserrat', sans-serif;
font-size: 1.1em;
color: var(--sable);
text-transform: uppercase;
letter-spacing: 2px;
font-weight: 600;
}

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

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

/* Navigation avec couleurs USPN */
nav {
    background: white;
    box-shadow: 0 2px 10px rgba(41, 51, 88, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
    padding: 15px 30px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    margin: 0;
    gap: 5px;
    align-items: center;
}

nav a {
    color: var(--cobalt);
    text-decoration: none;
    padding: 10px 18px;
    margin: 3px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    white-space: nowrap;
}

nav a:hover {
    background: var(--ceruleen);
    color: white;
    transform: translateY(-2px);
}



.lang-switcher {
display: flex;
gap: 8px;
align-items: center;
}

.lang-switcher a {
display: inline-block;
transition: transform 0.3s;
}

.lang-switcher a:hover {
transform: scale(1.1);
}

.lang-switcher img {
width: 24px;
height: 24px;
border-radius: 2px;
box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* SÉLECTEUR DE LANGUE */
.language-selector {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 2px solid #e9ecef;
}

.lang-link {
    background: transparent;
    border: 2px solid var(--ceruleen);
    color: var(--cobalt);
    padding: 8px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85em;
    transition: all 0.3s ease;
    text-transform: uppercase;
    display: inline-block;
}

.lang-link:hover {
    background: var(--ceruleen);
    color: white;
    transform: translateY(-2px);
}

.lang-link.active {
    background: var(--cobalt);
    color: white;
    border-color: var(--cobalt);
}

/* Conteneur principal */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 60px 20px;
}

section {
margin-bottom: 80px;
opacity: 0;
animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
to {
opacity: 1;
}
}

h2 {
color: var(--cobalt);
font-size: 2.5em;
margin-bottom: 30px;
text-align: center;
position: relative;
padding-bottom: 15px;
font-family: 'Montserrat', sans-serif;
font-weight: 700;
}

h2::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 100px;
height: 4px;
background: linear-gradient(90deg, var(--ocre), var(--sable));
border-radius: 2px;
}

/* Équipe */
.team-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 30px;
margin-top: 40px;
}

.team-member {
background: white;
border-radius: 15px;
padding: 30px;
box-shadow: 0 5px 20px rgba(41, 51, 88, 0.1);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
border-top: 5px solid var(--ceruleen);
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}

.team-photo {
width: 150px;
height: 150px;
border-radius: 50%;
object-fit: cover;
border: 4px solid var(--ceruleen);
flex-shrink: 0;
background: linear-gradient(135deg, var(--ceruleen), var(--cobalt));
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 3em;
font-weight: bold;
font-family: 'Montserrat', sans-serif;
margin-bottom: 20px;
}

.team-info {
width: 100%;
}

.team-member:hover {
transform: translateY(-10px);
box-shadow: 0 10px 30px rgba(41, 51, 88, 0.2);
border-top-color: var(--ocre);
}

.team-member h3 {
color: var(--cobalt);
margin-bottom: 10px;
font-size: 1.4em;
font-family: 'Montserrat', sans-serif;
font-weight: 700;
}

.role {
color: var(--ceruleen);
font-weight: 600;
margin-bottom: 15px;
font-size: 1.1em;
}

.team-member p {
line-height: 1.6;
color: #666;
margin-bottom: 10px;
}

.contact {
color: var(--ocre);
font-size: 0.9em;
word-break: break-all;
font-weight: 500;
}

/* Stratégie - Axes */
.strategy-axes {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 25px;
margin-top: 40px;
}

.axis {
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
padding: 30px;
border-radius: 15px;
border-left: 5px solid var(--ceruleen);
transition: all 0.3s ease;
position: relative;
}

.axis:hover {
transform: scale(1.05);
box-shadow: 0 10px 30px rgba(53, 72, 120, 0.15);
border-left-color: var(--ocre);
}

.axis h3 {
color: var(--cobalt);
margin-bottom: 15px;
font-size: 1.2em;
font-family: 'Montserrat', sans-serif;
font-weight: 600;
}

/* Timeline */
.timeline {
position: relative;
padding: 40px 0;
}

.timeline::before {
content: '';
position: absolute;
left: 50%;
top: 0;
bottom: 0;
width: 3px;
background: linear-gradient(180deg, var(--ceruleen), var(--ocre));
}

.timeline-item {
display: flex;
margin-bottom: 50px;
position: relative;
}

.timeline-item:nth-child(odd) {
flex-direction: row-reverse;
}

.timeline-content {
width: 45%;
background: white;
padding: 25px;
border-radius: 15px;
box-shadow: 0 5px 20px rgba(41, 51, 88, 0.1);
position: relative;
border-top: 3px solid var(--ceruleen);
}

.timeline-content h3 {
color: var(--cobalt);
font-family: 'Montserrat', sans-serif;
margin-bottom: 15px;
}

.timeline-year {
position: absolute;
left: 50%;
transform: translateX(-50%);
background: var(--ceruleen);
color: white;
width: 80px;
height: 80px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 1.2em;
box-shadow: 0 5px 15px rgba(53, 72, 120, 0.4);
font-family: 'Montserrat', sans-serif;
}

/* Projets */
.projects-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
margin-top: 40px;
}

.project-card {
background: white;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 5px 20px rgba(41, 51, 88, 0.1);
transition: all 0.3s ease;
}

.project-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 40px rgba(41, 51, 88, 0.15);
}

.project-header {
background: linear-gradient(135deg, var(--ceruleen), var(--cobalt));
color: white;
padding: 30px;
text-align: center;
}

.project-header h3 {
font-size: 1.5em;
margin-bottom: 10px;
font-family: 'Montserrat', sans-serif;
}

.project-body {
padding: 25px;
}

.project-body ul {
list-style: none;
padding-left: 0;
}

.project-body li {
padding: 10px 0;
border-bottom: 1px solid #e5e7eb;
color: #666;
}

.project-body li:before {
content: "✓";
color: var(--ocre);
font-weight: bold;
margin-right: 10px;
}

/* Newsletter Section */
.newsletter-section {
background: linear-gradient(135deg, var(--cobalt) 0%, var(--ceruleen) 100%);
color: white;
padding: 60px 40px;
border-radius: 20px;
text-align: center;
margin: 60px 0;
position: relative;
overflow: hidden;
}

.newsletter-section::before {
content: '';
position: absolute;
top: -50%;
right: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(173, 148, 126, 0.1) 1px, transparent 1px);
background-size: 30px 30px;
}

.newsletter-section h2 {
color: white;
position: relative;
z-index: 1;
}

.newsletter-section h2::after {
background: linear-gradient(90deg, var(--sable), var(--ocre));
}

.newsletter-content {
max-width: 800px;
margin: 0 auto;
position: relative;
z-index: 1;
}

.newsletter-content p {
font-size: 1.2em;
line-height: 1.8;
margin-bottom: 20px;
}

.newsletter-features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin-top: 40px;
}

.newsletter-feature {
background: rgba(255, 255, 255, 0.1);
padding: 20px;
border-radius: 10px;
backdrop-filter: blur(10px);
}

.newsletter-feature h4 {
color: var(--sable);
margin-bottom: 10px;
font-family: 'Montserrat', sans-serif;
}

/* Innovation Days Section */
.innovation-days {
background: white;
padding: 60px 40px;
border-radius: 20px;
box-shadow: 0 10px 40px rgba(41, 51, 88, 0.1);
margin: 60px 0;
}

.days-content {
max-width: 900px;
margin: 0 auto;
}

.days-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
margin-top: 40px;
}

.day-card {
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
padding: 30px;
border-radius: 15px;
border-left: 5px solid var(--ocre);
transition: all 0.3s ease;
}

.day-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(139, 125, 109, 0.2);
border-left-color: var(--ceruleen);
}

.day-card h4 {
color: var(--cobalt);
font-size: 1.3em;
margin-bottom: 15px;
font-family: 'Montserrat', sans-serif;
}

.day-card p {
color: #666;
line-height: 1.6;
}

.day-icon {
font-size: 2.5em;
margin-bottom: 15px;
color: var(--ceruleen);
}

/* Stats */
.stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin-top: 40px;
}

.stat-card {
background: linear-gradient(135deg, var(--ceruleen), var(--cobalt));
color: white;
padding: 40px 20px;
border-radius: 15px;
text-align: center;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}

.stat-card::before {
content: '';
position: absolute;
top: -50%;
right: -50%;
width: 100%;
height: 100%;
background: radial-gradient(circle, rgba(173, 148, 126, 0.2) 0%, transparent 70%);
}

.stat-card:hover {
transform: scale(1.05);
box-shadow: 0 10px 30px rgba(41, 51, 88, 0.3);
}

.stat-number {
font-size: 3em;
font-weight: bold;
margin-bottom: 10px;
position: relative;
z-index: 1;
font-family: 'Montserrat', sans-serif;
}

.stat-label {
font-size: 1.1em;
opacity: 0.9;
position: relative;
z-index: 1;
}

/* Footer */
footer {
background: var(--cobalt);
color: white;
text-align: center;
padding: 40px 20px;
margin-top: 80px;
}

footer p {
margin: 10px 0;
}

/* Accent decoratif */
.accent-bar {
height: 5px;
background: linear-gradient(90deg, var(--cobalt), var(--ceruleen), var(--ocre), var(--sable));
margin: 40px 0;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    header p {
        font-size: 1.1em;
    }
    
    nav {
        padding: 15px 20px;
    }
    
    nav ul {
        margin: 0;
        justify-content: center;
    }
    
    nav a {
        padding: 8px 12px;
        font-size: 0.85em;
    }
    
    .language-selector {
        margin-left: 10px;
        padding-left: 10px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-section {
        padding: 30px 20px;
    }
    
    .innovation-days {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.8em;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .language-selector {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 2px solid #e9ecef;
        width: 100%;
        justify-content: center;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
}
/* Animations au scroll */
.fade-in {
opacity: 0;
transform: translateY(30px);
transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
opacity: 1;
transform: translateY(0);
}
