:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --background-color: #f7f7f7;
    --text-color: #2c3e50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

.quote-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.5);
}

.quote-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 2000;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.95), rgba(78, 205, 196, 0.95));
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 80vw;
    width: 600px;
}

.quote-popup.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.quote-content {
    position: relative;
    text-align: center;
    color: white;
    font-size: 1.5rem;
    line-height: 1.6;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.quote-text {
    margin-bottom: 1rem;
    animation: quoteFloat 1s ease-out;
}

.quote-sparkles {
    font-size: 2rem;
    margin-top: 1rem;
    animation: sparkle 2s infinite;
}

@keyframes quoteFloat {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    color: white;
    padding: 80px 20px;
}

.comparison-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin: 3rem auto;
    flex-wrap: wrap;
    position: relative;
    max-width: 1100px;
    width: 100%;
    padding: 0 20px;
    padding-top: 100px;
    min-height: 500px;
}

.floating-image {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 250px;
    height: 100%;
    display: flex;
    align-items: center;
}

.floating-image.left {
    left: -270px;
}

.floating-image.right {
    right: -270px;
}

.zoom-btn {
    position: absolute;
    top: -50px;
    right: -270px;
    transform: translateY(-100%);
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
}

.zoom-btn:hover {
    filter: brightness(1.1);
}

@keyframes moveToCenter {
    0% {
        position: absolute;
        top: 50%;
        right: -270px;
        transform: translateY(-50%);
    }
    100% {
        position: absolute;
        top: 40%;
        right: 50%;
        transform: translate(50%, -50%);
    }
}

@keyframes moveBack {
    0% {
        position: absolute;
        top: 40%;
        right: 50%;
        transform: translate(50%, -50%);
    }
    100% {
        position: absolute;
        top: 50%;
        right: -270px;
        transform: translateY(-50%);
    }
}

@keyframes explodeHead {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    40% {
        transform: scale(2);
        filter: brightness(1.3);
    }
    60% {
        transform: scale(2.5);
        filter: brightness(1.5);
    }
    80% {
        transform: scale(2);
        filter: brightness(1.3);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

.moving-to-center {
    z-index: 9999 !important;
    animation: moveToCenter 1s ease-in-out forwards !important;
}

.moving-back {
    z-index: 9999 !important;
    animation: moveBack 1s ease-in-out forwards !important;
}

.exploding {
    z-index: 9999 !important;
    animation: explodeHead 2s ease-in-out forwards !important;
    pointer-events: none !important;
}

.floating-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes goCrazy {
    0% {
        transform: translateY(-50%);
    }
    10% {
        transform: translate(200px, -50%) rotate(180deg) scale(1.2);
    }
    20% {
        transform: translate(-150px, -300px) rotate(540deg) scale(0.8) rotateX(180deg);
    }
    30% {
        transform: translate(300px, 100px) rotate(900deg) scale(1.5) rotateY(360deg);
    }
    40% {
        transform: translate(-250px, -200px) rotate(1260deg) scale(0.7) rotateZ(180deg);
    }
    50% {
        transform: translate(0, 300px) rotate(1620deg) scale(1.3) rotateX(540deg);
    }
    60% {
        transform: translate(400px, -400px) rotate(1980deg) scale(1.1) rotateY(720deg);
    }
    70% {
        transform: translate(-300px, 200px) rotate(2340deg) scale(0.9) rotateZ(360deg);
    }
    80% {
        transform: translate(200px, -200px) rotate(2700deg) scale(1.4) rotateX(720deg);
    }
    90% {
        transform: translate(-100px, 100px) rotate(3060deg) scale(0.8) rotateY(1080deg);
    }
    95% {
        transform: translate(50px, -50px) rotate(3240deg) scale(1.1);
    }
    100% {
        transform: translateY(-50%);
    }
}

.floating-image.right {
    cursor: pointer;
    transform-origin: center;
    perspective: 1000px;
    transition: all 0.3s ease;
}

.floating-image.right.go-crazy {
    animation: goCrazy 5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    z-index: 1000;
}

.floating-image.right.go-crazy img {
    animation: none;
    transform-origin: center;
}

/* Ajout d'un effet hover pour montrer que c'est cliquable */
.floating-image.right:hover {
    filter: brightness(1.2);
    transform: translateY(-50%) scale(1.05);
}

.comparison-item {
    flex: 0 1 320px;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.comparison-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.comparison-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.vs-text {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.dna-match {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.scientific-facts {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.scientific-facts li {
    margin: 1rem 0;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.scientific-facts li:hover {
    background: rgba(255, 255, 255, 0.1);
}

.scientific-conclusion {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 2px solid var(--primary-color);
}

.evidence-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.evidence-list li {
    background: rgba(255, 255, 255, 0.08);
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.evidence-list li:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Biography Section */
.bio-section {
    padding: 5rem 2rem;
    text-align: center;
}

.bio-highlights {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    flex: 1;
    max-width: 300px;
    transition: transform 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-10px);
}

/* Gallery */
.gallery {
    padding: 5rem 2rem;
    background-color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Quotes Section */
.quotes {
    padding: 5rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.quote {
    font-size: 1.5rem;
    font-style: italic;
    margin: 2rem 0;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}
