/* CSS pour le design de l'interface Uobuddy */

/* --- VARIABLES DE COULEURS --- */
:root {
    --uottawa-garnet: #8F001A;
    --uottawa-gold: #FFD100; 
    --uottawa-beige: #F9F7F2;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--uottawa-beige);
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; 
}

/* --- TOP BAR --- */
.top-bar {
    background: linear-gradient(135deg, var(--uottawa-garnet) 0%, #b30021 50%, var(--uottawa-gold) 100%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 30px;
    z-index: 1000;
    display: flex;
    align-items: center; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px; /* Espace entre le logo et le texte UoBuddy */
}

.uottawa-logo {
    height: 40px; /* Ajuste la taille de l'emblème */
    width: auto;
    filter: brightness(0) invert(1); /* Rend le logo blanc pour qu'il ressorte sur le bordeaux */
}

.logo {
    color: white;
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2); /* Donne un peu de relief au texte */
}

/* --- CONTENEUR PRINCIPAL --- */
.main-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px; 
}

/* --- GRILLE DES CARTES --- */
.choice-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap; 
    margin-top: 40px;
}

/* --- STYLE DES CARTES --- */
.card {
    background: var(--white);
    width: 320px;
    padding: 40px 30px;
    border-radius: 15px;
    text-decoration: none; 
    color: inherit;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, border 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-8px);
    border: 1px solid var(--uottawa-garnet);
    box-shadow: 0 10px 25px rgba(143, 0, 26, 0.1);
}

.card h2 {
    color: var(--uottawa-garnet);
    margin-top: 0;
    font-size: 1.6rem;
}

.card p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 25px;
}

.btn-fake {
    background-color: var(--uottawa-garnet);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s ease;
}

.card:hover .btn-fake {
    background-color: #6a0013; 
}

/* style pour la page de signup */

/* --- ONBOARDING FORM --- */
.onboarding-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.step {
    display: none; 
}

.step.active {
    display: block; 
    animation: fadeIn 0.5s ease;
}

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

/* Barre de progression */
.progress-bar {
    background: #eee;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.progress {
    background: var(--uottawa-garnet);
    height: 100%;
    width: 33%; 
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Inputs et sélections */
input, select {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

/* Style pour les années */
.year-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.year-tag {
    padding: 10px 20px;
    background: var(--uottawa-beige);
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    text-align: center;
    flex: 1; 
    min-width: 100px;
}

.year-tag:hover {
    border-color: var(--uottawa-garnet);
    background: #fff0f0;
}

.year-tag.active {
    background: var(--uottawa-garnet) !important;
    color: white !important;
    border-color: var(--uottawa-garnet);
}

/* Grille d'intérêts (Tags) */
.interests-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.interest-tag {
    padding: 8px 15px;
    background: var(--uottawa-beige);
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.2s;
}

.interest-tag.selected {
    background: var(--uottawa-garnet);
    color: white;
    border-color: var(--uottawa-garnet);
}

/* Boutons de navigation */
.btn-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.btn-next, .btn-finish {
    background: var(--uottawa-garnet);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.btn-back {
    background: none;
    border: 1px solid #ddd;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
}

/* style pour la page de post opportunity */

.form-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 700px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 50px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-section h3 {
    color: var(--uottawa-garnet);
    margin-bottom: 15px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 10px 0 20px 0;
    max-height: 200px;
    overflow-y: auto; 
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
}

textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: inherit;
    margin-top: 5px;
}

.subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}