/* Variables CSS basées sur la charte graphique */
:root {
    --primary-green: #5A9B8E;
    --accent-coral: #E07A5F;
    --neutral-gray: #B8B8B8;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --dark: #2C2C2C;
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    --transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    cursor: none;
}

/* Curseur personnalisé */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-green);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 1s ease, visibility 1s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.organic-shape {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-coral));
    border-radius: 50% 30% 70% 40%;
    margin: 0 auto 20px;
    animation: morphing 2s ease-in-out infinite;
}

.loader-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--primary-green);
    font-style: italic;
}

/* Éléments décoratifs flottants */
.decorative-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-leaf {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--accent-coral);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
}

.leaf-1 { top: 10%; left: 10%; animation-delay: 0s; }
.leaf-2 { top: 20%; right: 15%; animation-delay: 1.5s; }
.leaf-3 { top: 60%; left: 5%; animation-delay: 3s; }
.leaf-4 { bottom: 20%; right: 10%; animation-delay: 4.5s; }
.leaf-5 { bottom: 10%; left: 20%; animation-delay: 6s; }

/* Section Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-shape {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-coral));
    border-radius: 50% 30% 70% 40%;
    opacity: 0.1;
    animation: heroShapeFloat 10s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    font-style: italic;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(50px);
}

.hero-profession {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(40px);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--dark);
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
}

.scroll-arrow {
    width: 2px;
    height: 40px;
    background: var(--primary-green);
    position: relative;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--primary-green);
    border-bottom: 2px solid var(--primary-green);
    transform: rotate(45deg);
}

/* Galerie */
.gallery {
    min-height: 100vh;
    padding: 5rem 2rem;
    background: var(--white);
    position: relative;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 10px 40px rgba(90, 155, 142, 0.1);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.photo-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(90, 155, 142, 0.2);
}

.photo-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 1;
    width: 100%;
}

.photo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-coral));
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1;
    mix-blend-mode: overlay;
}

.photo-item:hover .photo-container::before {
    opacity: 0.3;
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.photo-item:hover .photo-img {
    transform: scale(1.1);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
    padding: 2rem;
    transform: translateY(100%);
    transition: var(--transition-smooth);
    z-index: 2;
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

.photo-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.photo-description {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Section Outro */
.outro {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-coral));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.outro-content {
    text-align: center;
    z-index: 2;
}

.outro-shape {
    position: absolute;
    top: -30%;
    left: -20%;
    width: 800px;
    height: 800px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50% 30% 70% 40%;
    animation: outroShapeFloat 12s ease-in-out infinite;
}

.outro h2 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-style: italic;
    margin-bottom: 1rem;
}

.outro p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    opacity: 0.9;
}

/* Animations keyframes */
@keyframes morphing {
    0%, 100% { border-radius: 50% 30% 70% 40%; transform: rotate(0deg); }
    25% { border-radius: 30% 70% 40% 50%; transform: rotate(90deg); }
    50% { border-radius: 70% 40% 50% 30%; transform: rotate(180deg); }
    75% { border-radius: 40% 50% 30% 70%; transform: rotate(270deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes heroShapeFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-30px, -20px) rotate(120deg); }
    66% { transform: translate(20px, -30px) rotate(240deg); }
}

@keyframes outroShapeFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-50px, -40px) rotate(180deg); }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .photo-overlay {
        padding: 1.5rem;
    }
    
    .hero-shape,
    .outro-shape {
        width: 400px;
        height: 400px;
    }
}

/* Styles pour la section de contact */
.contact-info {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    opacity: 0.9;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--white);
}

.contact-details a {
    color: var(--white);
    background-color: rgba(44, 44, 44, 0.8);
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.contact-details a:hover {
    background-color: rgba(44, 44, 44, 1);
    color: var(--light-gray);
    text-decoration: underline;
}

/* Styles pour le bouton de téléchargement du CV */
.cv-download {
    margin-top: 2rem;
}

.cv-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-coral));
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(90, 155, 142, 0.3);
    position: relative;
    overflow: hidden;
}

.cv-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cv-button:hover::before {
    left: 100%;
}

.cv-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(90, 155, 142, 0.4);
}

.cv-button:active {
    transform: translateY(-1px);
}

/* Modal pour l'affichage des images en taille complète */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.photo-modal.active {
    opacity: 1;
    visibility: visible;
}

.photo-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.photo-modal-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}

.photo-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.photo-modal-close:hover {
    color: var(--accent-coral);
    transform: scale(1.1);
}

.photo-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.photo-modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.photo-modal-prev {
    left: -60px;
}

.photo-modal-next {
    right: -60px;
}

@media (max-width: 768px) {
    .photo-modal-nav {
        font-size: 1.5rem;
        padding: 8px 12px;
    }
    
    .photo-modal-prev {
        left: -50px;
    }
    
    .photo-modal-next {
        right: -50px;
    }
}
