/* ===== VARIABLES CSS ===== */
:root {
    --dark-purple: rgb(89, 27, 68);
    --light-pink: rgb(252, 239, 239);
    --peach: rgb(249, 169, 143);
    --light-blue: rgb(212, 240, 253);
    --mint-green: rgb(191, 226, 202);
    --black: #000;
    --white: #fff;
}

/* ===== STYLES DE BASE ===== */
html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: var(--light-pink);
    color: var(--dark-purple);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== BOUTON RETOUR ===== */
.back-btn {
    position: fixed;
    top: 2rem;
    left: 2rem;
    background: rgba(89, 27, 68, 0.9);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-btn:hover {
    background: var(--dark-purple);
    transform: scale(1.05);
}

/* ===== SECTION HERO ABOUT ===== */
.about-hero {
    background: linear-gradient(135deg, var(--dark-purple), var(--peach));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
    }
}

.about-container {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 2;
    position: relative;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content {
    color: white;
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, var(--light-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* ===== BOUTON CTA ===== */
.btn {
    background-color: var(--dark-purple);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--peach);
    color: var(--black);
}

/* ===== SECTION TIMELINE ===== */
.timeline-section {
    padding: 5rem 2rem;
    background: linear-gradient(
        225deg,
        var(--peach) 0%,
        var(--light-pink) 5%,
        var(--light-pink) 90%,
        var(--peach) 100%
        );

}

.title-text {
    font-size: 2.7rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: bold;
}

.letterspacing {
    letter-spacing: .8rem;
}

.timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--dark-purple), var(--peach));
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 45%;
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.6s ease;
}

.timeline-content.animate {
    transform: translateY(0);
    opacity: 1;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--dark-purple);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 8px var(--peach);
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-purple);
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.2rem;
    color: var(--peach);
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-description {
    color: #666;
    line-height: 1.6;
}

/* ===== SECTION COMPÉTENCES ===== */
.skills-section {
    padding: 5rem 2rem;
    background: linear-gradient(325deg, var(--dark-purple), var(--peach));
}

.skills-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: rgba(255,255,255,0.9);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.skill-card:hover {
    transform: translateY(-10px);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.skill-card h3 {
    color: var(--dark-purple);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.skill-card p {
    color: #666;
    line-height: 1.5;
}

/* ===== EFFET GLASS ===== */
.glass-card {
    background: rgba(254, 152, 237, 0.38);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(254, 152, 237, 0.32);
}

.glass-timeline {
    background: rgb(249, 169, 143, 0.08);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(249, 169, 143, 0.12);
}

/* ===== FOOTER ===== */
footer {
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
    margin-top: 0;
    position: relative;
}

footer p {
    margin: 0 0 30px 0;
    font-size: 1rem;
}

footer h2 {
    color: var(--light-blue);
    font-size: 1.5rem;
    margin: 30px 0 15px 0;
}

footer a {
    color: var(--light-pink);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--peach);
    text-decoration: underline;
}

/* ===== RÉSEAUX SOCIAUX ===== */
.social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.social.title {
    color: var(--light-blue);
    font-size: 1.5rem;
    margin: 30px 0 15px 0;
}

.social a {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 10px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ===== ICÔNES ===== */
.icon {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.social a:hover .icon {
    transform: scale(1.1);
}

/* ===== CARTE DE VISITE ===== */
.carte {
    position: relative;
    width: 90%;
    max-width: 400px;
    margin: 20px auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.carte img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(89, 27, 68, 0.8);
    color: var(--white);
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 15px;
    text-align: center;
    font-size: 1em;
    font-weight: bold;
}

.carte:hover .overlay {
    opacity: 1;
}

.carte:hover img {
    transform: scale(1.02);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablettes et écrans moyens (768px à 1024px) */
@media screen and (max-width: 1024px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        max-width: 800px;
    }

    .about-content h1 {
        font-size: 2.5rem;
    }

    .about-content p {
        font-size: 1.1rem;
    }

    .timeline-content {
        width: 80%;
    }

    .timeline::before {
        left: 30px;
        transform: none;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 80px;
    }

    .timeline-dot {
        left: 30px;
        transform: translateX(-50%);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .title-text {
        font-size: 2.3rem;
    }

    .letterspacing {
        letter-spacing: 0.5rem;
    }
}

/* Tablettes portrait et smartphones larges (481px à 768px) */
@media screen and (max-width: 768px) {
    .back-btn {
        top: 1rem;
        left: 1rem;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .about-hero {
        padding: 1rem;
        min-height: 80vh;
    }

    .about-container {
        gap: 2rem;
    }

    .about-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .about-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .timeline-section {
        padding: 3rem 1rem;
    }

    .title-text {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .letterspacing {
        letter-spacing: 0.3rem;
    }

    .timeline-content {
        width: 85%;
        padding: 1.5rem;
    }

    .timeline-year {
        font-size: 1.3rem;
    }

    .timeline-title {
        font-size: 1.1rem;
    }

    .timeline-description {
        font-size: 0.95rem;
    }

    .skills-section {
        padding: 3rem 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
    }

    .skill-card {
        padding: 1.5rem;
    }

    .skill-icon {
        font-size: 2.5rem;
    }

    .social {
        flex-direction: column;
        gap: 15px;
    }

    .social a {
        justify-content: center;
        padding: 12px 20px;
        width: 100%;
        max-width: 300px;
    }

    .carte {
        max-width: 350px;
    }
}

/* Smartphones (320px à 480px) */
@media screen and (max-width: 480px) {
    .back-btn {
        top: 0.5rem;
        left: 0.5rem;
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        border-radius: 25px;
    }

    .about-hero {
        padding: 0.5rem;
        min-height: 70vh;
    }

    .about-container {
        gap: 1.5rem;
        padding: 1rem;
    }

    .about-content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .about-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
        margin-top: 1rem !important;
    }

    .timeline-section {
        padding: 2rem 0.5rem;
    }

    .title-text {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .letterspacing {
        letter-spacing: 0.2rem;
    }

    .timeline {
        padding: 0 1rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
        margin-bottom: 2.5rem;
    }

    .timeline-dot {
        left: 20px;
        width: 16px;
        height: 16px;
        box-shadow: 0 0 0 6px var(--peach);
    }

    .timeline-content {
        width: 100%;
        padding: 1.2rem;
        font-size: 0.9rem;
    }

    .timeline-year {
        font-size: 1.1rem;
    }

    .timeline-title {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .timeline-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .skills-section {
        padding: 2rem 0.5rem;
    }

    .skills-grid {
        max-width: 100%;
        padding: 0 1rem;
    }

    .skill-card {
        padding: 1.2rem;
    }

    .skill-card h3 {
        font-size: 1.1rem;
    }

    .skill-card p {
        font-size: 0.85rem;
    }

    .skill-icon {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    footer {
        padding: 30px 15px;
    }

    footer h2 {
        font-size: 1.2rem;
        margin: 20px 0 10px 0;
    }

    footer p {
        font-size: 0.9rem;
        margin: 0 0 20px 0;
    }

    .social a {
        padding: 10px 15px;
        font-size: 0.9rem;
        border-radius: 5px;
    }

    .icon {
        width: 25px;
        height: 25px;
    }

    .carte {
        max-width: 280px;
        margin: 15px auto;
    }

    .overlay {
        padding: 10px;
        font-size: 0.85rem;
    }
}

/* Très petits écrans (moins de 320px) */
@media screen and (max-width: 320px) {
    .about-content h1 {
        font-size: 1.5rem;
    }

    .title-text {
        font-size: 1.4rem;
    }

    .letterspacing {
        letter-spacing: 0.1rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    .skill-card {
        padding: 1rem;
    }

    .back-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* Écrans ultra-larges (plus de 1400px) */
@media screen and (min-width: 1400px) {
    .about-container {
        max-width: 1400px;
        gap: 5rem;
    }

    .about-content h1 {
        font-size: 3.5rem;
    }

    .about-content p {
        font-size: 1.3rem;
    }

    .timeline {
        max-width: 1200px;
    }

    .skills-grid {
        max-width: 1200px;
        grid-template-columns: repeat(3, 1fr);
    }

    .title-text {
        font-size: 3rem;
    }
}

/* Orientation paysage pour smartphones */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .about-hero {
        min-height: 100vh;
        padding: 1rem;
    }

    .about-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }

    .about-content h1 {
        font-size: 2rem;
    }

    .timeline-section {
        padding: 2rem 1rem;
    }

    .skills-section {
        padding: 2rem 1rem;
    }
}

/* Amélioration de l'accessibilité pour les écrans haute densité */
@media screen and (-webkit-min-device-pixel-ratio: 2), 
       screen and (min-resolution: 192dpi) {
    .timeline-dot {
        box-shadow: 0 0 0 8px var(--peach);
    }
    
    .skill-card {
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
}

/* Mode sombre système (optionnel) */
@media (prefers-color-scheme: dark) {
    .timeline-content {
        background: rgba(255,255,255,0.95);
    }
    
    .skill-card {
        background: rgba(255,255,255,0.95);
    }
}