:root {
    /* Palette "Smooth & Feminine" */
    --bg-color: #fffaf5; /* Blanc crème très doux */
    --text-color: #4a4a4a; /* Gris chaud au lieu du noir dur */
    --accent-primary: #ffbdad; /* Pêche doux */
    --accent-secondary: #d3cce3; /* Lavande subtile */
    --card-bg: #ffffff;
    --shadow-soft: 0 10px 30px -10px rgba(0,0,0,0.1);
    --gradient-smooth: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif; /* Corps de texte propre */
    overflow-x: hidden;
    line-height: 1.7;
    /* Ajout de formes organiques floues en arrière-plan */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 189, 173, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(211, 204, 227, 0.3) 0%, transparent 40%);
    background-attachment: fixed;
}

/* --- TYPOGRAPHIE ÉLÉGANTE --- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif; /* Titres avec empattements élégants */
    font-weight: 700;
    color: #2a2a2a;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
}

/* Soulignement doux et dégradé */
h2::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background: var(--gradient-smooth);
    margin: 10px auto 0;
    border-radius: 10px;
    opacity: 0.7;
}

/* --- LAYOUT & ANIMATIONS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
    /* Animation d'apparition au scroll */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 90vh; /* Utilise min-height pour s'adapter au contenu sur mobile */
    display: flex;
    flex-direction: row; /* Colonnes par défaut sur desktop */
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Style de l'image Hero */
.hero-visual img {
    max-width: 100%;
    width: 320px; /* MODIFICATION : Taille réduite pour l'équilibre */
    height: auto;
    /* Forme organique (blob) */
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.05), -20px -20px 60px rgba(255,255,255,0.8);
    transition: all 0.5s ease;
    animation: morphing 8s ease-in-out infinite;
    object-fit: cover;
}

@keyframes morphing {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    33% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    66% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
    100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

.hero span.highlight {
    background: var(--gradient-smooth);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

.hero p.subtitle {
    font-size: 1.5rem;
    margin-top: 1rem;
    font-weight: 300;
}

.hero p.location {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
    font-size: 0.9rem;
}

.location-dot {
    width: 12px;
    height: 12px;
    background: var(--gradient-smooth);
    border-radius: 50%;
    display: inline-block;
}

/* Responsive pour le Hero sur Mobile */
@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse; /* Texte en bas, image en haut */
        text-align: center;
        justify-content: center;
        padding-top: 4rem; /* Un peu d'espace en haut */
    }
    
    .hero-visual img {
        width: 250px; /* Plus petit sur mobile */
        margin-bottom: 2rem;
    }

    .hero p.location {
        justify-content: center; /* Centre le contenu du badge location */
    }
}

/* --- MANIFESTO --- */
.manifesto p {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Playfair Display', serif;
    line-height: 1.6;
}

/* --- PROJETS (GRID) --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.project-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 25px; /* Coins très arrondis */
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    border: none;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
}

/* Numéro décoratif en arrière-plan */
.project-number {
    font-size: 8rem;
    font-family: 'Playfair Display';
    font-weight: 700;
    color: var(--accent-primary);
    opacity: 0.1;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.project-content { position: relative; z-index: 1; }

.project-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.project-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    background: #f4f4f4;
    color: #666;
    padding: 5px 15px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Bouton "Smooth" */
.btn-details {
    margin-top: 1.5rem;
    background: var(--gradient-smooth);
    border: none;
    color: #fff;
    padding: 12px 30px;
    font-family: 'Montserrat';
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 189, 173, 0.4);
}

.btn-details:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 189, 173, 0.6);
}

/* --- MODAL (POPUP PROJET) --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 250, 245, 0.9); /* Fond clair et flou */
    z-index: 10000;
    overflow-y: auto;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--card-bg);
    margin: 5vh auto;
    padding: 4rem;
    width: 90%;
    max-width: 1100px;
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
    position: relative;
    animation: slideUpSmooth 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes slideUpSmooth {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2.5rem;
    color: var(--accent-primary);
    background: none;
    border: none;
    transition: transform 0.3s;
    cursor: pointer;
}

.close-modal:hover { transform: rotate(90deg); }

.project-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    margin-top: 3rem;
}

@media (max-width: 900px) {
    .project-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
    .modal-content { padding: 2rem; }
}

.detail-section { margin-bottom: 2.5rem; }

.detail-section h4 { 
    color: var(--accent-primary); 
    font-family: 'Montserrat';
    text-transform: uppercase; 
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.photo-placeholder {
    width: 100%;
    height: 350px;
    background: #f8f3f0; /* Gris/rose très pâle */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 2rem;
    color: var(--accent-secondary);
    font-family: 'Playfair Display';
    font-style: italic;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
}

.skills-list li, .steps-list li {
    margin-bottom: 0.8rem;
    list-style-type: none;
    position: relative;
    padding-left: 25px;
}

.skills-list li::before, .steps-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-size: 1.5rem;
    line-height: 1rem;
}

/* Style spécial pour l'encart "Utilité futur" */
.future-utility-box {
    background: linear-gradient(to right, #fff, #fffaf5);
    padding: 2rem;
    border-radius: 20px;
    border-left: 4px solid var(--accent-primary);
    box-shadow: var(--shadow-soft);
}

/* --- CONTACT --- */
.contact { text-align: center; }
.email-link {
    font-size: clamp(2rem, 5vw, 4rem);
    background: var(--gradient-smooth);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    font-family: 'Playfair Display';
    font-weight: 700;
    transition: letter-spacing 0.3s;
}
.email-link:hover {
    letter-spacing: 2px;
}

/* --- FOOTER --- */
footer {
    padding: 3rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* Nouveau style pour le lien du footer */
footer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

footer a:hover {
    color: var(--accent-secondary);
    border-bottom: 1px solid var(--accent-secondary);
}

/* --- STYLE DU CARROUSEL --- */
.carousel-container {
    width: 100%;
    height: 350px; /* Même hauteur que ton ancien placeholder */
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.carousel-slide {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); /* Transition très smooth */
}

/* Support des images, iframes ET vidéos dans le carrousel */
.carousel-slide img, 
.carousel-slide iframe,
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit la zone sans déformation */
    border: none;
    display: block;
    flex-shrink: 0;
}

/* Points de navigation */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s;
    cursor: pointer;
}

.dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* --- FORMULAIRE --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid rgba(211, 204, 227, 0.4); /* Lavande très légère */
    border-radius: 20px; /* Arrondi doux */
    background: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Effet quand on clique dans le champ */
.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary); /* Devient pêche */
    box-shadow: 0 0 20px rgba(255, 189, 173, 0.3);
    transform: translateY(-3px);
}

.contact-form input::placeholder, 
.contact-form textarea::placeholder {
    color: #bbb;
    font-weight: 300;
}