/**
 * Styles personnalisés additionnels pour CRFAC
 */

/* ================================
   ANIMATIONS
   ================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

/* ================================
   GRILLE MULTI-COLONNES
   ================================ */
.crfac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.crfac-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.crfac-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.crfac-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* ================================
   CARTES D'ÉQUIPE
   ================================ */
.team-member {
    text-align: center;
    background: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.team-member-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-member-content {
    padding: 1.5rem;
}

.team-member-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.25rem 0;
}

.team-member-role {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-member-description {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.5;
}

.team-member-contact {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.team-member-contact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 1rem;
}

.team-member-contact a:hover {
    background-color: var(--secondary-color);
    text-decoration: none;
}

/* ================================
   PROJETS / ACTIVITÉS
   ================================ */
.activity-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.activity-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.activity-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.activity-card-content {
    padding: 1.5rem;
}

.activity-card-date {
    color: var(--secondary-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.activity-card-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
}

.activity-card-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.activity-card-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.activity-card-link:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* ================================
   CHRONOLOGIE
   ================================ */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item {
    margin-bottom: 2rem;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 3rem;
    text-align: left;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--accent-color);
    border: 3px solid #ffffff;
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-content {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 3px solid var(--accent-color);
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 3px solid var(--accent-color);
}

.timeline-date {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ================================
   FORMULAIRES CUSTOMISÉS
   ================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-submit {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-submit:hover {
    background-color: var(--secondary-color);
}

/* ================================
   ALERTES ET MESSAGES
   ================================ */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0.375rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: #dcfce7;
    border-color: #22c55e;
    color: #166534;
}

.alert-error {
    background-color: #fee2e2;
    border-color: #ef4444;
    color: #7f1d1d;
}

.alert-warning {
    background-color: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.alert-info {
    background-color: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}

/* ================================
   UTILITAIRES TEXTE
   ================================ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-light);
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.p-1 {
    padding: 0.5rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 1.5rem;
}

.p-4 {
    padding: 2rem;
}

/* ================================
   RESPONSIVE AJUSTEMENTS
   ================================ */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        padding: 0;
        margin: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd) {
        padding-left: 80px;
    }

    .timeline-item::before {
        left: 20px;
    }

    .crfac-grid,
    .crfac-grid-2,
    .crfac-grid-3,
    .crfac-grid-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .team-member-image {
        height: 200px;
    }

    .hero-section {
        padding: 3rem 1.5rem !important;
    }

    .hero-section h1 {
        font-size: 2rem !important;
    }

    section {
        padding: 2.5rem 1.5rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {

    .crfac-grid,
    .crfac-grid-2,
    .crfac-grid-3,
    .crfac-grid-4 {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin: 1rem 0;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
    }

    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .p-1 {
        padding: 0.5rem;
    }

    .p-2 {
        padding: 0.75rem;
    }

    .p-3 {
        padding: 1rem;
    }

    .p-4 {
        padding: 1.5rem;
    }

    .mt-1 {
        margin-top: 0.35rem;
    }

    .mt-2 {
        margin-top: 0.75rem;
    }

    .mt-3 {
        margin-top: 1rem;
    }

    .mt-4 {
        margin-top: 1.5rem;
    }

    .mb-1 {
        margin-bottom: 0.35rem;
    }

    .mb-2 {
        margin-bottom: 0.75rem;
    }

    .mb-3 {
        margin-bottom: 1rem;
    }

    .mb-4 {
        margin-bottom: 1.5rem;
    }

    section {
        padding: 1.5rem 1rem !important;
    }

    h2 {
        font-size: 1.35rem !important;
    }

    h3 {
        font-size: 1rem !important;
    }

    h4 {
        font-size: 0.95rem !important;
    }
}