/* --- Variables de Couleur (Personnalisez !) --- */
:root {
    --primary-color: #6a11cb; /* Violet profond */
    --secondary-color: #2575fc; /* Bleu vif */
    --accent-color: #fcb045; /* Orange doux */
    --dark-color: #1a1a2e; /* Ajout d'une couleur sombre pour le footer */
    --gradient-bg: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --card-bg: rgba(255, 255, 255, 0.95); /* Blanc légèrement transparent */
    --text-color: #333;
    --light-text-color: #f8f9fa;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-hover-shadow: rgba(0, 0, 0, 0.2);
    --card-border-color: rgba(0, 0, 0, 0.08);
}

/* --- Animations --- */
@keyframes animatedGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Réinitialisation et Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-image: var(--gradient-bg);
    background-size: 200% 200%; /* Important pour l'animation du dégradé */
    background-attachment: fixed;
    animation: animatedGradient 15s ease infinite; /* Animation du fond */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* --- Header --- */
.page-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: var(--light-text-color);
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.8s ease-out forwards;
}

.page-header .subtitle {
    font-size: 1.1rem;
    opacity: 0;
    animation: fadeInDown 0.8s ease-out 0.3s forwards;
}

/* --- Main Content --- */
main {
    flex-grow: 1;
}

.contact-section .container {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px var(--shadow-color);
    margin-bottom: 3rem;
}

/* --- Grille des Méthodes de Contact --- */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Taille min un peu plus grande */
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 2px solid var(--card-border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: var(--delay);
}

.contact-item:hover {
    transform: translateY(-10px);
}

/* --- NOUVEAU : Style pour l'image de profil --- */
.profile-picture {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: -1rem auto 1rem auto; /* Remonte un peu */
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: block;
}


.contact-item i {
    display: block;
    margin-bottom: 1rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-item:hover i {
    transform: scale(1.1) rotate(-5deg);
}

/* Couleurs spécifiques et effets de survol */
.email-card i { color: #d44638; }
.email-card:hover {
    border-color: #d44638;
    box-shadow: 0 12px 25px rgba(212, 70, 56, 0.25);
}

.facebook-card i { color: #1877f2; }
.facebook-card:hover {
    border-color: #1877f2;
    box-shadow: 0 12px 25px rgba(24, 119, 242, 0.25);
}

/* NOUVEAU : Style pour la carte site web */
.website-card i { color: var(--accent-color); }
.website-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 12px 25px rgba(252, 176, 69, 0.25);
}

.contact-item h2 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    min-height: 50px;
}

.contact-link {
    display: inline-block;
    font-weight: 600;
    word-wrap: break-word;
    padding: 0.5rem 0;
    position: relative;
}
.contact-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    transition: width 0.4s ease;
}
.contact-item:hover .contact-link::after {
    width: 70%;
}

.contact-item a:hover {
   text-decoration: none;
}

/* --- Footer --- */
.page-footer {
    background: rgba(26, 26, 46, 0.3);
    backdrop-filter: blur(8px);
    color: #ccc;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto;
    font-size: 0.9rem;
    border-top: 3px solid var(--accent-color);
}

.page-footer p {
    margin-bottom: 0.3rem;
}
.page-footer a {
    color: var(--secondary-color);
    font-weight: 600;
}
.page-footer a:hover {
    color: white;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .contact-methods {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.5rem;
    }
    .page-header h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .page-header { padding: 2.5rem 0; margin-bottom: 2rem; }
    .page-header h1 { font-size: 2.2rem; }
    .page-header .subtitle { font-size: 1rem; }
    .contact-section .container { padding: 2rem; }
    .contact-item { padding: 1.5rem 1rem; }
    .contact-item h2 { font-size: 1.3rem; }
    .contact-item p { font-size: 0.9rem; min-height: 40px; }
}

@media (max-width: 480px) {
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
     .page-header h1 { font-size: 2rem; }
     .contact-section .container { padding: 1.5rem; }
     .contact-item { padding: 1.5rem; }
     .page-footer { padding: 1.2rem 0; font-size: 0.85rem; }
}