/*
Theme Name: generatepresschild
Template: generatepress  
Version: 1.0
Author: Toi
*/

#modal-sous-activite {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #ccc;
    padding: 20px;
    z-index: 9999; /* ou plus si conflit */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* === ACTIVITE TEMPLATE === */
.activite-entry {
    font-family: "Segoe UI", sans-serif;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.activite-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.activite-header {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.activite-thumbnail img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.activite-title {


	margin: 0;
	font-size: 2.5rem;
	color: white;
	background: rgba(62, 204, 137, 0.6);
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	/* padding-top: 50px; */
	align-items: end;
	display: flex;
	justify-content: center;
}

.activite-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.activite-description {
    font-size: 1.125rem;
  line-height: 1.6;
  background-color: #ffffffcf;
  padding: 1em;
  border-radius: 1em;
  border: solid #00000080;F
}

.activite-infos {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.activite-info {
    background: #f8f8f8;
    padding: 1rem;
    border-radius: 0.5rem;
    flex: 1 1 200px;
    box-shadow: 0 0 3px rgba(0,0,0,0.1);
}

.activite-sous-activites h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.activite-edit-link {
    align-self: flex-start;
    text-decoration: none;
    color: #666;
    font-size: 0.95rem;
    margin-top: 1rem;
    display: inline-block;
}

.activite-section-label {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.activite-section-label i {
    margin-right: 0.5rem;
    color: #0073aa;
}

.activite-tag-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.activite-tag-list li {
    background: #e0f0ff;
    color: #0073aa;
    padding: 0.3rem 0.6rem;
    border-radius: 0.3rem;
    font-size: 0.95rem;
}

.activite-edit-link {
    align-self: flex-start;
    text-decoration: none;
    background: #0073aa;
    color: white;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    margin-top: 2rem;
    display: inline-block;
    transition: background 0.2s ease;
}

.activite-edit-link:hover {
    background: #005f8d;
}

.etat-badge {
	display: inline-block;
  font-size: 1.8rem;
  font-weight: 600;
  color: #444;
  background-color: #eee;
  padding: 0.15rem 0.5rem;
  border-radius: 0.3rem;
  margin-bottom: 1rem;
  position: absolute;
  top: 0;
  left: 0;
  background: white;
  text-transform: uppercase;
}

.activite-relations {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.relation {
    flex: 1;
    min-width: 300px;
}

.vignette-activite img {
    width: 100%;
    height: 140px!important;
    object-fit: cover;
    background-color: #f0f0f0;
}

.admin-actions {
    margin-top: 10px;
}

.edit-button,
.delete-button {
    display: inline-block;
    padding: 5px 10px;
    font-size: 0.85rem;
    color: white;
    background-color: #f4fcff;
    border-radius: 4px;
    text-decoration: none;
    margin-right: 5px;
}

.delete-button {
    background-color: #fff6f6;
}

.edit-button:hover {
    background-color: #eef9ff;
}

.delete-button:hover {
    background-color: #fff3f3;
}

.grille-activites {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    margin: 20px 0;
}

.vignette-activite {
    width: 200px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.vignette-activite:hover {
    transform: scale(1.03);
}

.vignette-activite img {
    width: 100%;
    /* height: 140px; */
    object-fit: cover;
}

.vignette-activite .contenu {
    padding: 10px;
}

.vignette-activite .contenu h3 {
    font-size: 16px;
    margin: 0 0 10px;
}

.vignette-activite .contenu a {
    display: inline-block;
    margin-top: 5px;
    color: #0073aa;
    text-decoration: none;
}

.vignette-activite .contenu a:hover {
    text-decoration: underline;
}



/* PROBLEME  */

.grille-problemes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
  }
  
  .vignette-probleme {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
    max-width: 280px;
    box-sizing: border-box;
    transition: transform 0.2s ease;
  }
  
  .vignette-probleme:hover {
    transform: scale(1.05);
  }
  
  .vignette-probleme img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
  }
  
  .vignette-probleme .contenu h3 {
    font-size: 1.1rem;
    margin: 0 0 6px 0;
  }
  
  .vignette-probleme .contenu p {
    font-size: 0.9rem;
    margin: 0 0 10px 0;
  }
  
  .admin-actions a {
    margin-right: 10px;
    font-size: 0.85rem;
    color: #0073aa;
    text-decoration: none;
  }
  
  .admin-actions a.delete-button {
    color: #a00;
  }
  
  .admin-actions a:hover {
    text-decoration: underline;
  }