/*
Theme Name: CosUPlay
Author: Claire SAY
Description: Thème Wordpress pour CosUPlay
Version: 1.0
*/

/* Fond global */
body {
  background-color: #EAF0F6;
  color: #333333; /* Texte principal */
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
  color: #F4A261; /* Orange pastel */
  font-weight: 700;
}

/* Liens */
a {
  color: #006D77; /* Bleu canard */
  text-decoration: none;
}
a:hover {
  color: #8AA29E; /* Vert sauge */
}

/* Boutons */
button,
.wp-block-button__link,
input[type="submit"] {
  background-color: #006D77;
  color: #EAF0F6;
  border-radius: 8px;
  padding: 10px 20px;
  border: none;
  transition: 0.3s;
}
button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
  background-color: #8AA29E;
}

/* Container principal */
.timeline {
  position: relative;
  margin: 50px auto;
  padding: 20px 0;
  width: 90%;
  max-width: 800px;
}

/* Ligne verticale centrale */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #ddd;
  transform: translateX(-50%);
}

/* Chaque item de la timeline */
.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 30px;
  box-sizing: border-box;
}

/* Pastille (point de la date) */
.timeline-item::before {
  content: '';
  position: absolute;
  top: 25px;
  right: 97%;
  width: 20px;
  height: 20px;
  background: #F4A261; /* Indigo */
  border: 3px solid #fff;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Les items à gauche */
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

/* Pastille des items gauche */
.timeline-item:nth-child(odd)::before {
  right: -12px;
  left: auto;
}

/* Les items à droite */
.timeline-item:nth-child(even) {
  left: 50%;
}

/* Style des dates */
.timeline-date {
  display: inline-block;
  background: #F4A261;
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Carte de contenu */
.timeline-item h3 {
  margin: 10px 0;
  font-size: 20px;
  color: #111827;
}

.timeline-content {
  background: #fff;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
}

.membres-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.membre-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.membre-card:hover {
    transform: translateY(-5px);
}

.membre-photo {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
}

.membre-photo img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

.membre-pseudo {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
}

.membre-desc {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 15px;
}

.membre-lien {
    display: inline-block;
    padding: 8px 14px;
    background: #006D77;
    color: #EAF0F6;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9em;
}

.membre-lien:hover {
    background: #8AA29E;
}

.membre-roles {
    margin: 10px 0;
}

.role-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #333;
    font-size: 0.8em;
    padding: 4px 8px;
    border-radius: 12px;
    margin: 2px;
    white-space: nowrap;
}

#go-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    /* display: none; */
    height: 50px;
    width: 50px;
    background: #F4A261;
    text-align: center;
    line-height: 50px;
    z-index: 9999;
    border: solid 1px rgba(255,255,255,0.6);
}

#go-top a {
    display: block;
    color: #FFF;
}