/* Importation d'une police moderne */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;600;800&display=swap');

:root {
    --primary: #0f172a;    /* Bleu ardoise très foncé */
    --accent: #ff7043;     /* Orange humanitaire dynamique */
    --bg-light: #f1f5f9;   /* Gris bleu très clair */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--white);
}

/* Header Impactant */
header {
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
    clip-path: ellipse(150% 100% at 50% 0%); /* Courbe élégante en bas */
}

.lang {
    margin-bottom: 30px;
    font-weight: 600;
}

.lang a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.6;
    padding: 0 10px;
}

.lang a.active { opacity: 1; border-bottom: 2px solid var(--accent); }

h1 { font-size: 3.5rem; margin: 0; letter-spacing: -2px; }
h2 { color: var(--accent); font-weight: 300; font-size: 1.5rem; margin: 10px 0; }

.btn {
    display: inline-block;
    background: var(--accent);
    color: white !important;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 30px;
    box-shadow: 0 10px 20px rgba(255, 112, 67, 0.3);
    transition: 0.3s;
}

.btn:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(255, 112, 67, 0.4); }

/* Mise en page des sections */
section { padding: 90px 20px; }
.container { max-width: 1000px; margin: 0 auto; }

/* Alternance de couleurs de fond */
section.alt { background-color: var(--bg-light); }

h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h3::after {
    content: ''; display: block; width: 60px; height: 4px; 
    background: var(--accent); margin: 15px auto 0;
}

/* Grille de compétences (Cards) */
.skills-grid {
    display: grid;
    /* Crée 3 colonnes égales sur grand écran */
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px;
    margin-top: 40px;
}

.skill-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 4px solid var(--accent); /* Barre de couleur sur le dessus */
    transition: 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

/* Responsive : passage à 1 ou 2 colonnes sur tablettes et mobiles */
@media (max-width: 992px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
    }
}

@media (max-width: 600px) {
    .skills-grid {
        grid-template-columns: 1fr; /* 1 seule colonne sur petit téléphone */
    }
}

/* Expérience et Formation */
.info-box {
    background: var(--white);
    padding: 40px;
    border-radius: 25px;
    margin-bottom: 30px;
    border-left: 8px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

footer {
    background: var(--primary);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

footer a { color: var(--accent); text-decoration: none; }

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    section { padding: 60px 20px; }
}