/* ===== RESET & BASE STYLES ===== */
:root {
  --primary-color: #2E8B57;       /* Vert émeraude (couleur principale) */
  --secondary-color: #3CB371;    /* Vert moyen (accent) */
  --light-color: #F0FFF0;        /* Blanc cassé (fond) */
  --dark-color: #1A3A2A;          /* Vert foncé (texte) */
  --accent-color: #32CD32;        /* Vert fluo (surlignage) */
  --highlight-color: #228B22;   /* Vert forêt (pour les boutons) */
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  --border-radius: 6px;
  --font-main: 'Montserrat', sans-serif;  /* Police moderne et sportive */
  --font-secondary: 'Roboto', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--light-color);
  color: var(--dark-color);
  line-height: 1.6;
}

/* ===== LAYOUT & CONTAINERS ===== */
.row-fluid {
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}

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

/* ===== HEADER (style dynamique et sportif) ===== */
.header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--accent-color);
}
/* Header & Footer */
 footer {
  background: var(--primary-color);
  color: var(--text-color);
  text-align: center;
  padding: 1rem;
}

.header ul li a,   .footer ul li a {
  color: var(--text-color);
    text-decoration: unset;
}

header nav a {
  margin: 0 10px;
}

.nav-menu-container {
    text-align: right;
}


/* ===== MAIN CONTENT ===== */
.mainContent {
  min-height: calc(100vh - 120px);
  padding: 30px 0;
}

/* ===== FULL-WIDTH CONTAINERS (tons verts) ===== */
.full-first {
  background-color: white;
  padding: 40px 20px;
  margin-bottom: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border-top: 5px solid var(--primary-color);
}

.full-seco {
  background-color: var(--light-color);
  padding: 40px 20px;
  margin-bottom: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border-top: 5px solid var(--accent-color);
}

.full-terc {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 40px 20px;
  margin-bottom: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 2px solid var(--secondary-color);
}

/* ===== BLOCKS (style sportif) ===== */
.block-first, .container-block-first > div:first-of-type {
  background-color: white;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--primary-color);
}

.block-seco ,  .container-block-seco > div:first-of-type {
  background-color: var(--light-color);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--accent-color);
}

.block-terc ,  .container-terc-seco > div:first-of-type {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 2px dashed var(--secondary-color);
}

/* ===== GRID STYLE (pour les classements/calendriers) ===== */
.grid {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 15px;
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: white;
}

.grid th {
  background: linear-gradient(var(--primary-color), var(--highlight-color));
  color: white;
  padding: 12px;
  text-align: center;
  font-family: var(--font-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.grid td {
  padding: 12px;
  border-bottom: 1px solid rgba(46, 139, 87, 0.2);
  text-align: center;
}

.grid tr:nth-child(even) {
  background-color: rgba(60, 179, 113, 0.05);
}

.grid tr:hover {
  background-color: rgba(60, 179, 113, 0.1);
}

/* ===== DIALOG STYLE (fenêtre modale) ===== */
#dialog {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
}

#dialog.show {
  display: flex;
}

#dialog .dialog-content {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-top: 6px solid var(--primary-color);
}

#dialog .close-dialog {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark-color);
}

/* ===== BUTTONS (style sportif) ===== */
.button {
  display: inline-block;
  background: linear-gradient(var(--primary-color), var(--highlight-color));
  color: white;
  padding: 12px 25px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-secondary);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.button:hover {
  background: linear-gradient(var(--highlight-color), var(--accent-color));
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* ===== TYPOGRAPHY (style dynamique) ===== */
h1, h2, h3, h4 {
  font-family: var(--font-main);
  color: var(--primary-color);
  margin-bottom: 15px;
}

h1 {
  font-size: 2.4rem;
  border-bottom: 3px solid var(--accent-color);
  padding-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

h2 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

h3 {
  font-size: 1.4rem;
  color: var(--highlight-color);
}

p {
  margin-bottom: 15px;
  font-family: var(--font-secondary);
  line-height: 1.7;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .full-first, .full-seco, .full-terc {
    padding: 25px 15px;
  }

  .block-first, .block-seco, .block-terc {
    padding: 20px;
  }

  #dialog .dialog-content {
    width: 95%;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 10px 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .button {
    padding: 10px 20px;
    font-size: 14px;
  }
}

#popupNotify{
    background-color:var(--light-color);
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0px 0px 10px 15px rgb(0 0 0 / 10%);
    width: 200px;
    color:black;
}

  
  a {
    text-decoration: none;
    color: var(--text-color);
  }