:root {
    --bg-color: #e5d3b3ab;
    /* Un fond beige amande/doré beaucoup plus prononcé et riche */
    --surface-color: #faf1e7;
    /* Cartes en beige très clair (Nude chaud), au lieu de blanc */
    --primary-color: #5e3621;
    /* Un marron café, très fort et contrasté */
    --primary-hover: #4e3020;
    /* Chocolat noir au survol */
    --text-color: #3b271d;
    /* Marron très sombre pour le texte (lisibilité optimale) */
    --text-muted: #7c5a46;
    /* Marron plus doux/taupe pour les textes secondaires */
    --border-color: rgba(121, 74, 49, 0.2);
    /* Bordure café transparente */
}

* {

    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(247, 237, 226, 0.95);
    /* Couleur des cartes Nude Chaud */

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px -1px rgba(121, 74, 49, 0.1);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-container h1 {
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 0.3rem;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

nav a:hover::after {
    width: 100%;
}

main {
    max-width: 1150px;
    /* Largeur augmentée pour des cartes plus spacieuses */
    margin: 120px auto 40px auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.section-card {
    background: var(--surface-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

.section-card h2 {
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

/* Ligne d'accentuation sous les titres H2 */
.section-card h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    bottom: -8px;
    left: 0;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* ================== SECTION À PROPOS ================== */
.about-content {
    display: flex;
    align-items: center;
    gap: 3.5rem;
}

.about-content img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--surface-color);
    outline: 3px solid var(--primary-color);
    box-shadow: 0 10px 25px rgba(121, 74, 49, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-content img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(121, 74, 49, 0.4);
}

.about-text {
    display: flex;
    flex-direction: column;
}

.about-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0rem;
    letter-spacing: 1px;
}

.about-content p {
    font-size: 1.05rem;
    color: var(--text-color);
    /* Texte principal plus foncé pour bien ressortir sur le Nude */
    line-height: 1.8;
}

/* Texte de bienvenue accrocheur (Section Héroïque) */
.hero-welcome {
    text-align: center;
    margin-top: -1rem;
    margin-bottom: 1rem;
    animation: fadeIn 1s ease forwards;
}

.hero-welcome h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-shadow: 0 4px 10px rgba(121, 74, 49, 0.15);
    /* Légère ombre pour faire ressortir le texte du fond */
}

/* ================== SECTION COMPÉTENCES ================== */
.skills-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
}

.skills-list li {
    background: var(--bg-color);
    padding: 1.2rem 1.8rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-weight: 500;
}

/* Visuel de 'Bouton Radio' (Cercle rempli) */
.skills-list li::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    margin-right: 15px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px var(--bg-color), 0 0 0 4px var(--primary-color);
    /* Effet double cercle */
}

.skills-list li:hover {
    background: rgba(121, 74, 49, 0.08);
    /* Fond marron plus prononcé au survol */
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(121, 74, 49, 0.15);
}

/* Au survol: le cercle extérieur grossit légèrement */
.skills-list li:hover::before {
    box-shadow: 0 0 0 2px var(--bg-color), 0 0 0 5px var(--primary-hover);
    background-color: var(--primary-hover);
}

/* ================== TABLEAU EXPÉRIENCES ================== */
.table-container {
    overflow-x: auto;
    /* Scroll horizontal si l'écran est trop petit */
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th,
td {
    padding: 1.2rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: rgba(121, 74, 49, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

tr:last-child td {
    border-bottom: none;
}

/* Zébra-styling subtil */
tbody tr:nth-child(even) {
    background-color: rgba(121, 74, 49, 0.03);
}

tbody tr {
    transition: background-color 0.3s ease;
}

tbody tr:hover {
    background-color: rgba(121, 74, 49, 0.08);
}

/* ================== PIED DE PAGE ================== */
footer {
    background: var(--surface-color);
    padding: 0rem 0rem 1rem 0rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-container h2 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.footer-container p {
    color: var(--text-color);
    /* Texte du footer plus foncé */
    margin-bottom: 2rem;
}

.social-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.social-links a {
    color: #f7ede2;
    text-decoration: none;
    padding: 0.8rem 2rem;
    background: var(--primary-hover);
    border-radius: 30px;
    border: 1px solid var(--border-color);
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.social-links a:hover {
    color: var(--text-color);
    background: var(--surface-color);

    /* Texte couleur carte Nude chaud sur fond sombre Chocolat */
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(121, 74, 49, 0.4);
    border-color: var(--primary-hover);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ================== ANIMATIONS ================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Décalage de l'animation pour les éléments (Cascade) */
.section-card:nth-child(1) {
    animation-delay: 0.1s;
}

.section-card:nth-child(2) {
    animation-delay: 0.3s;
}

.section-card:nth-child(3) {
    animation-delay: 0.5s;
}

/* ================== RESPONSIVE DESIGN ================== */
@media screen and (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 1.5rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-content img {
        margin-bottom: 1rem;
    }

    .section-card h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .section-card h2 {
        text-align: center;
        display: block;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-links li,
    .social-links a {
        width: 100%;
        max-width: 250px;
    }
}