/*
* About.css - Page À Propos du Portfolio MMI
* Harmonisé avec la page Réalisations (typo League Gothic + Glacial Indifference)
*/

@import url('https://fonts.googleapis.com/css2?family=League+Gothic&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Glacial+Indifference&display=swap');

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cream-light: #FFF8F0;
    --cream-medium: #F5EBE0;
    --cream-dark: #E8D7C3;
    --accent-primary: #a20b1d;
    --accent-secondary: #8a0916;
    --accent-light: #c94d5a;
    --text-dark: #2C2416;
    --text-medium: #5C4F3D;
    --text-light: #8B7E6A;
    --white: #FFFFFF;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
    --shadow-strong: rgba(0, 0, 0, 0.15);
    --shadow-bordeaux: rgba(162, 11, 29, 0.3);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cream-light);
    color: var(--text-dark);
    line-height: 1.7;
    font-family: 'Glacial Indifference', sans-serif; /* Texte harmonisé */
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'League Gothic', sans-serif; /* Titres harmonisés */
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-secondary);
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 3px;
    background-color: var(--accent-primary);
    transition: var(--transition);
}

h2:hover::after {
    width: 100%;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
    font-family: 'Glacial Indifference', sans-serif;
    color: var(--text-medium);
}

a {
    color: var(--text-dark);
    text-decoration: none;
    font-family: 'Glacial Indifference', sans-serif;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-primary);
}


/* === LAYOUT === */
.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

main {
    min-height: 70vh;
    padding: 2rem 0;
}

/* === PAGE HEADER === */
.page-header {
    text-align: center;
    padding: 5rem 2rem 3rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-bottom: 3px solid var(--accent-primary);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--cream-light);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* === SECTION PRÉSENTATION AVEC GALERIE === */
.about-me {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-light);
}

/* Galerie de photos */
.about-img-gallery {
    padding: 3rem;
}

.gallery-container {
    width: 100%;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px var(--shadow-medium);
    position: relative;
}

.main-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(162, 11, 29, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.thumbnail {
    width: 100%;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    opacity: 0.7;
    box-shadow: 0 3px 10px var(--shadow-light);
}

.thumbnail:hover {
    opacity: 1;
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-medium);
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--accent-secondary);
    box-shadow: 0 5px 15px var(--shadow-medium);
}

/* Contenu texte */
.about-content {
    padding: 3rem;
}

.about-content h2 {
    font-size: 2.2rem;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-content p {
    color: var(--text-medium);
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

/* Bouton CV */
.btn-cv {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 5px 15px var(--shadow-bordeaux);
    border: 2px solid transparent;
}

.btn-cv:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-bordeaux);
    background: transparent;
    color: var(--accent-secondary);
    border-color: var(--accent-secondary);
}

/* === SECTION COMPÉTENCES === */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.skill-category {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: var(--transition);
    border-top: 4px solid var(--accent-primary);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(162, 11, 29, 0.1), transparent);
    transition: left 0.5s;
}

.skill-category:hover::before {
    left: 100%;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.skill-category h3 {
    font-size: 1.5rem;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background-color: var(--cream-medium);
    color: var(--text-dark);
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--cream-dark);
}

.skill-tag:hover {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: var(--white);
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 5px 15px var(--shadow-bordeaux);
}

/* === SECTION FORMATION (TIMELINE) === */
.timeline {
    position: relative;
    padding: 2rem 0;
    margin: 4rem auto;
    max-width: 900px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px var(--shadow-light);
    width: calc(50% - 3rem);
    transition: var(--transition);
    overflow: hidden;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--accent-secondary);
    border: 4px solid var(--white);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 4px var(--cream-medium);
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    margin-left: auto;
}

.timeline-item:nth-child(odd)::before {
    left: -3.5rem;
}

.timeline-item:nth-child(even) {
    margin-right: auto;
}

.timeline-item:nth-child(even)::before {
    right: -3.5rem;
}

.timeline-item:hover {
    transform: translateX(-10px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.timeline-item:nth-child(even):hover {
    transform: translateX(10px);
}

.timeline-date {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
}

.timeline-location {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.timeline-item p {
    color: var(--text-medium);
    line-height: 1.8;
}

/* === SECTION BUT MMI === */
.mmi-info {
    background: linear-gradient(135deg, var(--white) 0%, var(--cream-medium) 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-light);
    border-left: 5px solid var(--accent-secondary);
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.mmi-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(162, 11, 29, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.mmi-info h2 {
    text-align: left;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.mmi-info p {
    color: var(--text-medium);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.mmi-info p:last-child {
    margin-bottom: 0;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-me,
.skill-category,
.timeline-item,
.mmi-info {
    animation: fadeInUp 0.6s ease-out;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .about-me {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .about-img-gallery,
    .about-content {
        padding: 2rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: calc(100% - 5rem);
        margin-left: 5rem !important;
    }

    .timeline-item::before {
        left: -3.5rem !important;
    }

    .timeline-item:hover,
    .timeline-item:nth-child(even):hover {
        transform: translateX(-10px);
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 3rem 1.5rem 2rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    section {
        padding: 2rem 1.5rem;
    }

    .about-img-gallery,
    .about-content,
    .skill-category,
    .mmi-info,
    .timeline-item {
        padding: 2rem;
    }

    .thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .main-image {
        height: 300px;
    }

    .timeline-item {
        width: calc(100% - 4rem);
        margin-left: 4rem !important;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .main-image {
        height: 250px;
    }

    .thumbnails {
        gap: 0.5rem;
    }

    .thumbnail {
        height: 60px;
    }

    .btn-cv {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .about-img-gallery,
    .about-content,
    .skill-category,
    .mmi-info,
    .timeline-item {
        padding: 1.5rem;
    }

    .skill-tag {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
}

/* === ACCESSIBILITY === */
.btn-cv:focus,
.thumbnail:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* === PRINT STYLES === */
@media print {
    .page-header {
        background: none;
        border: none;
    }

    .about-me,
    .skill-category,
    .timeline-item,
    .mmi-info {
        box-shadow: none;
        border: 1px solid var(--cream-dark);
    }
}