/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #fdfbfb 0%, #f8f5f2 100%);
    color: #2c2c2c;
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

/* ========== PROFIL ========== */
.profile {
    text-align: center;
    margin-bottom: 3rem;
}

.profile-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 2rem;
    border: 5px solid #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.profile-name {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.profile-subtitle {
    color: #d4a574;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.profile-bio {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}

/* ========== BOUTON PRINCIPAL ========== */
.btn-primary {
    display: block;
    background: linear-gradient(135deg, #d4a574 0%, #c8935f 100%);
    color: white;
    text-align: center;
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    margin: 2.5rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.4);
}

/* ========== CARTES ========== */
.cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 2.5rem 0;
}

.card {
    background: white;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(212, 165, 116, 0.1);
    overflow: hidden;
}

/* Cartes avec image */
.carousel-container {
    position: relative;
    margin: 2.5rem 0;
}

.carousel {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 0.5rem;
}

.carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.card {
    flex: 0 0 auto;
    width: 400px;
    scroll-snap-align: start;
    background: white;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(212, 165, 116, 0.1);
    overflow: hidden;
}

/* Cartes avec image */
.card--with-image {
    position: relative;
    height: 350px;
    display: block;
}

.card-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    padding: 2rem 1.75rem 1.75rem;
    color: white;
    transition: all 0.4s ease;
}

.card--with-image:hover .card-image img {
    transform: scale(1.05);
}

.card--with-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.card--with-image:hover .card-overlay {
    background: linear-gradient(to top, rgba(212, 165, 116, 0.95) 0%, rgba(212, 165, 116, 0.7) 60%, transparent 100%);
}

.card-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.card-description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    opacity: 0.95;
}

.card-cta {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.card--with-image:hover .card-cta {
    transform: translateX(5px);
    opacity: 1;
}

/* Boutons de navigation du carousel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid rgba(212, 165, 116, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #d4a574;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: linear-gradient(135deg, #d4a574 0%, #c8935f 100%);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn--prev {
    left: -24px;
}

.carousel-btn--next {
    right: -24px;
}

/* ========== SECTION PHOTO FINALE ========== */
.closing-section {
    text-align: center;
    margin: 4rem 0 3rem;
}

.closing-title {
    font-size: 1.10rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #1a1a1a;
    text-align: left; 
    max-width: 500px; /* ← Ajoutez pour qu'il soit aligné avec l'image */
    margin-left: auto; 
    margin-right: auto; 
}
.closing-image {
    max-width: 500px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.closing-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========== RÉSEAUX SOCIAUX ========== */
.social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3.5rem 0 2rem;
    flex-wrap: wrap;
}

.social-link {
    background: white;
    color: #d4a574;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(212, 165, 116, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link:hover {
    background: linear-gradient(135deg, #d4a574 0%, #c8935f 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.3);
}

/* ========== FOOTER ========== */
.footer {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(212, 165, 116, 0.15);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    .card {
        width: 320px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn--prev {
        left: 8px;
    }
    
    .carousel-btn--next {
        right: 8px;
    }
    
    .closing-image {
        border-radius: 12px;
    }
}

/* Animations au chargement */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile {
    animation: fadeInUp 0.6s ease-out;
}

.btn-primary {
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.card {
    animation: fadeInUp 0.6s ease-out calc(0.2s + var(--index) * 0.1s) backwards;
}

.card:nth-child(1) { --index: 0; }
.card:nth-child(2) { --index: 1; }
.card:nth-child(3) { --index: 2; }
.card:nth-child(4) { --index: 3; }
.card:nth-child(5) { --index: 4; }